… | |
… | |
11 | #include <stddef.h> |
11 | #include <stddef.h> |
12 | #include <stdlib.h> |
12 | #include <stdlib.h> |
13 | #include <errno.h> |
13 | #include <errno.h> |
14 | #include <sys/types.h> |
14 | #include <sys/types.h> |
15 | #include <sys/stat.h> |
15 | #include <sys/stat.h> |
16 | #include <sys/statvfs.h> |
|
|
17 | #include <limits.h> |
16 | #include <limits.h> |
18 | #include <fcntl.h> |
17 | #include <fcntl.h> |
19 | #include <sched.h> |
18 | #include <sched.h> |
20 | |
19 | |
21 | #if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES |
20 | #if _POSIX_MEMLOCK || _POSIX_MEMLOCK_RANGE || _POSIX_MAPPED_FILES |
… | |
… | |
47 | # undef unlink |
46 | # undef unlink |
48 | # undef rmdir |
47 | # undef rmdir |
49 | # undef rename |
48 | # undef rename |
50 | # undef lseek |
49 | # undef lseek |
51 | |
50 | |
52 | # define chown(a,b,c) (errno = ENOSYS, -1) |
|
|
53 | # define fchown(a,b,c) (errno = ENOSYS, -1) |
|
|
54 | # define fchmod(a,b) (errno = ENOSYS, -1) |
|
|
55 | # define symlink(a,b) (errno = ENOSYS, -1) |
|
|
56 | # define readlink(a,b,c) (errno = ENOSYS, -1) |
|
|
57 | # define mknod(a,b,c) (errno = ENOSYS, -1) |
|
|
58 | # define truncate(a,b) (errno = ENOSYS, -1) |
|
|
59 | # define ftruncate(fd,o) chsize ((fd), (o)) |
|
|
60 | # define fsync(fd) _commit (fd) |
|
|
61 | # define opendir(fd) (errno = ENOSYS, 0) |
51 | # define opendir(fd) (errno = ENOSYS, 0) |
62 | # define readdir(fd) (errno = ENOSYS, -1) |
52 | # define readdir(fd) (errno = ENOSYS, -1) |
63 | # define closedir(fd) (errno = ENOSYS, -1) |
53 | # define closedir(fd) (errno = ENOSYS, -1) |
64 | # define mkdir(a,b) mkdir (a) |
|
|
65 | |
54 | |
66 | #else |
55 | #else |
67 | |
56 | |
68 | # include <sys/time.h> |
57 | # include <sys/time.h> |
69 | # include <sys/select.h> |
58 | # include <sys/select.h> |