aboutsummaryrefslogtreecommitdiff
path: root/src/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc')
-rw-r--r--src/ipc/ftok.c8
-rw-r--r--src/ipc/msgctl.c8
-rw-r--r--src/ipc/msgget.c8
-rw-r--r--src/ipc/msgrcv.c8
-rw-r--r--src/ipc/msgsnd.c8
-rw-r--r--src/ipc/semctl.c8
-rw-r--r--src/ipc/semget.c8
-rw-r--r--src/ipc/semop.c8
-rw-r--r--src/ipc/semtimedop.c8
-rw-r--r--src/ipc/shmat.c8
-rw-r--r--src/ipc/shmctl.c8
-rw-r--r--src/ipc/shmdt.c8
-rw-r--r--src/ipc/shmget.c8
13 files changed, 104 insertions, 0 deletions
diff --git a/src/ipc/ftok.c b/src/ipc/ftok.c
index c36b4b60..e6ef40ee 100644
--- a/src/ipc/ftok.c
+++ b/src/ipc/ftok.c
@@ -8,3 +8,11 @@ key_t ftok(const char *path, int id)
return ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16) | ((id & 0xffu) << 24));
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/msgctl.c b/src/ipc/msgctl.c
index 9c114406..09c2c549 100644
--- a/src/ipc/msgctl.c
+++ b/src/ipc/msgctl.c
@@ -49,3 +49,11 @@ int msgctl(int q, int cmd, struct msqid_ds *buf)
#endif
return __syscall_ret(r);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/msgget.c b/src/ipc/msgget.c
index 30a4b42b..f1ac7d0e 100644
--- a/src/ipc/msgget.c
+++ b/src/ipc/msgget.c
@@ -10,3 +10,11 @@ int msgget(key_t k, int flag)
return syscall(SYS_ipc, IPCOP_msgget, k, flag);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/msgrcv.c b/src/ipc/msgrcv.c
index 9d1034b1..647dc02d 100644
--- a/src/ipc/msgrcv.c
+++ b/src/ipc/msgrcv.c
@@ -10,3 +10,11 @@ ssize_t msgrcv(int q, void *m, size_t len, long type, int flag)
return syscall_cp(SYS_ipc, IPCOP_msgrcv, q, len, flag, ((long[]){ (long)m, type }));
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/msgsnd.c b/src/ipc/msgsnd.c
index 99bb17e9..12b59b8d 100644
--- a/src/ipc/msgsnd.c
+++ b/src/ipc/msgsnd.c
@@ -10,3 +10,11 @@ int msgsnd(int q, const void *m, size_t len, int flag)
return syscall_cp(SYS_ipc, IPCOP_msgsnd, q, len, flag, m);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c
index bbb97d7a..da9a3b86 100644
--- a/src/ipc/semctl.c
+++ b/src/ipc/semctl.c
@@ -67,3 +67,11 @@ int semctl(int id, int num, int cmd, ...)
#endif
return __syscall_ret(r);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/semget.c b/src/ipc/semget.c
index 2cdf626b..2319d8fd 100644
--- a/src/ipc/semget.c
+++ b/src/ipc/semget.c
@@ -17,3 +17,11 @@ int semget(key_t key, int n, int fl)
return syscall(SYS_ipc, IPCOP_semget, key, n, fl);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/semop.c b/src/ipc/semop.c
index 5f0c7dea..473157d2 100644
--- a/src/ipc/semop.c
+++ b/src/ipc/semop.c
@@ -10,3 +10,11 @@ int semop(int id, struct sembuf *buf, size_t n)
return syscall(SYS_ipc, IPCOP_semop, id, n, 0, buf);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/semtimedop.c b/src/ipc/semtimedop.c
index a104af21..09c5c108 100644
--- a/src/ipc/semtimedop.c
+++ b/src/ipc/semtimedop.c
@@ -34,3 +34,11 @@ int semtimedop(int id, struct sembuf *buf, size_t n, const struct timespec *ts)
return __syscall_ret(-ENOSYS);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/shmat.c b/src/ipc/shmat.c
index 8c7407d1..e1570e05 100644
--- a/src/ipc/shmat.c
+++ b/src/ipc/shmat.c
@@ -15,3 +15,11 @@ void *shmat(int id, const void *addr, int flag)
return (ret > -(unsigned long)SHMLBA) ? (void *)ret : (void *)addr;
}
#endif
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/shmctl.c b/src/ipc/shmctl.c
index 1c9f78c2..dacd57b3 100644
--- a/src/ipc/shmctl.c
+++ b/src/ipc/shmctl.c
@@ -49,3 +49,11 @@ int shmctl(int id, int cmd, struct shmid_ds *buf)
#endif
return __syscall_ret(r);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/shmdt.c b/src/ipc/shmdt.c
index 57238137..17204131 100644
--- a/src/ipc/shmdt.c
+++ b/src/ipc/shmdt.c
@@ -10,3 +10,11 @@ int shmdt(const void *addr)
return syscall(SYS_ipc, IPCOP_shmdt, 0, 0, 0, addr);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif
diff --git a/src/ipc/shmget.c b/src/ipc/shmget.c
index 7521b5fa..86076caf 100644
--- a/src/ipc/shmget.c
+++ b/src/ipc/shmget.c
@@ -12,3 +12,11 @@ int shmget(key_t key, size_t size, int flag)
return syscall(SYS_ipc, IPCOP_shmget, key, size, flag);
#endif
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif