diff options
Diffstat (limited to 'src/fcntl')
-rw-r--r-- | src/fcntl/creat.c | 8 | ||||
-rw-r--r-- | src/fcntl/fcntl.c | 8 | ||||
-rw-r--r-- | src/fcntl/open.c | 8 | ||||
-rw-r--r-- | src/fcntl/openat.c | 8 | ||||
-rw-r--r-- | src/fcntl/posix_fadvise.c | 8 | ||||
-rw-r--r-- | src/fcntl/posix_fallocate.c | 8 |
6 files changed, 48 insertions, 0 deletions
diff --git a/src/fcntl/creat.c b/src/fcntl/creat.c index c9c43910..264ba761 100644 --- a/src/fcntl/creat.c +++ b/src/fcntl/creat.c @@ -4,3 +4,11 @@ int creat(const char *filename, mode_t mode) { return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/fcntl/fcntl.c b/src/fcntl/fcntl.c index d3bff5c4..e5d35c60 100644 --- a/src/fcntl/fcntl.c +++ b/src/fcntl/fcntl.c @@ -46,3 +46,11 @@ int fcntl(int fd, int cmd, ...) return syscall(SYS_fcntl, fd, cmd, arg); } } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/fcntl/open.c b/src/fcntl/open.c index 4c3c8275..3eaa9014 100644 --- a/src/fcntl/open.c +++ b/src/fcntl/open.c @@ -19,3 +19,11 @@ int open(const char *filename, int flags, ...) return __syscall_ret(fd); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/fcntl/openat.c b/src/fcntl/openat.c index 83a9e0d0..630c9c15 100644 --- a/src/fcntl/openat.c +++ b/src/fcntl/openat.c @@ -15,3 +15,11 @@ int openat(int fd, const char *filename, int flags, ...) return syscall_cp(SYS_openat, fd, filename, flags|O_LARGEFILE, mode); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/fcntl/posix_fadvise.c b/src/fcntl/posix_fadvise.c index 07346d21..fc0bb010 100644 --- a/src/fcntl/posix_fadvise.c +++ b/src/fcntl/posix_fadvise.c @@ -14,3 +14,11 @@ int posix_fadvise(int fd, off_t base, off_t len, int advice) __SYSCALL_LL_E(len), advice); #endif } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif diff --git a/src/fcntl/posix_fallocate.c b/src/fcntl/posix_fallocate.c index 80a65cbf..a3a5cd96 100644 --- a/src/fcntl/posix_fallocate.c +++ b/src/fcntl/posix_fallocate.c @@ -6,3 +6,11 @@ int posix_fallocate(int fd, off_t base, off_t len) return -__syscall(SYS_fallocate, fd, 0, __SYSCALL_LL_E(base), __SYSCALL_LL_E(len)); } + + +#ifdef TEST +int +main(void) { + return 0; +} +#endif |