diff options
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/dir.h | 0 | ||||
-rw-r--r-- | include/sys/ioctl.h | 0 | ||||
-rw-r--r-- | include/sys/param.h | 12 | ||||
-rw-r--r-- | include/sys/select.h | 0 | ||||
-rw-r--r-- | include/sys/socket.h | 11 | ||||
-rw-r--r-- | include/sys/time.h | 0 | ||||
-rw-r--r-- | include/sys/types.h | 11 | ||||
-rw-r--r-- | include/sys/un.h | 11 | ||||
-rw-r--r-- | include/sys/wait.h | 0 |
9 files changed, 45 insertions, 0 deletions
diff --git a/include/sys/dir.h b/include/sys/dir.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/sys/dir.h diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/sys/ioctl.h diff --git a/include/sys/param.h b/include/sys/param.h new file mode 100644 index 000000000..d03021a1e --- /dev/null +++ b/include/sys/param.h @@ -0,0 +1,12 @@ +#ifndef __PARAM_H__
+#define __PARAM_H__
+
+#ifndef MAXPATHLEN
+#ifdef PATH_MAX
+#define MAXPATHLEN PATH_MAX
+#else
+#define MAXPATHLEN 255
+#endif
+#endif
+
+#endif
\ No newline at end of file diff --git a/include/sys/select.h b/include/sys/select.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/sys/select.h diff --git a/include/sys/socket.h b/include/sys/socket.h new file mode 100644 index 000000000..98068952a --- /dev/null +++ b/include/sys/socket.h @@ -0,0 +1,11 @@ +#ifndef __SOCKET_H__ +#define __SOCKET_H__ + +#include <X11/Xwinsock.h> +#include <Ws2tcpip.h> + +typedef unsigned in_addr_t; +typedef unsigned short sa_family_t; +typedef unsigned short in_port_t; + +#endif
\ No newline at end of file diff --git a/include/sys/time.h b/include/sys/time.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/sys/time.h diff --git a/include/sys/types.h b/include/sys/types.h new file mode 100644 index 000000000..07e9640a2 --- /dev/null +++ b/include/sys/types.h @@ -0,0 +1,11 @@ +#ifndef __TYPES_H__
+#define __TYPES_H__
+
+#include <wchar.h>
+
+typedef int pid_t;
+typedef long off_t;
+typedef int gid_t;
+typedef int uid_t;
+
+#endif
\ No newline at end of file diff --git a/include/sys/un.h b/include/sys/un.h new file mode 100644 index 000000000..b2562b723 --- /dev/null +++ b/include/sys/un.h @@ -0,0 +1,11 @@ +#ifndef __UN_H__
+#define __UN_H__
+
+#define UNIX_PATH_MAX 108
+
+struct sockaddr_un {
+ sa_family_t sun_family; /* AF_UNIX */
+ char sun_path[UNIX_PATH_MAX]; /* pathname */
+};
+
+#endif /* __UN_H__ */
\ No newline at end of file diff --git a/include/sys/wait.h b/include/sys/wait.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/include/sys/wait.h |