aboutsummaryrefslogtreecommitdiff
path: root/src/conf
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf')
-rw-r--r--src/conf/confstr.c8
-rw-r--r--src/conf/fpathconf.c8
-rw-r--r--src/conf/legacy.c8
-rw-r--r--src/conf/pathconf.c8
-rw-r--r--src/conf/sysconf.c8
5 files changed, 40 insertions, 0 deletions
diff --git a/src/conf/confstr.c b/src/conf/confstr.c
index 3d417284..36f499e2 100644
--- a/src/conf/confstr.c
+++ b/src/conf/confstr.c
@@ -15,3 +15,11 @@ size_t confstr(int name, char *buf, size_t len)
// this completely useless function and its truncation semantics
return snprintf(buf, len, "%s", s) + 1;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/conf/fpathconf.c b/src/conf/fpathconf.c
index e6aca5cf..fbaa32fc 100644
--- a/src/conf/fpathconf.c
+++ b/src/conf/fpathconf.c
@@ -33,3 +33,11 @@ long fpathconf(int fd, int name)
}
return values[name];
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/conf/legacy.c b/src/conf/legacy.c
index f1d9e325..5dc63561 100644
--- a/src/conf/legacy.c
+++ b/src/conf/legacy.c
@@ -20,3 +20,11 @@ long get_avphys_pages()
{
return sysconf(_SC_AVPHYS_PAGES);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/conf/pathconf.c b/src/conf/pathconf.c
index 01e19c59..267982e0 100644
--- a/src/conf/pathconf.c
+++ b/src/conf/pathconf.c
@@ -4,3 +4,11 @@ long pathconf(const char *path, int name)
{
return fpathconf(-1, name);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c
index 60d3e745..18815066 100644
--- a/src/conf/sysconf.c
+++ b/src/conf/sysconf.c
@@ -230,3 +230,11 @@ long sysconf(int name)
}
return values[name];
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif