Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!mmdf
From: HERRHOYMAN%20484%UWECVAXA.BITNET@cunyvm.cuny.edu (Dirk Herr-Hoyman)
Newsgroups: comp.os.minix
Subject: User mode send/receive
Message-ID: <24883@louie.udel.EDU>
Date: 26 Sep 89 14:10:32 GMT
Sender: mmdf@udel.EDU
Lines: 25

I have been trying to set up a server process in user mode
using the send/receive system calls, but with no success.

The server sits in an infinite loop trying to receive(ANY, &mess).
This returns a -8 (and a 0 for the mess.m_source).  When the client
sends to the server, this returns a -2.

I am not sure what these error codes mean.  I am guessing that
they belong to the group of status messages generated by
the kernel (lines 296-307).  In which case -8 is E_NO_PERM
and -2 is E_BAD_SRC.

Since there is no corresponding send/receive system calls in Unix,
I have no manual to look (perhaps manual entries for these could
be included in the next edition of the BOOK).

I am guessing at this point that send/receive may not work in user mode
the way I would like.  Perhaps a user mode process cannot do a
receive(ANY,...).

Any help in this matter would be greatly appreciated.

Dirk Herr-Hoyman
UW-Eau Claire, CS Dept.
BITNET: HERRHOYM@UWECVAXC