aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/unistd.h
diff options
context:
space:
mode:
authorhpa <hpa>2004-11-17 05:52:45 +0000
committerhpa <hpa>2004-11-17 05:52:45 +0000
commit8aada67545460566c9be6a3e021260509e8edaee (patch)
tree443a4442dc20031c8d42229a7c5b9e2ba2f33aae /com32/include/unistd.h
parent17f967640cef484f83d755c9dd016a946711236f (diff)
downloadsyslinux-8aada67545460566c9be6a3e021260509e8edaee.tar.gz
syslinux-8aada67545460566c9be6a3e021260509e8edaee.tar.xz
syslinux-8aada67545460566c9be6a3e021260509e8edaee.zip
Very basic operations now work; need to handle line-oriented
versus character-oriented input
Diffstat (limited to 'com32/include/unistd.h')
-rw-r--r--com32/include/unistd.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/com32/include/unistd.h b/com32/include/unistd.h
new file mode 100644
index 00000000..76ce33ae
--- /dev/null
+++ b/com32/include/unistd.h
@@ -0,0 +1,31 @@
+/*
+ * unistd.h
+ */
+
+#ifndef _UNISTD_H
+#define _UNISTD_H
+
+#include <klibc/extern.h>
+#include <klibc/compiler.h>
+#include <stddef.h>
+#include <sys/types.h>
+
+__extern __noreturn _exit(int);
+
+__extern int open(const char *, int, ...);
+struct dev_info;
+__extern int opendev(const struct dev_info *, int);
+__extern int close(int);
+
+__extern ssize_t read(int, void *, size_t);
+__extern ssize_t write(int, const void *, size_t);
+
+__extern int isatty(int);
+
+
+/* Standard file descriptor numbers. */
+#define STDIN_FILENO 0
+#define STDOUT_FILENO 1
+#define STDERR_FILENO 2
+
+#endif /* _UNISTD_H */