On Tue, Nov 27, 2001 at 11:14:30AM +0100, Jan Atle Ramsli wrote:
> 
> >  error_t
> >  _hurd_ports_use (int which, error_t (*operate) (mach_port_t))
> >  {
> > +  if (_hurd_ports == NULL)
> > +    return ENOENT;
> >    return HURD_PORT_USE (&_hurd_ports[which], (*operate) (port));
> >  }
> > 
> > END OF PATCH.
> 
> Could someone please explain what tihs function is doing?

It is a function that allows one to access one of the ports in the task's
initial port table conveniently (see hurd_ports_get, hurd_ports_set and
<hurd/hurd_types.h>).

Note that the macro is more generic than the function, which only allows
access to the init ports, while the macro allows any port (and is used like
this in glibc).  Note also that the function itself is used as an argument
in the hurdlookup.c routines.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to