sysconf.c (237660) | sysconf.c (239347) |
---|---|
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 --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; 35#endif /* LIBC_SCCS and not lint */ 36#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 --- 20 unchanged lines hidden (view full) --- 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#if defined(LIBC_SCCS) && !defined(lint) 34static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; 35#endif /* LIBC_SCCS and not lint */ 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/lib/libc/gen/sysconf.c 237660 2012-06-27 20:32:45Z kib $"); | 37__FBSDID("$FreeBSD: head/lib/libc/gen/sysconf.c 239347 2012-08-17 02:26:31Z davidxu $"); |
38 39#include <sys/param.h> 40#include <sys/time.h> 41#include <sys/sysctl.h> 42#include <sys/resource.h> 43#include <sys/socket.h> 44 45#include <elf.h> --- 308 unchanged lines hidden (view full) --- 354#endif 355 case _SC_CLOCK_SELECTION: 356#if _POSIX_CLOCK_SELECTION == 0 357#error "_POSIX_CLOCK_SELECTION" 358#else 359 return (_POSIX_CLOCK_SELECTION); 360#endif 361 case _SC_CPUTIME: | 38 39#include <sys/param.h> 40#include <sys/time.h> 41#include <sys/sysctl.h> 42#include <sys/resource.h> 43#include <sys/socket.h> 44 45#include <elf.h> --- 308 unchanged lines hidden (view full) --- 354#endif 355 case _SC_CLOCK_SELECTION: 356#if _POSIX_CLOCK_SELECTION == 0 357#error "_POSIX_CLOCK_SELECTION" 358#else 359 return (_POSIX_CLOCK_SELECTION); 360#endif 361 case _SC_CPUTIME: |
362#if _POSIX_CPUTIME == 0 363#error "_POSIX_CPUTIME" 364#else | |
365 return (_POSIX_CPUTIME); | 362 return (_POSIX_CPUTIME); |
366#endif | |
367#ifdef notdef 368 case _SC_FILE_LOCKING: 369 /* 370 * XXX - The standard doesn't tell us how to define 371 * _POSIX_FILE_LOCKING, so we can't answer this one. 372 */ 373#endif 374#if _POSIX_THREAD_SAFE_FUNCTIONS > -1 --- 247 unchanged lines hidden --- | 363#ifdef notdef 364 case _SC_FILE_LOCKING: 365 /* 366 * XXX - The standard doesn't tell us how to define 367 * _POSIX_FILE_LOCKING, so we can't answer this one. 368 */ 369#endif 370#if _POSIX_THREAD_SAFE_FUNCTIONS > -1 --- 247 unchanged lines hidden --- |