mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
Various tweaks. The implementation of notify, create, etc.
should really be in lib9.
This commit is contained in:
parent
941c9f36a9
commit
ffcafb8c4b
3 changed files with 16 additions and 6 deletions
|
@ -33,7 +33,10 @@ Rune baddir[] = { '<', 'b', 'a', 'd', 'd', 'i', 'r', '>', '\n'};
|
||||||
|
|
||||||
void usage(void);
|
void usage(void);
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
extern int notify(void(*)(void*,char*));
|
||||||
|
|
||||||
|
int
|
||||||
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
String *t;
|
String *t;
|
||||||
|
@ -126,6 +129,7 @@ int main(int argc, char *argv[])
|
||||||
cmdloop();
|
cmdloop();
|
||||||
trytoquit(); /* if we already q'ed, quitok will be TRUE */
|
trytoquit(); /* if we already q'ed, quitok will be TRUE */
|
||||||
exits(0);
|
exits(0);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -404,3 +404,8 @@ void outlong(long);
|
||||||
void outvlong(void*);
|
void outvlong(void*);
|
||||||
void outsend(void);
|
void outsend(void);
|
||||||
void outflush(void);
|
void outflush(void);
|
||||||
|
|
||||||
|
|
||||||
|
extern int create(char*, int, ulong);
|
||||||
|
extern int perror(char*);
|
||||||
|
extern int remove(char*);
|
||||||
|
|
|
@ -27,10 +27,10 @@ Rune *right[]= { r1, r2, r3, 0};
|
||||||
#define TMPDIRNAME "/tmp"
|
#define TMPDIRNAME "/tmp"
|
||||||
#endif
|
#endif
|
||||||
#ifndef SHNAME
|
#ifndef SHNAME
|
||||||
#define SHNAME "rc"
|
#define SHNAME "sh"
|
||||||
#endif
|
#endif
|
||||||
#ifndef SHPATHNAME
|
#ifndef SHPATHNAME
|
||||||
#define SHPATHNAME "/bin/rc"
|
#define SHPATHNAME "/bin/sh"
|
||||||
#endif
|
#endif
|
||||||
#ifndef RXNAME
|
#ifndef RXNAME
|
||||||
#define RXNAME "ssh"
|
#define RXNAME "ssh"
|
||||||
|
@ -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 mode;
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -272,7 +273,7 @@ int create(char *name, int omode, int perm)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SHOULD BE ELSEWHERE */
|
/* SHOULD BE ELSEWHERE */
|
||||||
#ifdef __APPLE__
|
#if 0 /* needed on old __APPLE__ */
|
||||||
#include <lib9.h>
|
#include <lib9.h>
|
||||||
|
|
||||||
Lock plk;
|
Lock plk;
|
||||||
|
|
Loading…
Reference in a new issue