aboutsummaryrefslogtreecommitdiff
path: root/src/stat
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat')
-rw-r--r--src/stat/__xstat.c8
-rw-r--r--src/stat/chmod.c8
-rw-r--r--src/stat/fchmod.c8
-rw-r--r--src/stat/fchmodat.c8
-rw-r--r--src/stat/fstat.c8
-rw-r--r--src/stat/fstatat.c8
-rw-r--r--src/stat/futimens.c8
-rw-r--r--src/stat/futimesat.c8
-rw-r--r--src/stat/lchmod.c8
-rw-r--r--src/stat/lstat.c8
-rw-r--r--src/stat/mkdir.c8
-rw-r--r--src/stat/mkdirat.c8
-rw-r--r--src/stat/mkfifo.c8
-rw-r--r--src/stat/mkfifoat.c8
-rw-r--r--src/stat/mknod.c8
-rw-r--r--src/stat/mknodat.c8
-rw-r--r--src/stat/stat.c8
-rw-r--r--src/stat/statvfs.c8
-rw-r--r--src/stat/umask.c8
-rw-r--r--src/stat/utimensat.c8
20 files changed, 160 insertions, 0 deletions
diff --git a/src/stat/__xstat.c b/src/stat/__xstat.c
index b4560df7..d26d4a83 100644
--- a/src/stat/__xstat.c
+++ b/src/stat/__xstat.c
@@ -33,3 +33,11 @@ int __xmknodat(int ver, int fd, const char *path, mode_t mode, dev_t *dev)
{
return mknodat(fd, path, mode, *dev);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/chmod.c b/src/stat/chmod.c
index d4f53c56..149c9a39 100644
--- a/src/stat/chmod.c
+++ b/src/stat/chmod.c
@@ -10,3 +10,11 @@ int chmod(const char *path, mode_t mode)
return syscall(SYS_fchmodat, AT_FDCWD, path, mode);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/fchmod.c b/src/stat/fchmod.c
index 7a503eef..468c049b 100644
--- a/src/stat/fchmod.c
+++ b/src/stat/fchmod.c
@@ -17,3 +17,11 @@ int fchmod(int fd, mode_t mode)
return syscall(SYS_fchmodat, AT_FDCWD, buf, mode);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/fchmodat.c b/src/stat/fchmodat.c
index bc581050..2f0a38ec 100644
--- a/src/stat/fchmodat.c
+++ b/src/stat/fchmodat.c
@@ -35,3 +35,11 @@ int fchmodat(int fd, const char *path, mode_t mode, int flag)
__syscall(SYS_close, fd2);
return ret;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/fstat.c b/src/stat/fstat.c
index fd28b8ac..4d7d9ecc 100644
--- a/src/stat/fstat.c
+++ b/src/stat/fstat.c
@@ -11,3 +11,11 @@ int __fstat(int fd, struct stat *st)
}
weak_alias(__fstat, fstat);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/fstatat.c b/src/stat/fstatat.c
index 9eed063b..4df461ff 100644
--- a/src/stat/fstatat.c
+++ b/src/stat/fstatat.c
@@ -152,3 +152,11 @@ int __fstatat(int fd, const char *restrict path, struct stat *restrict st, int f
}
weak_alias(__fstatat, fstatat);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/futimens.c b/src/stat/futimens.c
index 360225b8..154989d1 100644
--- a/src/stat/futimens.c
+++ b/src/stat/futimens.c
@@ -4,3 +4,11 @@ int futimens(int fd, const struct timespec times[2])
{
return utimensat(fd, 0, times, 0);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/futimesat.c b/src/stat/futimesat.c
index 4bdb1c29..d761c95a 100644
--- a/src/stat/futimesat.c
+++ b/src/stat/futimesat.c
@@ -20,3 +20,11 @@ int __futimesat(int dirfd, const char *pathname, const struct timeval times[2])
}
weak_alias(__futimesat, futimesat);
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/lchmod.c b/src/stat/lchmod.c
index f324ba79..8870b002 100644
--- a/src/stat/lchmod.c
+++ b/src/stat/lchmod.c
@@ -6,3 +6,11 @@ int lchmod(const char *path, mode_t mode)
{
return fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/lstat.c b/src/stat/lstat.c
index 6822fcae..38ef5948 100644
--- a/src/stat/lstat.c
+++ b/src/stat/lstat.c
@@ -5,3 +5,11 @@ int lstat(const char *restrict path, struct stat *restrict buf)
{
return fstatat(AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mkdir.c b/src/stat/mkdir.c
index 32625b7d..5e3de65d 100644
--- a/src/stat/mkdir.c
+++ b/src/stat/mkdir.c
@@ -10,3 +10,11 @@ int mkdir(const char *path, mode_t mode)
return syscall(SYS_mkdirat, AT_FDCWD, path, mode);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mkdirat.c b/src/stat/mkdirat.c
index b8bc2527..7a143653 100644
--- a/src/stat/mkdirat.c
+++ b/src/stat/mkdirat.c
@@ -5,3 +5,11 @@ int mkdirat(int fd, const char *path, mode_t mode)
{
return syscall(SYS_mkdirat, fd, path, mode);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mkfifo.c b/src/stat/mkfifo.c
index 60efcf73..48d36ded 100644
--- a/src/stat/mkfifo.c
+++ b/src/stat/mkfifo.c
@@ -4,3 +4,11 @@ int mkfifo(const char *path, mode_t mode)
{
return mknod(path, mode | S_IFIFO, 0);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mkfifoat.c b/src/stat/mkfifoat.c
index d3a1f970..dae33257 100644
--- a/src/stat/mkfifoat.c
+++ b/src/stat/mkfifoat.c
@@ -4,3 +4,11 @@ int mkfifoat(int fd, const char *path, mode_t mode)
{
return mknodat(fd, path, mode | S_IFIFO, 0);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mknod.c b/src/stat/mknod.c
index beebd84e..2260cde1 100644
--- a/src/stat/mknod.c
+++ b/src/stat/mknod.c
@@ -10,3 +10,11 @@ int mknod(const char *path, mode_t mode, dev_t dev)
return syscall(SYS_mknodat, AT_FDCWD, path, mode, dev);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/mknodat.c b/src/stat/mknodat.c
index 7c97c91a..6265774f 100644
--- a/src/stat/mknodat.c
+++ b/src/stat/mknodat.c
@@ -5,3 +5,11 @@ int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
{
return syscall(SYS_mknodat, fd, path, mode, dev);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/stat.c b/src/stat/stat.c
index 23570e7a..cd9ccdfe 100644
--- a/src/stat/stat.c
+++ b/src/stat/stat.c
@@ -5,3 +5,11 @@ int stat(const char *restrict path, struct stat *restrict buf)
{
return fstatat(AT_FDCWD, path, buf, 0);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/statvfs.c b/src/stat/statvfs.c
index bc12da8b..128de927 100644
--- a/src/stat/statvfs.c
+++ b/src/stat/statvfs.c
@@ -57,3 +57,11 @@ int fstatvfs(int fd, struct statvfs *buf)
fixup(buf, &kbuf);
return 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/umask.c b/src/stat/umask.c
index 5ee913e2..5e2412e1 100644
--- a/src/stat/umask.c
+++ b/src/stat/umask.c
@@ -5,3 +5,11 @@ mode_t umask(mode_t mode)
{
return syscall(SYS_umask, mode);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/stat/utimensat.c b/src/stat/utimensat.c
index 730723a9..f2916f52 100644
--- a/src/stat/utimensat.c
+++ b/src/stat/utimensat.c
@@ -58,3 +58,11 @@ int utimensat(int fd, const char *path, const struct timespec times[2], int flag
#endif
return __syscall_ret(r);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif