Home
last modified time | relevance | path

Searched full:sysconf (Results 1 – 25 of 255) sorted by relevance

1234567891011

/freebsd/lib/libc/gen/
H A Dsysconf.c60 * sysconf --
72 sysconf(int name) in sysconf() function
368 * Note that sysconf(_SC_GETGR_R_SIZE_MAX) may return -1 if in sysconf()
520 value = sysconf(_SC_ASYNCHRONOUS_IO) > 0 && in sysconf()
521 sysconf(_SC_MEMLOCK) > 0 && in sysconf()
522 sysconf(_SC_MEMLOCK_RANGE) > 0 && in sysconf()
523 sysconf(_SC_MESSAGE_PASSING) > 0 && in sysconf()
524 sysconf(_SC_PRIORITY_SCHEDULING) > 0 && in sysconf()
525 sysconf(_SC_REALTIME_SIGNALS) > 0 && in sysconf()
526 sysconf(_SC_SEMAPHORES) > 0 && in sysconf()
[all …]
H A Dsysconf.332 .Nm sysconf
39 .Fn sysconf "int name"
47 .Fn sysconf
231 .Fn sysconf
242 .Fn sysconf
261 .Fn sysconf
267 .Fn sysconf
H A Dgethostname.369 .Fn sysconf _SC_HOST_NAME_MAX
93 .Xr sysconf 3 ,
H A Dtimes.357 .Xr sysconf 3
135 .Xr sysconf 3 ,
/freebsd/usr.bin/getconf/
H A DMakefile5 SRCS= confstr.c getconf.c limits.c pathconf.c progenv.c sysconf.c \
8 CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
9 confstr.names limits.names pathconf.names sysconf.names \
33 conflicting.names: confstr.names limits.names sysconf.names
H A Dgetconf.171 .Xr sysconf 3 .
81 .Xr sysconf 3 ,
87 .Xr sysconf 3
100 .Xr sysconf 3
211 .Xr sysconf 3
H A Dgetconf.c115 if (argv[optind + 1] == NULL) { /* confstr or sysconf */ in main()
190 value = sysconf(key); in do_onesys()
192 warn("sysconf: %s", name); in do_onesys()
262 value = sysconf(key); in do_sysconf()
264 err(EX_OSERR, "sysconf: %s", name); in do_sysconf()
/freebsd/contrib/llvm-project/libcxx/src/
H A Dthread.cpp18 # include <unistd.h> // for sysconf
66 long result = sysconf(_SC_NPROCESSORS_ONLN); in detach()
67 // sysconf returns -1 if the name is invalid, the option does not exist or in detach()
69 // if sysconf returns some other negative number, we have no idea in detach()
/freebsd/contrib/mandoc/
H A Dtest-PATH_MAX.c3 * http://pubs.opengroup.org/onlinepubs/9699919799/functions/sysconf.html;
6 * Arguably, it would be better to test sysconf(_SC_PATH_MAX),
/freebsd/bin/ps/
H A Dfmt.c60 if ((arg_max = sysconf(_SC_ARG_MAX)) == -1) in shquote()
61 errx(1, "sysconf _SC_ARG_MAX failed"); in shquote()
63 errx(1, "sysconf _SC_ARG_MAX preposterously large"); in shquote()
/freebsd/lib/libsys/
H A Dgetpagesize.356 .Ql sysconf(_SC_PAGESIZE)
62 .Xr sysconf 3
H A Dgetgroups.269 .Xr sysconf 3
94 .Xr sysconf 3
/freebsd/crypto/krb5/src/lib/rpc/
H A Drpc_dtablesize.c52 size = (int) sysconf(_SC_OPEN_MAX); in gssrpc__rpc_dtablesize()
57 /* sysconf() can return a number larger than what will fit in an in gssrpc__rpc_dtablesize()
/freebsd/tools/regression/p1003_1b/
H A Dmemlock.c48 if (sysconf(_SC_MEMLOCK) == -1) { in memlock()
52 quit("(should not happen) sysconf(_SC_MEMLOCK)"); in memlock()
/freebsd/include/
H A Dunistd.h97 * implementation for the corresponding sysconf() which is able to
101 * the POSIX standard; however, if the relevant sysconf() function
158 * sysconf function). The kernel does not directly implement the
159 * sysconf() interface; rather, a C library stub translates references
160 * to sysconf() into calls to sysctl() using a giant switch statement.
371 long sysconf(int);
/freebsd/bin/nproc/
H A Dnproc.c113 cpus = sysconf(_SC_NPROCESSORS_CONF); in main()
115 err(1, "sysconf"); in main()
/freebsd/contrib/xz/src/common/
H A Dtuklib_physmem.c15 // information available via sysconf(), but on Cygwin 1.5 and older it
154 const long pagesize = sysconf(_SC_PAGESIZE); in tuklib_physmem()
155 const long pages = sysconf(_SC_PHYS_PAGES); in tuklib_physmem()
/freebsd/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c94 ncpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
97 "Invalid return from sysconf(_SC_NPROCESSORS_ONLN)" in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c99 ncpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
102 "Invalid return from sysconf(_SC_NPROCESSORS_ONLN)" in main()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-closefrom.c69 * Fall back on sysconf() or getdtablesize(). We avoid checking in closefrom_fallback()
74 maxfd = sysconf(_SC_OPEN_MAX); in closefrom_fallback()
/freebsd/tools/build/cross-build/
H A Dclosefrom.c84 * Fall back on sysconf() or getdtablesize(). We avoid checking in closefrom_fallback()
89 maxfd = sysconf(_SC_OPEN_MAX); in closefrom_fallback()
/freebsd/lib/libpmc/pmu-events/
H A Djson.c46 unsigned ps = sysconf(_SC_PAGESIZE); in mapfile()
75 unsigned ps = sysconf(_SC_PAGESIZE); in unmapfile()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_append.c118 if (use_odirect && ((blocksize % sysconf(_SC_PAGE_SIZE)) != 0)) { in parse_options()
155 err = posix_memalign((void **)&buf, sysconf(_SC_PAGE_SIZE), in main()
/freebsd/sys/contrib/zstd/programs/
H A Dutil.c1242 * otherwise fall back on sysconf */
1249 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN); in UTIL_countCores()
1265 /* fall back on the sysconf value */ in UTIL_countCores()
1292 /* fall back on the sysconf value */ in UTIL_countCores()
1341 /* sysctl not present, fall through to older sysconf method */ in UTIL_countCores()
1348 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN); in UTIL_countCores()
1358 /* Use POSIX sysconf
1359 * see: man 3 sysconf */
1369 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN); in UTIL_countCores()
/freebsd/contrib/ntp/include/
H A Dlibntp.h4 #define GETDTABLESIZE() ((int)sysconf(_SC_OPEN_MAX))

1234567891011