/freebsd-src/lib/libcasper/services/cap_pwd/ |
H A D | cap_pwd.c | 321 nvlist_t *limits, *nvl; in cap_pwd_limit_cmds() 324 if (cap_limit_get(chan, &limits) < 0) in cap_pwd_limit_cmds() 326 if (limits == NULL) { in cap_pwd_limit_cmds() 327 limits = nvlist_create(0); in cap_pwd_limit_cmds() 329 if (nvlist_exists_nvlist(limits, "cmds")) in cap_pwd_limit_cmds() 330 nvlist_free_nvlist(limits, "cmds"); in cap_pwd_limit_cmds() 335 nvlist_move_nvlist(limits, "cmds", nvl); in cap_pwd_limit_cmds() 336 return (cap_limit_set(chan, limits)); in cap_pwd_limit_cmds() 343 nvlist_t *limits, *nvl; in cap_pwd_limit_fields() 346 if (cap_limit_get(chan, &limits) < in cap_pwd_limit_fields() 322 nvlist_t *limits, *nvl; cap_pwd_limit_cmds() local 344 nvlist_t *limits, *nvl; cap_pwd_limit_fields() local 366 nvlist_t *limits, *users; cap_pwd_limit_users() local 399 pwd_allowed_cmd(const nvlist_t * limits,const char * cmd) pwd_allowed_cmd() argument 435 pwd_allowed_user(const nvlist_t * limits,const char * uname,uid_t uid) pwd_allowed_user() argument 505 pwd_allowed_field(const nvlist_t * limits,const char * field) pwd_allowed_field() argument 540 pwd_pack(const nvlist_t * limits,const struct passwd * pwd,nvlist_t * nvl) pwd_pack() argument 621 pwd_getpwent(const nvlist_t * limits,const nvlist_t * nvlin __unused,nvlist_t * nvlout) pwd_getpwent() argument 639 pwd_getpwnam(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) pwd_getpwnam() argument 660 pwd_getpwuid(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) pwd_getpwuid() argument 717 const nvlist_t *limits; pwd_limit() local 756 pwd_command(const char * cmd,const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) pwd_command() argument [all...] |
/freebsd-src/lib/libcasper/services/cap_grp/ |
H A D | cap_grp.c | 368 nvlist_t *limits, *nvl; in cap_grp_limit_cmds() 371 if (cap_limit_get(chan, &limits) < 0) in cap_grp_limit_cmds() 373 if (limits == NULL) { in cap_grp_limit_cmds() 374 limits = nvlist_create(0); in cap_grp_limit_cmds() 376 if (nvlist_exists_nvlist(limits, "cmds")) in cap_grp_limit_cmds() 377 nvlist_free_nvlist(limits, "cmds"); in cap_grp_limit_cmds() 382 nvlist_move_nvlist(limits, "cmds", nvl); in cap_grp_limit_cmds() 383 return (cap_limit_set(chan, limits)); in cap_grp_limit_cmds() 390 nvlist_t *limits, *nvl; in cap_grp_limit_fields() 393 if (cap_limit_get(chan, &limits) < in cap_grp_limit_fields() 369 nvlist_t *limits, *nvl; cap_grp_limit_cmds() local 391 nvlist_t *limits, *nvl; cap_grp_limit_fields() local 413 nvlist_t *limits, *groups; cap_grp_limit_groups() local 445 grp_allowed_cmd(const nvlist_t * limits,const char * cmd) grp_allowed_cmd() argument 481 grp_allowed_group(const nvlist_t * limits,const char * gname,gid_t gid) grp_allowed_group() argument 551 grp_allowed_field(const nvlist_t * limits,const char * field) grp_allowed_field() argument 586 grp_pack(const nvlist_t * limits,const struct group * grp,nvlist_t * nvl) grp_pack() argument 628 grp_getgrent(const nvlist_t * limits,const nvlist_t * nvlin __unused,nvlist_t * nvlout) grp_getgrent() argument 646 grp_getgrnam(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) grp_getgrnam() argument 667 grp_getgrgid(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) grp_getgrgid() argument 724 const nvlist_t *limits; grp_limit() local 763 grp_command(const char * cmd,const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) grp_command() argument [all...] |
/freebsd-src/lib/libcasper/services/cap_fileargs/ |
H A D | cap_fileargs.c | 168 nvlist_t *limits; in fileargs_create_limit() local 171 limits = nvlist_create(NV_FLAG_NO_UNIQUE); in fileargs_create_limit() 172 if (limits == NULL) in fileargs_create_limit() 175 nvlist_add_number(limits, "flags", flags); in fileargs_create_limit() 176 nvlist_add_number(limits, "operations", operations); in fileargs_create_limit() 178 nvlist_add_binary(limits, "cap_rights", rightsp, in fileargs_create_limit() 182 nvlist_add_number(limits, "mode", (uint64_t)mode); in fileargs_create_limit() 186 nvlist_destroy(limits); in fileargs_create_limit() 190 nvlist_add_null(limits, argv[i]); in fileargs_create_limit() 193 return (limits); in fileargs_create_limit() [all …]
|
H A D | cap_fileargs.h | 53 fileargs_t *fileargs_initnv(nvlist_t *limits); 54 fileargs_t *fileargs_cinitnv(cap_channel_t *cas, nvlist_t *limits); 96 fileargs_initnv(nvlist_t *limits) 101 nvlist_get_number(limits, "flags"), 102 dnvlist_get_number(limits, "mode", 0), 104 nvlist_get_number(limits, "operations")); 105 nvlist_destroy(limits); 111 fileargs_cinitnv(cap_channel_t *cas __unused, nvlist_t *limits) 114 return (fileargs_initnv(limits));
|
H A D | cap_fileargs.3 | 49 .Fn fileargs_cinitnv "cap_channel_t *cas" "nvlist_t *limits" 51 .Fn fileargs_initnv "nvlist_t *limits" 86 argument limits opened files for either execution or reading and/or writing. 105 argument limits the operations that are available using 140 .Sx LIMITS . 184 .Sh LIMITS 199 limits opened files for either execution or reading and/or writing. 215 limits the usable operations for
|
/freebsd-src/usr.bin/limits/ |
H A D | limits.1 | 21 .Dt LIMITS 1 24 .Nm limits 25 .Nd set or display process resource limits 44 utility either prints or sets kernel resource limits, and may optionally set 58 This usage sets limits according to 105 This is very useful for setting limits used by scripts, or prior 115 .Dl "eval `limits -e -C daemon`" 142 Select or set limits for the process identified by the 147 (or current) resource limits. 148 If specific limits setting [all...] |
H A D | limits.c | 21 * Display/change(+runprogram)/eval resource limits. 77 { "", "infinity", "Resource limits%s%s:\n", "-max", "-cur", "", 286 struct rlimit limits[RLIM_NLIMITS]; in main() 375 getrlimit(i, &limits[i]); in main() 377 getrlimit_proc(pid, i, &limits[i]); in main() 379 getrlimit_proc(pid, i, &limits[i]); in main() 402 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcswhich].rlim_cur); in main() 403 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); in main() 406 val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhic in main() 283 struct rlimit limits[RLIM_NLIMITS]; main() local [all...] |
/freebsd-src/lib/libcasper/services/cap_dns/ |
H A D | cap_dns.c | 310 limit_remove(nvlist_t *limits, const char *prefix) 319 while ((name = nvlist_next(limits, NULL, &cookie)) != NULL) { in limit_remove() 321 nvlist_free(limits, name); in limit_remove() 331 nvlist_t *limits; in cap_dns_type_limit() 336 if (cap_limit_get(chan, &limits) < 0) in cap_dns_type_limit() 338 if (limits == NULL) in cap_dns_type_limit() 339 limits = nvlist_create(0); in cap_dns_type_limit() 341 limit_remove(limits, "type"); in cap_dns_type_limit() 345 nvlist_add_string(limits, nvlname, types[i]); in cap_dns_type_limit() 347 return (cap_limit_set(chan, limits)); in cap_dns_type_limit() 311 limit_remove(nvlist_t * limits,const char * prefix) limit_remove() argument 332 nvlist_t *limits; cap_dns_type_limit() local 355 nvlist_t *limits; cap_dns_family_limit() local 378 dns_allowed_type(const nvlist_t * limits,const char * type) dns_allowed_type() argument 405 dns_allowed_family(const nvlist_t * limits,int family) dns_allowed_family() argument 469 dns_gethostbyname(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) dns_gethostbyname() argument 492 dns_gethostbyaddr(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) dns_gethostbyaddr() argument 518 dns_getnameinfo(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) dns_getnameinfo() argument 612 dns_getaddrinfo(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) dns_getaddrinfo() argument 668 limit_has_entry(const nvlist_t * limits,const char * prefix) limit_has_entry() argument 749 dns_command(const char * cmd,const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) dns_command() argument [all...] |
/freebsd-src/usr.bin/limits/tests/ |
H A D | limits_test.sh | 56 limits -H -t 3 limits -H 58 limits -H -t 3 limits -S 60 limits -H -t 3 $TIME -p sh -c 'while : ; do : ; done' 75 limits -S -t 3 limits -H 77 limits -S -t 3 limits -S 79 limits -S -t 3 $TIME -p sh -c 'while : ; do : ; done'
|
/freebsd-src/sys/dev/mthca/ |
H A D | mthca_main.c | 169 mdev->limits.mtt_seg_size = (1 << log_mtts_per_seg) * 8; in mthca_dev_lim() 197 mdev->limits.num_ports = dev_lim->num_ports; in mthca_dev_lim() 198 mdev->limits.vl_cap = dev_lim->max_vl; in mthca_dev_lim() 199 mdev->limits.mtu_cap = dev_lim->max_mtu; in mthca_dev_lim() 200 mdev->limits.gid_table_len = dev_lim->max_gids; in mthca_dev_lim() 201 mdev->limits.pkey_table_len = dev_lim->max_pkeys; in mthca_dev_lim() 202 mdev->limits.local_ca_ack_delay = dev_lim->local_ca_ack_delay; in mthca_dev_lim() 208 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim() 215 mdev->limits.max_wqes = dev_lim->max_qp_sz; in mthca_dev_lim() 216 mdev->limits.max_qp_init_rdma = dev_lim->max_requester_per_qp; in mthca_dev_lim() [all …]
|
H A D | mthca_profile.c | 96 profile[MTHCA_RES_MTT].size = dev->limits.mtt_seg_size; in mthca_make_profile() 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() 215 dev->limits.num_amgms = 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() [all …]
|
H A D | mthca_mr.c | 223 for (i = dev->limits.mtt_seg_size / 8; i < size; i <<= 1) in __mthca_alloc_mtt() 269 mtt->first_seg * dev->limits.mtt_seg_size + in __mthca_write_mtt() 322 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg() 341 BUG_ON(s % dev->limits.mtt_seg_size); in mthca_arbel_write_mtt_seg() 344 s / dev->limits.mtt_seg_size, &dma_handle); in mthca_arbel_write_mtt_seg() 478 mr->mtt->first_seg * dev->limits.mtt_seg_size); in mthca_mr_alloc() 492 key & (dev->limits.num_mpts - 1)); in mthca_mr_alloc() 559 (dev->limits.num_mpts - 1)); in mthca_free_mr() 593 idx = key & (dev->limits.num_mpts - 1); in mthca_fmr_alloc() 613 mtt_seg = mr->mtt->first_seg * dev->limits.mtt_seg_size; in mthca_fmr_alloc() [all …]
|
/freebsd-src/lib/libcasper/services/cap_net/ |
H A D | cap_net.c | 52 * Defines for the names of the limits. 604 net_allowed_mode(const nvlist_t *limits, uint64_t mode) in net_allowed_mode() argument 607 if (limits == NULL) in net_allowed_mode() 610 return ((nvlist_get_number(limits, "mode") & mode) == mode); in net_allowed_mode() 614 net_allowed_family(const nvlist_t *limits, int family) in net_allowed_family() argument 619 if (limits == NULL) in net_allowed_family() 623 if (!nvlist_exists_number_array(limits, "family")) in net_allowed_family() 626 allowedfamily = nvlist_get_number_array(limits, "family", &allsize); in net_allowed_family() 695 net_allowed_bsaddr(const nvlist_t *limits, const void *saddr, size_t saddrsize) in net_allowed_bsaddr() argument 698 if (limits in net_allowed_bsaddr() 709 net_allowed_hosts(const nvlist_t * limits,const char * name,const char * srvname) net_allowed_hosts() argument 785 net_gethostbyname(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) net_gethostbyname() argument 820 net_gethostbyaddr(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) net_gethostbyaddr() argument 854 net_getnameinfo(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) net_getnameinfo() argument 957 net_getaddrinfo(const nvlist_t * limits,const nvlist_t * nvlin,nvlist_t * nvlout) net_getaddrinfo() argument 1026 net_bind(const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) net_bind() argument 1057 net_connect(const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) net_connect() argument 1395 net_command(const char * cmd,const nvlist_t * limits,nvlist_t * nvlin,nvlist_t * nvlout) net_command() argument [all...] |
H A D | cap_net.3 | 112 .Sh LIMITS 145 limits the 152 limits the 159 limits the 175 limits 180 limits 183 If the CAPNET_CONNECTDNS is set the limits are extended to the values returned 202 will consume and apply the limits. 204 Once a set of limits is applied, subsequent calls to 256 err(1, "Unable to create limits [all...] |
/freebsd-src/sys/powerpc/include/ |
H A D | _stdint.h | 80 * 7.18.2.1 Limits of exact-width integer types 102 * 7.18.2.2 Limits of minimum-width integer types 124 * 7.18.2.3 Limits of fastest minimum-width integer types 146 * 7.18.2.4 Limits of integer types capable of holding object pointers 160 * 7.18.2.5 Limits of greatest-width integer types 168 * 7.18.3 Limits of other integer types 171 /* Limits of ptrdiff_t. */ 175 /* Limits of sig_atomic_t. */ 182 /* Limits of ptrdiff_t. */ 186 /* Limits of sig_atomic_t. */ [all …]
|
/freebsd-src/contrib/netbsd-tests/bin/sh/ |
H A D | t_ulimit.sh | 32 atf_test_case limits 34 atf_set "descr" "Checks for limits flags" 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-src/contrib/sendmail/include/sm/ |
H A D | limits.h | 9 * $Id: limits.h,v 1.7 2013-11-22 20:51:31 ca Exp $ 13 ** <sm/limits.h> 14 ** This header file is a portability wrapper for <limits.h>. 15 ** It includes <limits.h>, then it ensures that the following macros 16 ** from the C 1999 standard for <limits.h> are defined: 24 # include <limits.h>
|
/freebsd-src/sys/arm64/include/ |
H A D | _stdint.h | 59 * 7.18.2.1 Limits of exact-width integer types 81 * 7.18.2.2 Limits of minimum-width integer types 103 * 7.18.2.3 Limits of fastest minimum-width integer types 125 * 7.18.2.4 Limits of integer types capable of holding object pointers 133 * 7.18.2.5 Limits of greatest-width integer types 141 * 7.18.3 Limits of other integer types 143 /* Limits of ptrdiff_t. */ 147 /* Limits of sig_atomic_t. */ 154 /* Limits of wint_t. */
|
/freebsd-src/sys/arm/include/ |
H A D | _stdint.h | 57 * 7.18.2.1 Limits of exact-width integer types 79 * 7.18.2.2 Limits of minimum-width integer types 101 * 7.18.2.3 Limits of fastest minimum-width integer types 123 * 7.18.2.4 Limits of integer types capable of holding object pointers 131 * 7.18.2.5 Limits of greatest-width integer types 139 * 7.18.3 Limits of other integer types 141 /* Limits of ptrdiff_t. */ 145 /* Limits of sig_atomic_t. */ 152 /* Limits of wint_t. */
|
/freebsd-src/sys/riscv/include/ |
H A D | _stdint.h | 55 * 7.18.2.1 Limits of exact-width integer types 77 * 7.18.2.2 Limits of minimum-width integer types 99 * 7.18.2.3 Limits of fastest minimum-width integer types 121 * 7.18.2.4 Limits of integer types capable of holding object pointers 129 * 7.18.2.5 Limits of greatest-width integer types 137 * 7.18.3 Limits of other integer types 139 /* Limits of ptrdiff_t. */ 143 /* Limits of sig_atomic_t. */ 150 /* Limits of wint_t. */
|
/freebsd-src/sys/x86/include/ |
H A D | _stdint.h | 70 * 7.18.2.1 Limits of exact-width integer types 96 * 7.18.2.2 Limits of minimum-width integer types 118 * 7.18.2.3 Limits of fastest minimum-width integer types 140 * 7.18.2.4 Limits of integer types capable of holding object pointers 154 * 7.18.2.5 Limits of greatest-width integer types 162 * 7.18.3 Limits of other integer types 165 /* Limits of ptrdiff_t. */ 169 /* Limits of sig_atomic_t. */ 183 /* Limits of wint_t. */
|
/freebsd-src/contrib/bmake/unit-tests/ |
H A D | varmod-subst-regex.exp | 3 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\1\1,:Q}" with value "1 23 456": No subexpression \1 4 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\1\1,:Q}" with value "1 23 456": No subexpression \1 5 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\1\1,:Q}" with value "1 23 456": No subexpression \1 6 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\1\1,:Q}" with value "1 23 456": No subexpression \1 7 mod-regex-limits:11-missing:1 6 8 mod-regex-limits:11-ok:1 22 446 9 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\2\2,:Q}" with value "1 23 456": No subexpression \2 10 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\2\2,:Q}" with value "1 23 456": No subexpression \2 11 make: in target "mod-regex-limits": while evaluating "${:U1 23 456:C,..,\2\2,:Q}" with value "1 23 456": No subexpression \2 12 make: in target "mod-regex-limits" [all...] |
/freebsd-src/tools/build/cross-build/include/linux/ |
H A D | limits.h | 36 #if __has_include_next(<limits.h>) 37 #include_next <limits.h> 40 #if __has_include(<linux/limits.h>) 41 #include <linux/limits.h> 46 #warning "Attempting to use limits.h with -std=c89/without _GNU_SOURCE, many macros will be missing" 76 #error "DIDN't include correct limits?" 95 #error "GCC limits not included"
|
/freebsd-src/lib/libcasper/services/cap_syslog/ |
H A D | cap_syslog.c | 138 slog_vsyslog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_vsyslog() 147 slog_openlog(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_openlog() 176 slog_closelog(const nvlist_t *limits __unused, const nvlist_t *nvlin __unused, in slog_closelog() 193 slog_setlogmask(const nvlist_t *limits __unused, const nvlist_t *nvlin, in slog_setlogmask() 203 syslog_command(const char *cmd, const nvlist_t *limits, nvlist_t *nvlin, in syslog_command() argument 208 slog_vsyslog(limits, nvlin, nvlout); in syslog_command() 210 slog_openlog(limits, nvlin, nvlout); in syslog_command() 212 slog_closelog(limits, nvlin, nvlout); in syslog_command() 214 slog_setlogmask(limits, nvlin, nvlout); in syslog_command()
|
/freebsd-src/lib/libcasper/libcasper/ |
H A D | libcasper_service.3 | 61 old service limits and 62 the second argument contains the new limits. 63 If the service was not limited then the old limits will be set to 65 This function must not allow the extension of service limits. 73 contains the current limits and the second contains an 82 argument defines the limits of the service.
|