#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] |
|
|
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(). |
|
|
|
|
|
|
1.4.6