Back to index

glibc  2.9
Defines | Functions
hurdports.c File Reference
#include <hurd.h>
#include <hurd/port.h>

Go to the source code of this file.

Defines

#define GET(type, what, idx)   type get##what (void) { return get (INIT_PORT_##idx); }
#define SET(type, what, idx)   int set##what (type new) { return set (INIT_PORT_##idx, new); }
#define GETSET(type, what, idx)   GET (type, what, idx) SET (type, what, idx)

Functions

static mach_port_t get (const int idx)
static int set (const int idx, mach_port_t new)

Define Documentation

#define GET (   type,
  what,
  idx 
)    type get##what (void) { return get (INIT_PORT_##idx); }

Definition at line 33 of file hurdports.c.

#define GETSET (   type,
  what,
  idx 
)    GET (type, what, idx) SET (type, what, idx)

Definition at line 45 of file hurdports.c.

#define SET (   type,
  what,
  idx 
)    int set##what (type new) { return set (INIT_PORT_##idx, new); }

Definition at line 42 of file hurdports.c.


Function Documentation

static mach_port_t get ( const int  idx) [inline, static]

Definition at line 24 of file hurdports.c.

{
  mach_port_t result;
  error_t err = _hurd_ports_get (idx, &result);

  if (err)
    return __hurd_fail (err), MACH_PORT_NULL;
  return result;
}

Here is the call graph for this function:

static int set ( const int  idx,
mach_port_t  new 
) [inline, static]

Definition at line 37 of file hurdports.c.

{
  error_t err = _hurd_ports_set (idx, new);
  return err ? __hurd_fail (err) : 0;
}

Here is the call graph for this function:

Here is the caller graph for this function: