pintos/src/examples/ls.c File Reference

#include <syscall.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

static bool list_dir (const char *dir, bool verbose)
int main (int argc, char *argv[])


Function Documentation

static bool list_dir ( const char *  dir,
bool  verbose 
) [static]

Definition at line 17 of file ls.c.

References close(), filesize(), inumber(), isdir(), name, open(), printf(), readdir(), READDIR_MAX_LEN, and snprintf().

Referenced by main().

int main ( int argc  ,
char *  argv[] 
)

Definition at line 69 of file ls.c.

References EXIT_FAILURE, EXIT_SUCCESS, list_dir(), and strcmp().


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6