version 1.76, 2012/12/05 12:54:15 |
version 1.77, 2012/12/25 09:35:51 |
|
|
#include <err.h> |
#include <err.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <limits.h> |
#include <limits.h> |
|
#include <poll.h> |
#include <signal.h> |
#include <signal.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
|
|
static void setemul(const char *); |
static void setemul(const char *); |
static void usage(void); |
static void usage(void); |
static void atfd(int); |
static void atfd(int); |
|
static void polltimeout(int); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
|
|
pn(NULL); |
pn(NULL); |
pn(sendrecvflagsname); |
pn(sendrecvflagsname); |
break; |
break; |
|
case SYS_shutdown: |
|
pn(NULL); |
|
pn(shutdownhowname); |
|
break; |
case SYS___semctl: |
case SYS___semctl: |
pn(NULL); |
pn(NULL); |
pn(NULL); |
pn(NULL); |
|
|
case SYS_clock_getres: |
case SYS_clock_getres: |
pn(clockname); |
pn(clockname); |
break; |
break; |
|
case SYS_poll: |
|
pn(NULL); |
|
pn(NULL); |
|
pn(polltimeout); |
|
break; |
case SYS_sigaction: |
case SYS_sigaction: |
pn(signame); |
pn(signame); |
break; |
break; |
|
|
pn(NULL); |
pn(NULL); |
pn(wait4optname); |
pn(wait4optname); |
break; |
break; |
|
case SYS_getrusage: |
|
pn(rusagewho); |
|
break; |
case SYS___thrsleep: |
case SYS___thrsleep: |
pn(NULL); |
pn(NULL); |
pn(clockname); |
pn(clockname); |
|
|
pn(NULL); |
pn(NULL); |
pn(atflagsname); |
pn(atflagsname); |
break; |
break; |
|
case SYS_pathconf: |
|
case SYS_fpathconf: |
|
pn(NULL); |
|
pn(pathconfname); |
|
break; |
} |
} |
|
|
nonnative: |
nonnative: |
|
|
{ "tty" }, |
{ "tty" }, |
{ "uid" }, |
{ "uid" }, |
{ "ruid" }, |
{ "ruid" }, |
|
{ "kthread" }, |
}; |
}; |
static struct ctlname ttysname[] = CTL_KERN_TTY_NAMES; |
static struct ctlname ttysname[] = CTL_KERN_TTY_NAMES; |
static struct ctlname semname[] = CTL_KERN_SEMINFO_NAMES; |
static struct ctlname semname[] = CTL_KERN_SEMINFO_NAMES; |
|
|
(void)printf("%d", fd); |
(void)printf("%d", fd); |
else |
else |
(void)printf("%#x", fd); |
(void)printf("%#x", fd); |
|
} |
|
|
|
static void |
|
polltimeout(int timeout) |
|
{ |
|
if (timeout == INFTIM) |
|
(void)printf("INFTIM"); |
|
else if (decimal) |
|
(void)printf("%d", timeout); |
|
else |
|
(void)printf("%#x", timeout); |
} |
} |