2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
15 /*****************************************************************************
40 ******************************************************************************/
52 if ((rdesc
= malloc(sizeof(fdesc
))) == NULL
)
54 if ((wdesc
= malloc(sizeof(fdesc
))) == NULL
) {
59 if (Pipe("XPIPE:", &reader
, &writer
) != DOSTRUE
) {
60 errno
= IoErr2errno(IoErr());
66 pipedes
[0] = __getfdslot(__getfirstfd(0));
68 rdesc
->flags
= O_RDONLY
;
70 __setfdesc(pipedes
[0], rdesc
);
72 pipedes
[1] = __getfdslot(__getfirstfd(pipedes
[0]));
74 wdesc
->flags
= O_WRONLY
;
76 __setfdesc(pipedes
[1], wdesc
);