/freebsd/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/usr.bin/limits/ |
H A D | 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 settings follow this switch, only soft limits are 157 (or maximum) resource limits. [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() local 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[rcsw… 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[rcswhich].rlim_max, limits[rcsw… in main() 407 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main() [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | varmod-subst-regex.exp | 6 in target "mod-regex-limits-1" 9 in target "mod-regex-limits-1" 12 in target "mod-regex-limits-1" 15 in target "mod-regex-limits-1" 16 mod-regex-limits-2:11-ok:1 22 446 19 in target "mod-regex-limits-3" 22 in target "mod-regex-limits-3" 25 in target "mod-regex-limits-3" 28 in target "mod-regex-limits-3" 31 in target "mod-regex-limits-4" [all …]
|
/freebsd/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/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 $TIME -p limits -H -t 3 sh -c 'while : ; do : ; done' 75 limits -S -t 3 limits -H 77 limits -S -t 3 limits -S 79 $TIME -p limits -S -t 3 sh -c 'while : ; do : ; done'
|
/freebsd/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 == NULL) in net_allowed_bsaddr() [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/contrib/llvm-project/libcxx/include/ |
H A D | limits.h |
|
/freebsd/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/contrib/llvm-project/clang/lib/Headers/ |
H A D | limits.h | 1 /*===---- limits.h - Standard header for integer sizes --------------------===*\ 12 #if defined(__MVS__) && __has_include_next(<limits.h>) 13 #include_next <limits.h> 16 /* The system's limits.h may, in turn, try to #include_next GCC's limits.h. 22 /* System headers include a number of constants from POSIX in <limits.h>. 24 #if __STDC_HOSTED__ && __has_include_next(<limits.h>) 25 #include_next <limits.h> 100 C++11 18.3.3.2: same contents as the Standard C Library header <limits.h>.
|
/freebsd/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/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/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/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/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/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/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/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/lib/libcasper/libcasper/ |
H A D | libcasper.c | 228 cap_limit_set(const cap_channel_t *chan, nvlist_t *limits) in cap_limit_set() argument 235 nvlist_add_nvlist(nvlmsg, "limits", limits); in cap_limit_set() 238 nvlist_destroy(limits); in cap_limit_set() 243 nvlist_destroy(limits); in cap_limit_set() 268 if (nvlist_exists_null(nvlmsg, "limits")) in cap_limit_get() 271 *limitsp = nvlist_take_nvlist(nvlmsg, "limits"); in cap_limit_get() 350 nvlist_t *limits; in cap_service_limit() local 353 limits = nvlist_create(channel_nvlist_flags(chan)); in cap_service_limit() 355 nvlist_add_null(limits, names[i]); in cap_service_limit() 356 return (cap_limit_set(chan, limits)); in cap_service_limit()
|
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.
|