[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT NGINX v2 03/10] Add include directory



The directory contains:
  - missing header from Unikraft
  - "stubs" for missing definitions

Signed-off-by: Mihai Pogonaru <pogonarumihai@xxxxxxxxx>
---
 include/crypt.h        | 0
 include/sys/eventfd.h  | 0
 include/sys/sendfile.h | 3 +++
 include/sys/signal.h   | 3 +++
 include/sys/socket.h   | 4 ++++
 5 files changed, 10 insertions(+)
 create mode 100644 include/crypt.h
 create mode 100644 include/sys/eventfd.h
 create mode 100644 include/sys/sendfile.h
 create mode 100644 include/sys/signal.h
 create mode 100644 include/sys/socket.h

diff --git a/include/crypt.h b/include/crypt.h
new file mode 100644
index 0000000..e69de29
diff --git a/include/sys/eventfd.h b/include/sys/eventfd.h
new file mode 100644
index 0000000..e69de29
diff --git a/include/sys/sendfile.h b/include/sys/sendfile.h
new file mode 100644
index 0000000..00e28f4
--- /dev/null
+++ b/include/sys/sendfile.h
@@ -0,0 +1,3 @@
+#include <sys/types.h>
+
+ssize_t sendfile(int out_fd, int in_fd, off_t *_offset, size_t count);
diff --git a/include/sys/signal.h b/include/sys/signal.h
new file mode 100644
index 0000000..79e7bf0
--- /dev/null
+++ b/include/sys/signal.h
@@ -0,0 +1,3 @@
+#define si_pid si_code /* hack until we have signals in Unikraft */
+
+#include_next <sys/signal.h>
diff --git a/include/sys/socket.h b/include/sys/socket.h
new file mode 100644
index 0000000..c2c3ab2
--- /dev/null
+++ b/include/sys/socket.h
@@ -0,0 +1,4 @@
+#define AF_UNIX 0 // NGX_HAVE_UNIX_DOMAIN
+#define SCM_RIGHTS 0 // NGX_HAVE_MSGHDR_MSG_CONTROL, ngx_write_channel
+
+#include_next <sys/socket.h>
-- 
2.11.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.