Small tweaks
Lots of new code imported.
This commit is contained in:
parent
a770daa795
commit
2277c5d7bb
86 changed files with 12444 additions and 91 deletions
|
|
@ -22,6 +22,5 @@ p9putenv(char *s, char *v)
|
|||
if(t == nil)
|
||||
return -1;
|
||||
putenv(t);
|
||||
free(t);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ LIB9OFILES=\
|
|||
getuser.$O\
|
||||
getwd.$O\
|
||||
jmp.$O\
|
||||
lrand.$O\
|
||||
lnrand.$O\
|
||||
lock.$O\
|
||||
main.$O\
|
||||
malloc.$O\
|
||||
|
|
@ -119,6 +121,7 @@ LIB9OFILES=\
|
|||
nrand.$O\
|
||||
nulldir.$O\
|
||||
open.$O\
|
||||
opentemp.$O\
|
||||
pipe.$O\
|
||||
post9p.$O\
|
||||
postnote.$O\
|
||||
|
|
|
|||
|
|
@ -3,6 +3,11 @@
|
|||
#include <libc.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
/*
|
||||
* We use socketpair to get a two-way pipe.
|
||||
* The pipe still doesn't preserve message boundaries.
|
||||
* Worse, it cannot be reopened via /dev/fd/NNN on Linux.
|
||||
*/
|
||||
int
|
||||
p9pipe(int fd[2])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue