Home
last modified time | relevance | path

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

12345678910

/freebsd-src/lib/libc/gen/
H A Dsysconf.c59 * sysconf --
71 sysconf(int name) in sysconf() function
365 * Note that sysconf(_SC_GETGR_R_SIZE_MAX) may return -1 if in sysconf()
517 value = sysconf(_SC_ASYNCHRONOUS_IO) > 0 && in sysconf()
518 sysconf(_SC_MEMLOCK) > 0 && in sysconf()
519 sysconf(_SC_MEMLOCK_RANGE) > 0 && in sysconf()
520 sysconf(_SC_MESSAGE_PASSING) > 0 && in sysconf()
521 sysconf(_SC_PRIORITY_SCHEDULING) > 0 && in sysconf()
522 sysconf(_SC_REALTIME_SIGNALS) > 0 && in sysconf()
523 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 Dtimes.357 .Xr sysconf 3
135 .Xr sysconf 3 ,
H A Dgethostname.369 .Fn sysconf _SC_HOST_NAME_MAX
93 .Xr sysconf 3 ,
/freebsd-src/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-src/contrib/llvm-project/libcxx/src/
H A Dthread.cpp18 # include <unistd.h> // for sysconf
66 long result = sysconf(_SC_NPROCESSORS_ONLN); in hardware_concurrency()
67 // sysconf returns -1 if the name is invalid, the option does not exist or in hardware_concurrency()
69 // if sysconf returns some other negative number, we have no idea in hardware_concurrency()
/freebsd-src/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-src/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-src/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-src/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-src/bin/nproc/
H A Dnproc.c113 cpus = sysconf(_SC_NPROCESSORS_CONF); in main()
115 err(1, "sysconf"); in main()
/freebsd-src/contrib/xz/src/common/
H A Dtuklib_physmem.c15 // information available via sysconf(), but on Cygwin 1.5 and older it
161 const long pagesize = sysconf(_SC_PAGESIZE); in tuklib_physmem()
162 const long pages = sysconf(_SC_PHYS_PAGES); in tuklib_physmem()
H A Dtuklib_cpucores.c93 const long cpus = sysconf(_SC_NPROCESSORS_ONLN); in tuklib_cpucores()
96 const long cpus = sysconf(_SC_NPROC_ONLN); in tuklib_cpucores()
/freebsd-src/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.
366 long sysconf(int);
/freebsd-src/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-src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c98 ncpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
101 "Invalid return from sysconf(_SC_NPROCESSORS_ONLN)" in main()
/freebsd-src/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()
H A Dbsd-getpagesize.c14 long r = sysconf(_SC_PAGESIZE); in getpagesize()
/freebsd-src/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-src/lib/libpmc/pmu-events/
H A Djson.c46 unsigned ps = sysconf(_SC_PAGESIZE); in mapfile()
75 unsigned ps = sysconf(_SC_PAGESIZE); in unmapfile()
/freebsd-src/contrib/ntp/include/
H A Dlibntp.h4 #define GETDTABLESIZE() ((int)sysconf(_SC_OPEN_MAX))
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_append.c117 if (use_odirect && ((blocksize % sysconf(_SC_PAGE_SIZE)) != 0)) { in parse_options()
154 err = posix_memalign((void **)&buf, sysconf(_SC_PAGE_SIZE), in main()

12345678910