Searched refs:_SC_NPROCESSORS_ONLN (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/contrib/xz/src/common/
H A Dtuklib_cpucores.c91 # ifdef _SC_NPROCESSORS_ONLN
93 const long cpus = sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dthreadsappend.c98 ncpus = sysconf(_SC_NPROCESSORS_ONLN);
101 "Invalid return from sysconf(_SC_NPROCESSORS_ONLN)"
/freebsd-current/tests/sys/cddl/zfs/tests/threadsappend/
H A Dthreadsappend.c94 ncpus = sysconf(_SC_NPROCESSORS_ONLN);
97 "Invalid return from sysconf(_SC_NPROCESSORS_ONLN)"
/freebsd-current/contrib/bmake/unit-tests/
H A Dvarname-dot-make-jobs.mk26 # .MAKE.JOBS is a multiple of _SC_NPROCESSORS_ONLN
/freebsd-current/contrib/llvm-project/libcxx/src/
H A Dthread.cpp65 #if defined(_SC_NPROCESSORS_ONLN)
66 long result = sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_zstd.c276 #if defined(HAVE_SYSCONF) && defined(_SC_NPROCESSORS_ONLN)
278 threads = sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/tools/test/xregs_sig/
H A Dxregs_sig.c237 ncpu = sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/contrib/sendmail/include/sm/
H A Dconf.h310 # if defined(_SC_NPROC_ONLN) && !defined(_SC_NPROCESSORS_ONLN)
312 # define _SC_NPROCESSORS_ONLN _SC_NPROC_ONLN macro
1801 # if defined(_SC_NPROC_ONLN) && !defined(_SC_NPROCESSORS_ONLN)
1803 # define _SC_NPROCESSORS_ONLN _SC_NPROC_ONLN macro
/freebsd-current/lib/libc/gen/
H A Dsysconf.c582 case _SC_NPROCESSORS_ONLN:
/freebsd-current/include/
H A Dunistd.h293 #define _SC_NPROCESSORS_ONLN 58 macro
/freebsd-current/sys/contrib/zstd/programs/
H A Dutil.c1249 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN);
1348 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN);
1369 numCores = (int)sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/contrib/bmake/
H A Dmain.c410 #ifdef _SC_NPROCESSORS_ONLN
423 opts.maxJobs = (int)sysconf(_SC_NPROCESSORS_ONLN);
1380 #ifdef _SC_NPROCESSORS_ONLN
/freebsd-current/sys/contrib/openzfs/lib/libzpool/
H A Dtaskq.c268 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
/freebsd-current/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c629 t = tpool_create(1, 5 * sysconf(_SC_NPROCESSORS_ONLN), 0, NULL);
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctfmerge.c652 wq->wq_nthreads = MIN(sysconf(_SC_NPROCESSORS_ONLN) * 3 / 2, nslots);
/freebsd-current/usr.bin/sort/
H A Dsort.c276 ncpu = (unsigned int)sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_libcdep.cpp827 return sysconf(_SC_NPROCESSORS_ONLN);
H A Dsanitizer_mac.cpp1395 return (u32)sysconf(_SC_NPROCESSORS_ONLN);
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzfs_context.h618 #define boot_ncpus (sysconf(_SC_NPROCESSORS_ONLN))
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_dns.c2265 #ifdef _SC_NPROCESSORS_ONLN
2266 int n_threads = sysconf(_SC_NPROCESSORS_ONLN) + 1;
/freebsd-current/contrib/libevent/test/
H A Dregress_dns.c2265 #ifdef _SC_NPROCESSORS_ONLN
2266 int n_threads = sysconf(_SC_NPROCESSORS_ONLN) + 1;
/freebsd-current/cddl/contrib/opensolaris/cmd/lockstat/
H A Dlockstat.c1401 if ((ncpus = sysconf(_SC_NPROCESSORS_ONLN)) == -1)
/freebsd-current/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c1467 t = tpool_create(1, 2 * sysconf(_SC_NPROCESSORS_ONLN), 0, NULL);
/freebsd-current/contrib/sendmail/src/
H A Dconf.c5342 # ifdef _SC_NPROCESSORS_ONLN
5343 nproc = (int) sysconf(_SC_NPROCESSORS_ONLN);
5344 # else /* _SC_NPROCESSORS_ONLN */
5352 # endif /* _SC_NPROCESSORS_ONLN */
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dz_Linux_util.cpp1863 __kmp_type_convert(sysconf(_SC_NPROCESSORS_ONLN), &(r));

Completed in 444 milliseconds

12