Rev | Author | # | Line |
---|---|---|---|
1 | perry | 1 | CHDIR |
2 | !!!CHDIR | ||
3 | !!NAME | ||
2 | PerryLorier | 4 | chdir - change working directory |
1 | perry | 5 | !!SYNOPSIS |
6 | |||
2 | PerryLorier | 7 | __#include <unistd.h>__ |
1 | perry | 8 | |
2 | PerryLorier | 9 | __int chdir(const char *__''path''__);__ |
10 | __int fchdir(int__ ''fd''__);__ | ||
1 | perry | 11 | !!DESCRIPTION |
12 | |||
2 | PerryLorier | 13 | __chdir__ changes the current directory to that specified in ''path''. |
1 | perry | 14 | |
15 | !!RETURN VALUE | ||
16 | |||
2 | PerryLorier | 17 | On success, zero is returned. On error, -1 is returned, and ''errno'' is set appropriately. |
1 | perry | 18 | !!ERRORS |
19 | |||
2 | PerryLorier | 20 | Depending on the file system, other errors can be returned. The more general errors for __chdir__ are listed below: |
1 | perry | 21 | |
2 | PerryLorier | 22 | ;[EFAULT]: ''path'' points outside your accessible address space. |
23 | ;[ENAMETOOLONG]: ''path'' is too long. | ||
24 | ;[ENOENT]: The file does not exist. | ||
25 | ;[ENOMEM]: Insufficient kernel memory was available. | ||
26 | ;[ENOTDIR]: A component of ''path'' is not a directory. | ||
27 | ;[EACCES]: Search permission is denied on a component of ''path''. | ||
28 | ;[ELOOP]: Too many symbolic links were encountered in resolving ''path''. | ||
29 | ;[EIO]: An I/O error occurred. | ||
1 | perry | 30 | |
31 | !!CONFORMING TO | ||
32 | |||
2 | PerryLorier | 33 | The chdir(2) call is compatible with SVr4, SVID, POSIX, X/OPEN, 4.4BSD. SVr4 documents additional [EINTR], [ENOLINK], and [EMULTIHOP] error conditions but has no [ENOMEM]. POSIX.1 does not have [ENOMEM] or [ELOOP] error conditions. X/OPEN does not have [EFAULT], [ENOMEM] or [EIO] error conditions. |
1 | perry | 34 | |
35 | !!SEE ALSO | ||
2 | PerryLorier | 36 | getcwd(3), chroot(2), fchdir(2) |
1 | perry | 37 | ---- |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 4 times)