sysconf.c (93082) | sysconf.c (100142) |
---|---|
1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Sean Eric Fagan of Cygnus Support. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; 39#endif /* LIBC_SCCS and not lint */ 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Sean Eric Fagan of Cygnus Support. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; 39#endif /* LIBC_SCCS and not lint */ 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/lib/libc/gen/sysconf.c 93082 2002-03-24 08:38:21Z dd $"); | 41__FBSDID("$FreeBSD: head/lib/libc/gen/sysconf.c 100142 2002-07-15 20:42:05Z wollman $"); |
42 43#include <sys/_posix.h> 44#include <sys/param.h> 45#include <sys/time.h> 46#include <sys/sysctl.h> 47#include <sys/resource.h> 48 49#include <errno.h> --- 169 unchanged lines hidden (view full) --- 219 case _SC_REALTIME_SIGNALS: 220 mib[0] = CTL_P1003_1B; 221 mib[1] = CTL_P1003_1B_REALTIME_SIGNALS; 222 goto yesno; 223 case _SC_SEMAPHORES: 224 mib[0] = CTL_P1003_1B; 225 mib[1] = CTL_P1003_1B_SEMAPHORES; 226 goto yesno; | 42 43#include <sys/_posix.h> 44#include <sys/param.h> 45#include <sys/time.h> 46#include <sys/sysctl.h> 47#include <sys/resource.h> 48 49#include <errno.h> --- 169 unchanged lines hidden (view full) --- 219 case _SC_REALTIME_SIGNALS: 220 mib[0] = CTL_P1003_1B; 221 mib[1] = CTL_P1003_1B_REALTIME_SIGNALS; 222 goto yesno; 223 case _SC_SEMAPHORES: 224 mib[0] = CTL_P1003_1B; 225 mib[1] = CTL_P1003_1B_SEMAPHORES; 226 goto yesno; |
227 case _SC_FSYNC: 228 mib[0] = CTL_P1003_1B; 229 mib[1] = CTL_P1003_1B_FSYNC; 230 goto yesno; | |
231 case _SC_SHARED_MEMORY_OBJECTS: 232 mib[0] = CTL_P1003_1B; 233 mib[1] = CTL_P1003_1B_SHARED_MEMORY_OBJECTS; 234 goto yesno; 235 case _SC_SYNCHRONIZED_IO: 236 mib[0] = CTL_P1003_1B; 237 mib[1] = CTL_P1003_1B_SYNCHRONIZED_IO; 238 goto yesno; --- 43 unchanged lines hidden (view full) --- 282 mib[1] = CTL_P1003_1B_SIGQUEUE_MAX; 283 goto yesno; 284 case _SC_TIMER_MAX: 285 mib[0] = CTL_P1003_1B; 286 mib[1] = CTL_P1003_1B_TIMER_MAX; 287 goto yesno; 288#endif /* _P1003_1B_VISIBLE */ 289 | 227 case _SC_SHARED_MEMORY_OBJECTS: 228 mib[0] = CTL_P1003_1B; 229 mib[1] = CTL_P1003_1B_SHARED_MEMORY_OBJECTS; 230 goto yesno; 231 case _SC_SYNCHRONIZED_IO: 232 mib[0] = CTL_P1003_1B; 233 mib[1] = CTL_P1003_1B_SYNCHRONIZED_IO; 234 goto yesno; --- 43 unchanged lines hidden (view full) --- 278 mib[1] = CTL_P1003_1B_SIGQUEUE_MAX; 279 goto yesno; 280 case _SC_TIMER_MAX: 281 mib[0] = CTL_P1003_1B; 282 mib[1] = CTL_P1003_1B_TIMER_MAX; 283 goto yesno; 284#endif /* _P1003_1B_VISIBLE */ 285 |
286 case _SC_FSYNC: 287 return (_POSIX_FSYNC); 288 |
|
290#if defined(_SC_NPROCESSORS_CONF) && defined(_SC_NPROCESSORS_ONLN) 291 case _SC_NPROCESSORS_CONF: 292 case _SC_NPROCESSORS_ONLN: 293 mib[0] = CTL_HW; 294 mib[1] = HW_NCPU; 295 break; 296#endif 297 --- 18 unchanged lines hidden --- | 289#if defined(_SC_NPROCESSORS_CONF) && defined(_SC_NPROCESSORS_ONLN) 290 case _SC_NPROCESSORS_CONF: 291 case _SC_NPROCESSORS_ONLN: 292 mib[0] = CTL_HW; 293 mib[1] = HW_NCPU; 294 break; 295#endif 296 --- 18 unchanged lines hidden --- |