From: "Peter Smithson" <[log in to unmask]>
> [log in to unmask] says...
>
> > In <fcntl.h>, there is a _POSIX_FILENO macro which will convert an MPE
fd to
> > a C fd.
>
> I tried that but I still get a "Bad file number" when I try to write to
> it. The valud isn't changed after I do
>
> sock = _POSIX_FILENO(sock);
>
> either so I'm not sure what's happening there.
Yes, most file numbers are unchanged. I think the problem is that
CREATEPROCESS does not pass on any file descriptors except, I think, stdin,
stdlist (stdout), and stderr.
Contrary to your earlier message, fork() and exec() are not implemented with
MPE intrinsics (i.e. not ones an ordinary program can call).
I think your best bet is IPCGIVE/IPCGET. I think it's been stated on this
list before that you can use these with Berkeley socket fds.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *