version 1.3.4.1, 1996/09/19 20:03:56 |
version 1.4, 1997/07/13 19:32:15 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
|
#include <sys/cdefs.h> |
#if defined(LIBC_SCCS) && !defined(lint) |
#if defined(LIBC_SCCS) && !defined(lint) |
#if 0 |
#if 0 |
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; |
static char sccsid[] = "@(#)sysconf.c 8.2 (Berkeley) 3/20/94"; |
#else |
#else |
static char rcsid[] = "$NetBSD$"; |
__RCSID("$NetBSD$"); |
#endif |
#endif |
#endif /* LIBC_SCCS and not lint */ |
#endif /* LIBC_SCCS and not lint */ |
|
|
#include "namespace.h" |
|
#include <sys/param.h> |
#include <sys/param.h> |
#include <sys/sysctl.h> |
#include <sys/sysctl.h> |
#include <sys/time.h> |
#include <sys/time.h> |
Line 53 static char rcsid[] = "$NetBSD$"; |
|
Line 53 static char rcsid[] = "$NetBSD$"; |
|
#include <errno.h> |
#include <errno.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#ifdef __weak_alias |
|
__weak_alias(sysconf,_sysconf); |
|
#endif |
|
|
|
/* |
/* |
* sysconf -- |
* sysconf -- |
* get configurable system variables. |
* get configurable system variables. |
|
|
sysconf(name) |
sysconf(name) |
int name; |
int name; |
{ |
{ |
struct clockinfo clk; |
|
struct rlimit rl; |
struct rlimit rl; |
size_t len; |
size_t len; |
int mib[2], value; |
int mib[2], value; |