Back to index

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

Go to the source code of this file.

Functions

int __isatty (int fd)

Function Documentation

int __isatty ( int  fd)

Definition at line 26 of file isatty.c.

{
  error_t err;
  mach_port_t id;

  err = HURD_DPORT_USE (fd, __term_getctty (port, &id));
  if (! err)
    __mach_port_deallocate (__mach_task_self (), id);

  return !err;
}

Here is the call graph for this function: