Back to index

glibc  2.9
ttyname.c File Reference
#include <errno.h>
#include <unistd.h>
#include <hurd.h>
#include <hurd/term.h>
#include <hurd/fd.h>

Go to the source code of this file.


char * ttyname (int fd)

Function Documentation

char* ttyname ( int  fd)

Definition at line 28 of file ttyname.c.

  error_t err;
  static char nodename[1024];      /* XXX */

  nodename[0] = '\0';
  if (err = HURD_DPORT_USE (fd, __term_get_nodename (port, nodename)))
    return __hurd_dfail (fd, err), NULL;

  return nodename;

Here is the call graph for this function: