xv6/ls.c File Reference
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
Go to the source code of this file.
|
Functions |
| char * | fmtname (char *path) |
| void | ls (char *path) |
| int | main (int argc, char *argv[]) |
Function Documentation
| char* fmtname |
( |
char * |
path |
) |
|
Definition at line 26 of file ls.c.
References close(), DIRSIZ, fmtname(), fstat(), stat::ino, dirent::inum, memmove(), dirent::name, open(), printf(), read(), stat::size, stat(), strcpy(), strlen(), T_DIR, T_FILE, and stat::type.
Referenced by main().
| int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |