| /freebsd-12.1/lib/libcasper/services/cap_sysctl/tests/ |
| H A D | sysctl_test.c | 188 nvlist_t *limits; in test_operation() local 199 limits = nvlist_create(0); in test_operation() 205 limits = nvlist_create(0); in test_operation() 213 limits = nvlist_create(0); in test_operation() 223 limits = nvlist_create(0); in test_operation() 235 limits = nvlist_create(0); in test_operation() 244 limits = nvlist_create(0); in test_operation() 251 limits = nvlist_create(0); in test_operation() 268 limits = nvlist_create(0); in test_operation() 274 limits = nvlist_create(0); in test_operation() [all …]
|
| /freebsd-12.1/lib/libcasper/services/cap_pwd/ |
| H A D | cap_pwd.c | 325 nvlist_t *limits, *nvl; in cap_pwd_limit_cmds() local 330 if (limits == NULL) { in cap_pwd_limit_cmds() 347 nvlist_t *limits, *nvl; in cap_pwd_limit_fields() local 352 if (limits == NULL) { in cap_pwd_limit_fields() 376 if (limits == NULL) { in cap_pwd_limit_users() 405 if (limits == NULL) in pwd_allowed_cmd() 415 limits = nvlist_get_nvlist(limits, "cmds"); in pwd_allowed_cmd() 444 if (limits == NULL) in pwd_allowed_user() 453 limits = nvlist_get_nvlist(limits, "users"); in pwd_allowed_user() 511 if (limits == NULL) in pwd_allowed_field() [all …]
|
| /freebsd-12.1/lib/libcasper/services/cap_grp/ |
| H A D | cap_grp.c | 371 nvlist_t *limits, *nvl; in cap_grp_limit_cmds() local 376 if (limits == NULL) { in cap_grp_limit_cmds() 393 nvlist_t *limits, *nvl; in cap_grp_limit_fields() local 398 if (limits == NULL) { in cap_grp_limit_fields() 422 if (limits == NULL) { in cap_grp_limit_groups() 450 if (limits == NULL) in grp_allowed_cmd() 460 limits = nvlist_get_nvlist(limits, "cmds"); in grp_allowed_cmd() 489 if (limits == NULL) in grp_allowed_group() 498 limits = nvlist_get_nvlist(limits, "groups"); in grp_allowed_group() 556 if (limits == NULL) in grp_allowed_field() [all …]
|
| /freebsd-12.1/lib/libcasper/services/cap_dns/ |
| H A D | cap_dns.c | 324 nvlist_free(limits, name); in limit_remove() 334 nvlist_t *limits; in cap_dns_type_limit() local 341 if (limits == NULL) in cap_dns_type_limit() 342 limits = nvlist_create(0); in cap_dns_type_limit() 344 limit_remove(limits, "type"); in cap_dns_type_limit() 357 nvlist_t *limits; in cap_dns_family_limit() local 364 if (limits == NULL) in cap_dns_family_limit() 365 limits = nvlist_create(0); in cap_dns_family_limit() 386 if (limits == NULL) in dns_allowed_type() 413 if (limits == NULL) in dns_allowed_family() [all …]
|
| /freebsd-12.1/usr.bin/limits/tests/ |
| H A D | limits_test.sh | 39 limits -H -t 3 limits -H 41 limits -H -t 3 limits -S 43 limits -H -t 3 $TIME -p sh -c 'while : ; do : ; done' 53 limits -S -t 3 limits -H 55 limits -S -t 3 limits -S 57 limits -S -t 3 $TIME -p sh -c 'while : ; do : ; done'
|
| /freebsd-12.1/usr.bin/limits/ |
| H A D | limits.c | 285 struct rlimit limits[RLIM_NLIMITS]; in main() local 374 getrlimit(i, &limits[i]); in main() 376 getrlimit_proc(pid, i, &limits[i]); in main() 378 getrlimit_proc(pid, i, &limits[i]); in main() 427 } else if (limits[rcswhich].rlim_cur > limits[rcswhich].rlim_max) { in main() 429 limits[rcswhich].rlim_max = limits[rcswhich].rlim_cur; in main() 432 limits[rcswhich].rlim_cur = limits[rcswhich].rlim_max; in main() 515 if (shellparm[shelltype].both && limits[rcswhich].rlim_cur == limits[rcswhich].rlim_max) { in main() 516 print_limit(limits[rcswhich].rlim_max, in main() 524 print_limit(limits[rcswhich].rlim_max, in main() [all …]
|
| /freebsd-12.1/sys/dev/mthca/ |
| H A D | mthca_main.c | 419 mdev->limits.reserved_mtts = ALIGN(mdev->limits.reserved_mtts * mdev->limits.mtt_seg_size, in mthca_init_icm() 423 mdev->limits.mtt_seg_size, in mthca_init_icm() 424 mdev->limits.num_mtt_segs, in mthca_init_icm() 435 mdev->limits.num_mpts, in mthca_init_icm() 446 mdev->limits.num_qps, in mthca_init_icm() 447 mdev->limits.reserved_qps, in mthca_init_icm() 457 mdev->limits.num_qps, in mthca_init_icm() 458 mdev->limits.reserved_qps, in mthca_init_icm() 468 mdev->limits.num_qps << in mthca_init_icm() 479 mdev->limits.num_cqs, in mthca_init_icm() [all …]
|
| H A D | mthca_profile.c | 175 dev->limits.num_qps = profile[i].num; in mthca_make_profile() 180 dev->limits.num_eecs = profile[i].num; in mthca_make_profile() 185 dev->limits.num_srqs = profile[i].num; in mthca_make_profile() 190 dev->limits.num_cqs = profile[i].num; in mthca_make_profile() 201 dev->limits.num_eqs = profile[i].num; in mthca_make_profile() 214 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile() 222 dev->limits.num_mpts = profile[i].num; in mthca_make_profile() 228 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile() 234 dev->limits.num_uars = profile[i].num; in mthca_make_profile() 257 dev->limits.num_pds = MTHCA_NUM_PDS; in mthca_make_profile() [all …]
|
| H A D | mthca_mr.c | 341 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg() 559 (dev->limits.num_mpts - 1)); in mthca_free_mr() 733 key += dev->limits.num_mpts; in mthca_tavor_map_phys_fmr() 776 key += dev->limits.num_mpts; in mthca_arbel_map_phys_fmr() 833 dev->limits.num_mpts, in mthca_init_mr_table() 840 dev->limits.fmr_reserved_mtts = 0; in mthca_init_mr_table() 866 mtts = dev->limits.num_mtt_segs; in mthca_init_mr_table() 867 mpts = dev->limits.num_mpts; in mthca_init_mr_table() 915 if (dev->limits.reserved_mtts) { in mthca_init_mr_table() 931 if (dev->limits.fmr_reserved_mtts) in mthca_init_mr_table() [all …]
|
| H A D | mthca_provider.c | 96 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device() 97 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device() 98 props->max_sge = mdev->limits.max_sg; in mthca_query_device() 100 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device() 101 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device() 102 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; in mthca_query_device() 103 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; in mthca_query_device() 107 props->max_srq = mdev->limits.num_srqs - mdev->limits.reserved_srqs; in mthca_query_device() 114 props->max_mcast_grp = mdev->limits.num_mgms + mdev->limits.num_amgms; in mthca_query_device() 127 (1 << (32 - ilog2(mdev->limits.num_mpts))) - 1; in mthca_query_device() [all …]
|
| H A D | mthca_srq.c | 207 if (attr->max_wr > dev->limits.max_srq_wqes || in mthca_alloc_srq() 208 attr->max_sge > dev->limits.max_srq_sge) in mthca_alloc_srq() 277 srq->srqn & (dev->limits.num_srqs - 1), in mthca_alloc_srq() 347 srq->srqn & (dev->limits.num_srqs - 1)); in mthca_free_srq() 643 return dev->limits.max_sg; in mthca_max_srq_sge() 659 return min_t(int, dev->limits.max_sg, in mthca_max_srq_sge() 660 ((1 << (fls(dev->limits.max_desc_sz) - 1)) - in mthca_max_srq_sge() 675 dev->limits.num_srqs, in mthca_init_srq_table() 676 dev->limits.num_srqs - 1, in mthca_init_srq_table() 677 dev->limits.reserved_srqs); in mthca_init_srq_table() [all …]
|
| H A D | mthca_uar.c | 57 dev->limits.num_uars, in mthca_init_uar_table() 58 dev->limits.num_uars - 1, in mthca_init_uar_table() 59 dev->limits.reserved_uars + 1); in mthca_init_uar_table()
|
| H A D | mthca_qp.c | 316 param.port_width = dev->limits.port_width_cap; in init_port() 317 param.vl_cap = dev->limits.vl_cap; in init_port() 318 param.mtu_cap = dev->limits.mtu_cap; in init_port() 319 param.gid_cap = dev->limits.gid_table_len; in init_port() 950 min(dev->limits.max_desc_sz, in mthca_adjust_qp_caps() 980 if (size > dev->limits.max_desc_sz) in mthca_alloc_wqe_buf() 1024 if (size > dev->limits.max_desc_sz) in mthca_alloc_wqe_buf() 1307 qp->qpn & (dev->limits.num_qps - 1), qp); in mthca_alloc_qp() 1438 qp->qpn & (dev->limits.num_qps - 1)); in mthca_free_qp() 2267 dev->limits.num_qps, in mthca_init_qp_table() [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/bin/sh/ |
| H A D | t_ulimit.sh | 32 atf_test_case limits 38 local limits=$(${TEST_SH} -c 'ulimit -a' | 40 if [ -z "$limits" ]; then 42 limits="-a -b -c -d -f -l -m -n -p -r -s -t -v" 44 echo "$limits" 56 atf_add_test_case limits
|
| /freebsd-12.1/lib/libcasper/services/cap_syslog/ |
| H A D | cap_syslog.c | 140 slog_vsyslog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_vsyslog() 149 slog_openlog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_openlog() 178 slog_closelog(const nvlist_t *limits __unused, const nvlist_t *nvlin __unused, in slog_closelog() 195 slog_setlogmask(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_setlogmask() 205 syslog_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin, in syslog_command() argument 210 slog_vsyslog(limits, nvlin, nvlout); in syslog_command() 212 slog_openlog(limits, nvlin, nvlout); in syslog_command() 214 slog_closelog(limits, nvlin, nvlout); in syslog_command() 216 slog_setlogmask(limits, nvlin, nvlout); in syslog_command()
|
| /freebsd-12.1/contrib/gcc/config/rs6000/ |
| H A D | t-beos | 12 # of limits.h to lack the header and trailer parts that are 13 # tacked on to it when there is a limits.h in the system header 17 # LIMITS_H_TEST to explicitly look for the BeOS limits.h. 18 # If the gcc limits.h is not set up to #include_next the 19 # BeOS limits.h, then some things will go undefined, like 23 # Test to see whether <limits.h> exists in the system header files. 24 LIMITS_H_TEST = [ -f /boot/develop/headers/posix/limits.h ]
|
| /freebsd-12.1/lib/libcasper/libcasper/ |
| H A D | libcasper.c | 231 cap_limit_set(const cap_channel_t *chan, nvlist_t *limits) in cap_limit_set() argument 238 nvlist_add_nvlist(nvlmsg, "limits", limits); in cap_limit_set() 241 nvlist_destroy(limits); in cap_limit_set() 246 nvlist_destroy(limits); in cap_limit_set() 353 nvlist_t *limits; in cap_service_limit() local 356 limits = nvlist_create(channel_nvlist_flags(chan)); in cap_service_limit() 358 nvlist_add_null(limits, names[i]); in cap_service_limit() 359 return (cap_limit_set(chan, limits)); in cap_service_limit()
|
| /freebsd-12.1/usr.bin/getconf/ |
| H A D | Makefile | 7 SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c \ 10 CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \ 11 confstr.names limits.names pathconf.names sysconf.names \ 35 conflicting.names: confstr.names limits.names sysconf.names
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_assert.c | 49 struct rlimit limits; in disable_corefile() local 51 limits.rlim_cur = 0; in disable_corefile() 52 limits.rlim_max = 0; in disable_corefile() 54 ATF_REQUIRE(setrlimit(RLIMIT_CORE, &limits) == 0); in disable_corefile()
|
| /freebsd-12.1/sys/dev/sfxge/ |
| H A D | sfxge.c | 125 efx_drv_limits_t limits; in sfxge_estimate_rsrc_limits() local 150 memset(&limits, 0, sizeof(limits)); in sfxge_estimate_rsrc_limits() 152 limits.edl_min_evq_count = 1; in sfxge_estimate_rsrc_limits() 153 limits.edl_max_evq_count = evq_max; in sfxge_estimate_rsrc_limits() 156 limits.edl_min_rxq_count = 1; in sfxge_estimate_rsrc_limits() 157 limits.edl_max_rxq_count = evq_max; in sfxge_estimate_rsrc_limits() 200 efx_drv_limits_t limits; in sfxge_set_drv_limits() local 202 memset(&limits, 0, sizeof(limits)); in sfxge_set_drv_limits() 205 limits.edl_min_evq_count = limits.edl_max_evq_count = in sfxge_set_drv_limits() 207 limits.edl_min_txq_count = limits.edl_max_txq_count = in sfxge_set_drv_limits() [all …]
|
| /freebsd-12.1/contrib/libc++/include/ |
| H A D | limits.h | 48 #include_next <limits.h> 58 #include_next <limits.h> 62 #include_next <limits.h>
|
| /freebsd-12.1/lib/libcasper/services/cap_sysctl/ |
| H A D | cap_sysctl.c | 163 sysctl_allowed(const nvlist_t *limits, const char *chname, uint64_t choperation) in sysctl_allowed() argument 170 if (limits == NULL) in sysctl_allowed() 174 while ((name = nvlist_next(limits, &type, &cookie)) != NULL) { in sysctl_allowed() 177 operation = nvlist_get_number(limits, name); in sysctl_allowed() 225 sysctl_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin, in sysctl_command() argument 244 if (!sysctl_allowed(limits, name, operation)) in sysctl_command()
|
| /freebsd-12.1/contrib/libstdc++/ |
| H A D | configure | 8858 <limits.h> exists even on freestanding compilers. */ 9045 <limits.h> exists even on freestanding compilers. */ 9238 <limits.h> exists even on freestanding compilers. */ 9425 <limits.h> exists even on freestanding compilers. */ 9618 <limits.h> exists even on freestanding compilers. */ 9805 <limits.h> exists even on freestanding compilers. */ 9994 <limits.h> exists even on freestanding compilers. */ 10177 <limits.h> exists even on freestanding compilers. */ 10366 <limits.h> exists even on freestanding compilers. */ 10549 <limits.h> exists even on freestanding compilers. */ [all …]
|
| /freebsd-12.1/bin/sh/ |
| H A D | miscbltin.c | 368 struct limits { struct 376 static const struct limits limits[] = { argument 429 const struct limits *l) in printlimit() 451 const struct limits *l; in ulimitcmd() 472 for (l = limits; l->name && l->option != what; l++) in ulimitcmd() 505 for (l = limits; l->name; l++) { in ulimitcmd()
|
| /freebsd-12.1/sys/amd64/vmm/ |
| H A D | x86.c | 92 const struct xsave_limits *limits; in x86_emulate_cpuid() local 509 limits = vmm_get_xsave_limits(); in x86_emulate_cpuid() 510 if (!limits->xsave_enabled) { in x86_emulate_cpuid() 532 regs[0] &= limits->xcr0_allowed; in x86_emulate_cpuid() 533 regs[2] = limits->xsave_max_size; in x86_emulate_cpuid() 534 regs[3] &= (limits->xcr0_allowed >> 32); in x86_emulate_cpuid() 549 if (!(limits->xcr0_allowed & (1ul << *ecx))) { in x86_emulate_cpuid()
|