PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
Go to the source code of this file.
Functions | |
static int | wrap_open (const char *name) |
Tries to remove the current directory, which may succeed or fail. More... | |
void | test_main (void) |
tests/main.h More... | |
void test_main | ( | void | ) |
Definition at line 24 of file dir-rm-cwd.c.
References chdir(), CHECK, create(), inumber(), mkdir(), msg(), name, open(), readdir(), READDIR_MAX_LEN, remove(), and wrap_open().
|
static |
Tries to remove the current directory, which may succeed or fail.
The requirements in each case are different; refer to the assignment for details.
Definition at line 10 of file dir-rm-cwd.c.
References CHECK, fail(), name, and open().
Referenced by test_main().