This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Call for testers: libiberty/physmem.c


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

...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]