Back to index

glibc  2.9
new-fd.c File Reference
#include <hurd/fd.h>
#include <stdlib.h>
#include "hurdmalloc.h"

Go to the source code of this file.


struct hurd_fd_hurd_new_fd (io_t port, io_t ctty)

Function Documentation

struct hurd_fd* _hurd_new_fd ( io_t  port,
io_t  ctty 
) [read]

Definition at line 27 of file new-fd.c.

  struct hurd_fd *d = malloc (sizeof (struct hurd_fd));

  if (d != NULL)
      /* Initialize the port cells.  */
      _hurd_port_init (&d->port, port);
      _hurd_port_init (&d->ctty, ctty);
      /* And the fcntl flags.  */
      d->flags = 0;

  return d;

Here is the call graph for this function:

Here is the caller graph for this function: