HP3000-L Archives

June 2003, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Fri, 6 Jun 2003 12:05:24 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
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 *

ATOM RSS1 RSS2