mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
lib9: add close
More preparation for opendir.
This commit is contained in:
parent
58fdc083ad
commit
6fd4e901ce
2 changed files with 10 additions and 1 deletions
|
@ -747,7 +747,7 @@ extern int awaitnohang(char*, int);
|
||||||
/* extern int bind(char*, char*, int); give up */
|
/* extern int bind(char*, char*, int); give up */
|
||||||
/* extern int brk(void*); <unistd.h> */
|
/* extern int brk(void*); <unistd.h> */
|
||||||
extern int p9chdir(char*);
|
extern int p9chdir(char*);
|
||||||
extern int close(int);
|
extern int p9close(int);
|
||||||
extern int p9create(char*, int, ulong);
|
extern int p9create(char*, int, ulong);
|
||||||
extern int p9dup(int, int);
|
extern int p9dup(int, int);
|
||||||
extern int errstr(char*, uint);
|
extern int errstr(char*, uint);
|
||||||
|
@ -822,6 +822,8 @@ extern ulong rendezvous(ulong, ulong);
|
||||||
#define create p9create
|
#define create p9create
|
||||||
#undef open
|
#undef open
|
||||||
#define open p9open
|
#define open p9open
|
||||||
|
#undef close
|
||||||
|
#define close p9close
|
||||||
#define pipe p9pipe
|
#define pipe p9pipe
|
||||||
#define waitfor p9waitfor
|
#define waitfor p9waitfor
|
||||||
#define write p9write
|
#define write p9write
|
||||||
|
|
|
@ -129,6 +129,13 @@ p9open(char *name, int mode)
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
p9close(int fd)
|
||||||
|
{
|
||||||
|
return close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*);
|
extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*);
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
|
Loading…
Reference in a new issue