ttyname.c File Reference

#include <lib.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fcntl.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>

Include dependency graph for ttyname.c:

Go to the source code of this file.

Functions

PUBLIC char * ttyname (int fildes)

Variables

PRIVATE char base [] = "/dev"
PRIVATE char path [sizeof(base)+1+NAME_MAX]


Function Documentation

PUBLIC char* ttyname int  fildes  ) 
 

Definition at line 18 of file ttyname.c.

References base, closedir, devices, entry, fstat, NULL, opendir, path, readdir, S_ISCHR, stat::st_dev, stat::st_ino, stat::st_mode, stat::st_rdev, stat, strcat(), and strcpy().

Referenced by finduser(), fttyslot(), main(), test3d(), and wall().


Variable Documentation

PRIVATE char base[] = "/dev"
 

Definition at line 15 of file ttyname.c.

PRIVATE char path[sizeof(base)+1+NAME_MAX]
 

Definition at line 16 of file ttyname.c.


Generated on Fri Apr 14 23:17:54 2006 for minix by  doxygen 1.4.6