… | |
… | |
58 | #include <sys/stat.h> |
58 | #include <sys/stat.h> |
59 | #include <limits.h> |
59 | #include <limits.h> |
60 | #include <fcntl.h> |
60 | #include <fcntl.h> |
61 | #include <assert.h> |
61 | #include <assert.h> |
62 | |
62 | |
63 | #include <sys/statvfs.h> |
|
|
64 | /* intptr_t comes from unistd.h, says POSIX/UNIX/tradition */ |
63 | /* intptr_t comes from unistd.h, says POSIX/UNIX/tradition */ |
65 | /* intptr_t only comes from stdint.h, says idiot openbsd coder */ |
64 | /* intptr_t only comes from stdint.h, says idiot openbsd coder */ |
66 | #if HAVE_STDINT_H |
65 | #if HAVE_STDINT_H |
67 | # include <stdint.h> |
66 | # include <stdint.h> |
68 | #endif |
67 | #endif |
… | |
… | |
1199 | /* round up length */ |
1198 | /* round up length */ |
1200 | *length = (*length + mask) & ~mask; |
1199 | *length = (*length + mask) & ~mask; |
1201 | } |
1200 | } |
1202 | |
1201 | |
1203 | #if !_POSIX_MEMLOCK |
1202 | #if !_POSIX_MEMLOCK |
1204 | # define eio__mlockall(a) eio_nosyscall() |
1203 | # define eio__mlockall(a) EIO_ENOSYS () |
1205 | #else |
1204 | #else |
1206 | |
1205 | |
1207 | static int |
1206 | static int |
1208 | eio__mlockall (int flags) |
1207 | eio__mlockall (int flags) |
1209 | { |
1208 | { |