Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.

Add debugging to fdwait.

Rewrite getcallerpc on PowerMac to be correct.
This commit is contained in:
rsc 2004-03-05 02:25:41 +00:00
parent 02a1a5c18b
commit c91bd3283a
7 changed files with 27 additions and 18 deletions

View file

@ -0,0 +1,7 @@
#include <lib9.h>
ulong
getcallerpc(void *x)
{
return (((ulong*)(x))[-4]);
}

View file

@ -1,5 +0,0 @@
.text
.globl _getcallerpc
_getcallerpc:
mflr r3
blr

View file

@ -6,5 +6,5 @@
int
p9pipe(int fd[2])
{
return socketpair(AF_UNIX, SOCK_DGRAM, 0, fd);
return socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
}