BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / commit / ad9b6af63f1fdfcf3556c9b2fc670f72cdc60ab4 / include / sys

// Related

OrionLibC

Barry Updating libc for pipes and signals ad9b6af (2 years, 2 months ago)
diff --git a/include/sys/sched.h b/include/sys/sched.h
index fe17753..2e3013f 100644
--- a/include/sys/sched.h
+++ b/include/sys/sched.h
@@ -5,13 +5,14 @@
 
 /* Flags for clone syscall */
 enum CloneFlag {
-	CLONE_NONE   = (1 << 0),
-	CLONE_PARENT = (1 << 1),
-	CLONE_THREAD = (1 << 2),
-	CLONE_FILES  = (1 << 3),
-	CLONE_FS     = (1 << 4),
-	CLONE_VM     = (1 << 5),
-	CLONE_IPC    = (1 << 6), // TODO: Add IPC namespace
+	CLONE_NONE    = (1 << 0),
+	CLONE_PARENT  = (1 << 1),
+	CLONE_THREAD  = (1 << 2),
+	CLONE_FILES   = (1 << 3),
+	CLONE_FS      = (1 << 4),
+	CLONE_VM      = (1 << 5),
+	CLONE_SIGHAND = (1 << 6),
+	CLONE_IPC     = (1 << 7), // TODO: Add IPC namespace
 };
 
 pid_t clone(int flags);
diff --git a/include/sys/syscall.h b/include/sys/syscall.h
index d732c59..d34101a 100644
--- a/include/sys/syscall.h
+++ b/include/sys/syscall.h
@@ -19,6 +19,8 @@ enum SystemCall {
 	SYSCALL_WAITPID,
 	SYSCALL_TGKILL,
 	SYSCALL_KILL,
+	SYSCALL_SIGNAL,
+	SYSCALL_SIGPROCMASK,
 	SYSCALL_TIME,
 	SYSCALL_TIMES,
 	SYSCALL_SLEEP,
@@ -40,6 +42,7 @@ enum SystemCall {
 	SYSCALL_DUP,
 	SYSCALL_DUP2,
 	SYSCALL_ISATTY,
+	SYSCALL_PIPE,
 
 	/* File System */
 	SYSCALL_MOUNT,
diff --git a/include/sys/time.h b/include/sys/time.h
new file mode 100644
index 0000000..e528978
--- /dev/null
+++ b/include/sys/time.h
@@ -0,0 +1,11 @@
+#ifndef _SYS_TIME_H
+#define _SYS_TIME_H
+
+#include <sys/types.h>
+
+struct timeval {
+	time_t tv_sec;
+	suseconds_t tv_usec;
+};
+
+#endif
diff --git a/include/sys/types.h b/include/sys/types.h
index f8d727a..42ad07c 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -10,5 +10,7 @@ typedef int off_t;
 typedef int mode_t;
 typedef int nlink_t;
 typedef int refcount_t;
+typedef unsigned int time_t;
+typedef unsigned int suseconds_t;
 
 #endif