diff options
| author | rsc <devnull@localhost> | 2003-10-11 02:45:55 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2003-10-11 02:45:55 +0000 |
| commit | ffcafb8c4b9ed1f6e17891ab00ec2818f5af032f (patch) | |
| tree | 71daefc715737d608e2c54a5548d5d077a3ee0b9 /src/cmd/sam/unix.c | |
| parent | 941c9f36a9230690989f495313a399af5192ef5c (diff) | |
| download | plan9port-ffcafb8c4b9ed1f6e17891ab00ec2818f5af032f.tar.gz plan9port-ffcafb8c4b9ed1f6e17891ab00ec2818f5af032f.zip | |
Various tweaks. The implementation of notify, create, etc.
should really be in lib9.
Diffstat (limited to 'src/cmd/sam/unix.c')
| -rw-r--r-- | src/cmd/sam/unix.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/sam/unix.c b/src/cmd/sam/unix.c index 205af4cd..84926f4a 100644 --- a/src/cmd/sam/unix.c +++ b/src/cmd/sam/unix.c @@ -27,10 +27,10 @@ Rune *right[]= { r1, r2, r3, 0}; #define TMPDIRNAME "/tmp" #endif #ifndef SHNAME -#define SHNAME "rc" +#define SHNAME "sh" #endif #ifndef SHPATHNAME -#define SHPATHNAME "/bin/rc" +#define SHPATHNAME "/bin/sh" #endif #ifndef RXNAME #define RXNAME "ssh" @@ -137,7 +137,7 @@ hup(int sig) } int -notify (void(*f)(void *, char *)) +notify(void(*f)(void *, char *)) { signal(SIGINT, SIG_IGN); signal(SIGPIPE, SIG_IGN); // XXX - bpipeok? @@ -249,7 +249,8 @@ int errstr(char *buf, int size) } */ -int create(char *name, int omode, int perm) +int +create(char *name, int omode, ulong perm) { int mode; int fd; @@ -272,7 +273,7 @@ int create(char *name, int omode, int perm) } /* SHOULD BE ELSEWHERE */ -#ifdef __APPLE__ +#if 0 /* needed on old __APPLE__ */ #include <lib9.h> Lock plk; |
