src/lib/other/getttyent.c File Reference

#include <string.h>
#include <sys/types.h>
#include <ttyent.h>
#include <unistd.h>
#include <fcntl.h>

Go to the source code of this file.

Defines

#define nil   0
#define open   _open
#define close   _close
#define fcntl   _fcntl
#define read   _read
#define arraysize(a)   (sizeof(a) / sizeof((a)[0]))
#define arraylimit(a)   ((a) + arraysize(a))

Functions

void endttyent (void)
int setttyent (void)
struct ttyentgetttyent (void)
struct ttyentgetttynam (const char *name)


Define Documentation

#define arraylimit ( a   )     ((a) + arraysize(a))

Definition at line 16 of file getttyent.c.

#define arraysize ( a   )     (sizeof(a) / sizeof((a)[0]))

Definition at line 15 of file getttyent.c.

#define close   _close

Definition at line 6 of file getttyent.c.

#define fcntl   _fcntl

Definition at line 7 of file getttyent.c.

#define nil   0

Definition at line 4 of file getttyent.c.

#define open   _open

Definition at line 5 of file getttyent.c.

#define read   _read

Definition at line 8 of file getttyent.c.


Function Documentation

void endttyent ( void   ) 

Definition at line 30 of file getttyent.c.

struct ttyent* getttyent ( void   )  [read]

Definition at line 125 of file getttyent.c.

struct ttyent* getttynam ( const char *  name  )  [read]

Definition at line 144 of file getttyent.c.

int setttyent ( void   ) 

Definition at line 40 of file getttyent.c.


Generated on Tue Mar 9 04:36:59 2010 for Minix by  doxygen 1.5.8