printroot.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <minix/minlib.h>
#include <dirent.h>

Include dependency graph for printroot.c:

Go to the source code of this file.

Defines

#define UNKNOWN_DEV   "/dev/unknown"
#define ROOT   "/"

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void done,(char *name, int status))
int main (int argc, char **argv)
void done (char *name, int status)

Variables

static char DEV_PATH [] = "/dev/"
static char MESSAGE [] = " / "
int rflag


Define Documentation

#define ROOT   "/"
 

Definition at line 32 of file printroot.c.

Referenced by main().

#define UNKNOWN_DEV   "/dev/unknown"
 

Definition at line 31 of file printroot.c.

Referenced by main().


Function Documentation

_PROTOTYPE void  done,
(char *name, int status
 

_PROTOTYPE int  main,
(int argc, char **argv) 
 

void done char *  name,
int  status
 

Definition at line 63 of file printroot.c.

References exit(), fsversion(), MESSAGE, rflag, strlen(), and write.

int main int  argc,
char **  argv
 

Definition at line 38 of file printroot.c.

References DEV_PATH, done, entry, filestat, NULL, opendir, readdir, rflag, ROOT, S_IFBLK, S_IFMT, stat::st_dev, stat::st_mode, stat::st_rdev, stat, strcat(), strcmp, strcpy(), and UNKNOWN_DEV.


Variable Documentation

char DEV_PATH[] = "/dev/" [static]
 

Definition at line 29 of file printroot.c.

Referenced by main().

char MESSAGE[] = " / " [static]
 

Definition at line 30 of file printroot.c.

int rflag
 

Definition at line 33 of file printroot.c.


Generated on Fri Apr 14 23:07:11 2006 for minix by  doxygen 1.4.6