Call for testers: libiberty/physmem.c
Andreas Tobler
toa@pop.agri.ch
Fri Feb 21 17:40:00 GMT 2003
Kaveh R. Ghazi wrote:
> Is `sysctl' a binary program or a system call? (Or both?)
>
> What would the C interface look like? What autoconf magic does it need?
As I understand both sysctl(3) and sysctl(8).
The below is from the darwin man pages top.
HISTORY
sysctl first appeared in 4.4BSD.
Andreas
From the man page 3:
SYSCTL(3) System Library Functions Manual
NAME
sysctl, sysctlbyname, sysctlnametomib - get or set system information
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/types.h>
#include <sys/sysctl.h>
int
sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void
*newp,
size_t newlen);
.....
SYSCTL(8) System Manager's Manual
NAME
sysctl - get or set kernel state
SYNOPSIS
sysctl [-n] name ...
sysctl [-n] -w name=value ...
sysctl [-n] -aA
...
More information about the Gcc
mailing list