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:
parent
02a1a5c18b
commit
c91bd3283a
7 changed files with 27 additions and 18 deletions
7
src/lib9/getcallerpc-PowerMacintosh.c
Normal file
7
src/lib9/getcallerpc-PowerMacintosh.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <lib9.h>
|
||||
|
||||
ulong
|
||||
getcallerpc(void *x)
|
||||
{
|
||||
return (((ulong*)(x))[-4]);
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
.text
|
||||
.globl _getcallerpc
|
||||
_getcallerpc:
|
||||
mflr r3
|
||||
blr
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue