version 1.81, 2013/06/01 09:51:30 |
version 1.82, 2013/07/03 06:41:51 |
|
|
#include <sys/vmmeter.h> |
#include <sys/vmmeter.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/tty.h> |
#include <sys/tty.h> |
|
#include <sys/wait.h> |
#include <netinet/in.h> |
#include <netinet/in.h> |
#include <arpa/inet.h> |
#include <arpa/inet.h> |
#define _KERNEL |
#define _KERNEL |
|
|
static void usage(void); |
static void usage(void); |
static void atfd(int); |
static void atfd(int); |
static void polltimeout(int); |
static void polltimeout(int); |
|
static void pgid(int); |
|
static void wait4pid(int); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
|
|
break; |
break; |
} |
} |
case SYS_kill: |
case SYS_kill: |
pn(NULL); |
pn(pgid); |
pn(signame); |
pn(signame); |
break; |
break; |
case SYS_lseek: |
case SYS_lseek: |
|
|
plln(); |
plln(); |
break; |
break; |
case SYS_wait4: |
case SYS_wait4: |
|
pn(wait4pid); |
pn(NULL); |
pn(NULL); |
pn(NULL); |
|
pn(wait4optname); |
pn(wait4optname); |
break; |
break; |
case SYS_getrusage: |
case SYS_getrusage: |
|
|
(void)printf("%d", timeout); |
(void)printf("%d", timeout); |
else |
else |
(void)printf("%#x", timeout); |
(void)printf("%#x", timeout); |
|
} |
|
|
|
static void |
|
pgid(int pid) |
|
{ |
|
(void)printf("%d", pid); |
|
} |
|
|
|
static void |
|
wait4pid(int pid) |
|
{ |
|
if (pid == WAIT_ANY) |
|
(void)printf("WAIT_ANY"); |
|
else if (pid == WAIT_MYPGRP) |
|
(void)printf("WAIT_MYPGRP"); |
|
else |
|
pgid(pid); |
} |
} |