#include <sys/types.h>#include <sys/stat.h>#include <sys/wait.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <fcntl.h>#include <limits.h>#include <errno.h>#include <time.h>#include <stdio.h>Include dependency graph for test20.c:

Go to the source code of this file.
Defines | |
| #define | MAX_ERROR 4 |
| #define | ITERATIONS 10 |
| #define | System(cmd) if (system(cmd) != 0) printf("``%s'' failed\n", cmd) |
| #define | Chdir(dir) if (chdir(dir) != 0) printf("Can't goto %s\n", dir) |
| #define | Stat(a, b) if (stat(a,b) != 0) printf("Can't stat %s\n", a) |
Functions | |
| _PROTOTYPE (void main,(int argc, char *argv[])) | |
| _PROTOTYPE (void test20a,(void)) | |
| _PROTOTYPE (int do_check,(void)) | |
| _PROTOTYPE (void e,(int number)) | |
| void | main (int argc, argv) |
| void | test20a () |
| void | test20b () |
| void | test20c () |
| void | test20d () |
| int | do_check () |
| void | makelongnames () |
| void | e (int n) |
| void | quit () |
Variables | |
| int | errct = 0 |
| int | subtest = 1 |
| int | superuser |
| char | MaxName [NAME_MAX+1] |
| char | MaxPath [PATH_MAX] |
| char | ToLongName [NAME_MAX+2] |
| char | ToLongPath [PATH_MAX+1] |
| char | executable [1024] |
|
|
Definition at line 27 of file test20.c. Referenced by main(), my_getcwd(), quit(), test23b(), test23c(), test24a(), test27c(), and test40c(). |
|
|
|
|
|
|
|
|
Definition at line 28 of file test20.c. Referenced by mode(), test25b(), test30a(), test31a(), test32a(), test34a(), test34b(), test34c(), test35a(), test38a(), test38b(), test40a(), and test40b(). |
|
|
Definition at line 26 of file test20.c. Referenced by main(), quit(), rl_check_ints(), test20a(), test20b(), test20c(), test20d(), test22a(), test23a(), test23b(), test23c(), test24a(), test24b(), test24c(), test25b(), test25c(), test25d(), test25e(), test26a(), test26b(), test26c(), test27a(), test27b(), test27c(), test28a(), test28b(), test28c(), test29a(), test29b(), test30a(), test30b(), test30c(), test31a(), test31b(), test31c(), test32a(), test32b(), test32c(), test33a(), test33b(), test33c(), test33d(), test34c(), test35a(), test35b(), test35c(), test36a(), test36b(), test36c(), test36d(), test38a(), test38b(), test38c(), test40a(), test40b(), and test40c(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 264 of file test20.c. References EACCES, EAGAIN, errno, F_GETFD, F_GETLK, F_RDLCK, F_SETLK, F_UNLCK, F_WRLCK, fcntl, getpid, getppid, i, if(), flock::l_len, flock::l_pid, flock::l_start, flock::l_type, flock::l_whence, retval, and SEEK_SET. Referenced by main(). |
|
|
Definition at line 366 of file test20.c. References chdir, errct, errno, exit(), MAX_ERROR, perror(), printf, subtest, and system(). |
|
||||||||||||
|
Definition at line 50 of file test20.c. References atoi, Chdir, do_check(), exit(), fflush(), geteuid, i, ITERATIONS, m, makelongnames(), printf, stdout, strcat(), strcmp, strcpy(), superuser, sync, System, test20a(), test20b(), test20c(), and test20d(). |
|
|
Definition at line 345 of file test20.c. References i, MaxName, MaxPath, memset(), and PATH_MAX. Referenced by main(). |
|
|
|
|
|
Definition at line 82 of file test20.c. References subtest, and System. Referenced by main(). |
|
|
Definition at line 88 of file test20.c. References subtest, and System. Referenced by main(). |
|
|
Definition at line 94 of file test20.c. References subtest, and System. Referenced by main(). |
|
|
Definition at line 105 of file test20.c. References alarm, argv, close, e, errct, execlp, executable, execvp, exit(), F_GETFD, F_GETLK, F_RDLCK, F_SETFD, F_SETLK, F_UNLCK, F_WRLCK, fcntl, fd3, fd4, FD_CLOEXEC, fork, getppid, flock::l_len, flock::l_pid, flock::l_start, flock::l_type, flock::l_whence, NULL, O_RDWR, open, printf, quit, SEEK_SET, subtest, System, wait, WEXITSTATUS, WIFEXITED, and WIFSIGNALED. Referenced by main(). |
|
|
|
|
|
Definition at line 48 of file test20.c. Referenced by test20d(). |
|
|
Definition at line 33 of file test20.c. Referenced by makelongnames(), test23b(), test24c(), test25d(), test27b(), test28b(), test30b(), test31b(), test32b(), test34b(), and test35b(). |
|
|
Definition at line 34 of file test20.c. Referenced by makelongnames(), test23b(), test24c(), test25d(), test27b(), test28b(), test30b(), test31b(), test32b(), test34b(), and test35b(). |
|
|
|
|
|
Definition at line 32 of file test20.c. Referenced by main(), test23c(), test24c(), test25b(), test25c(), test25e(), test27c(), test28c(), test30a(), test30c(), test31c(), test32c(), test33b(), test34a(), test34b(), test34c(), test35c(), test40c(), and test_access(). |
|
|
Definition at line 35 of file test20.c. Referenced by test23b(), test24c(), test25e(), test27c(), test28b(), test30c(), test31c(), and test33c(). |
|
|
Definition at line 36 of file test20.c. Referenced by test23b(), test24c(), test25e(), test27c(), test28b(), test30c(), test31c(), test33c(), and test40c(). |
1.4.6