Back to index

glibc  2.9
Functions | Variables
ports-get.c File Reference
#include <hurd.h>

Go to the source code of this file.


static error_t getbootstrap (mach_port_t *result)
error_t _hurd_ports_get (unsigned int which, mach_port_t *result)


error_t(* _hurd_ports_getters [INIT_PORT_MAX])(mach_port_t *result)

Function Documentation

error_t _hurd_ports_get ( unsigned int  which,
mach_port_t *  result 

Definition at line 35 of file ports-get.c.

  if (which >= _hurd_nports)
    return EINVAL;
  if (which >= INIT_PORT_MAX || _hurd_ports_getters[which] == NULL)
    return HURD_PORT_USE (&_hurd_ports[which],
                       (*result = port) == MACH_PORT_NULL ? 0 
                       : __mach_port_mod_refs (__mach_task_self (),
                                            port, MACH_PORT_RIGHT_SEND,
  return (*_hurd_ports_getters[which]) (result);

Here is the call graph for this function:

Here is the caller graph for this function:

static error_t getbootstrap ( mach_port_t *  result) [static]

Definition at line 22 of file ports-get.c.

  return __task_get_special_port (__mach_task_self (),

Here is the call graph for this function:

Variable Documentation

error_t(* _hurd_ports_getters[INIT_PORT_MAX])(mach_port_t *result)
Initial value:
    [INIT_PORT_BOOTSTRAP] = getbootstrap,

Definition at line 29 of file ports-get.c.