aboutsummaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/dir.h0
-rw-r--r--include/sys/ioctl.h0
-rw-r--r--include/sys/param.h12
-rw-r--r--include/sys/select.h0
-rw-r--r--include/sys/socket.h11
-rw-r--r--include/sys/time.h0
-rw-r--r--include/sys/types.h101
-rw-r--r--include/sys/un.h11
-rw-r--r--include/sys/wait.h0
9 files changed, 135 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..dabb3902b
--- /dev/null
+++ b/include/sys/types.h
@@ -0,0 +1,101 @@
+/***
+*sys/types.h - types returned by system level calls for file and time info
+*
+* Copyright (c) Microsoft Corporation. All rights reserved.
+*
+*Purpose:
+* This file defines types used in defining values returned by system
+* level calls for file status and time information.
+* [System V]
+*
+* [Public]
+*
+****/
+
+#pragma once
+
+#ifndef _INC_TYPES
+#define _INC_TYPES
+
+#if !defined(_WIN32)
+#error ERROR: Only Win32 target supported!
+#endif
+
+typedef int pid_t;
+typedef long off_t;
+typedef int gid_t;
+typedef int uid_t;
+
+#if !defined(_W64)
+#if !defined(__midl) && (defined(_X86_) || defined(_M_IX86))
+#define _W64 __w64
+#else
+#define _W64
+#endif
+#endif
+
+#ifdef _USE_32BIT_TIME_T
+#ifdef _WIN64
+#include <crtwrn.h>
+#endif
+#endif
+
+#ifndef _TIME32_T_DEFINED
+typedef _W64 long __time32_t; /* 32-bit time value */
+#define _TIME32_T_DEFINED
+#endif
+
+#ifndef _TIME64_T_DEFINED
+typedef __int64 __time64_t; /* 64-bit time value */
+#define _TIME64_T_DEFINED
+#endif
+
+#ifndef _TIME_T_DEFINED
+#ifdef _USE_32BIT_TIME_T
+typedef __time32_t time_t; /* time value */
+#else
+typedef __time64_t time_t; /* time value */
+#endif
+#define _TIME_T_DEFINED /* avoid multiple def's of time_t */
+#endif
+
+
+#ifndef _INO_T_DEFINED
+
+typedef unsigned short _ino_t; /* i-node number (not used on DOS) */
+
+#if !__STDC__
+/* Non-ANSI name for compatibility */
+typedef unsigned short ino_t;
+#endif
+
+#define _INO_T_DEFINED
+#endif
+
+
+#ifndef _DEV_T_DEFINED
+
+typedef unsigned int _dev_t; /* device code */
+
+#if !__STDC__
+/* Non-ANSI name for compatibility */
+typedef unsigned int dev_t;
+#endif
+
+#define _DEV_T_DEFINED
+#endif
+
+
+#ifndef _OFF_T_DEFINED
+
+typedef long _off_t; /* file offset value */
+
+#if !__STDC__
+/* Non-ANSI name for compatibility */
+typedef long off_t;
+#endif
+
+#define _OFF_T_DEFINED
+#endif
+
+#endif /* _INC_TYPES */
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