summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/fcntl.h
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-01-04 20:04:45 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-01-04 20:04:45 +0000
commit02fec4701cee79f875c1d02b8b4aee09380dbcb8 (patch)
treef4f291aedbb2e60ee58351481858a8cd3ec80b6b /mdk-stage1/dietlibc/include/fcntl.h
parent9887fe04751edf39e8389f2c3ec3f020b5e1c17d (diff)
downloaddrakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.gz
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.bz2
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.tar.xz
drakx-backup-do-not-use-02fec4701cee79f875c1d02b8b4aee09380dbcb8.zip
integrate dietlibc/stdio per default for cdrom and disk only installs
Diffstat (limited to 'mdk-stage1/dietlibc/include/fcntl.h')
-rw-r--r--mdk-stage1/dietlibc/include/fcntl.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/fcntl.h b/mdk-stage1/dietlibc/include/fcntl.h
new file mode 100644
index 000000000..b792502c1
--- /dev/null
+++ b/mdk-stage1/dietlibc/include/fcntl.h
@@ -0,0 +1,24 @@
+#ifndef _FCNTL_H
+#define _FCNTL_H
+
+#include <sys/cdefs.h>
+
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <asm/fcntl.h>
+
+extern int fcntl (int __fd, int __cmd, ...) __THROW;
+extern int open (const char *__file, int __oflag, ...) __THROW;
+extern int open64 (const char *__file, int __oflag, ...) __THROW;
+extern int creat (const char *__file, mode_t __mode) __THROW;
+extern int creat64 (const char *__file, mode_t __mode) __THROW;
+extern int lockf (int __fd, int __cmd, off_t __len) __THROW;
+extern int lockf64 (int __fd, int __cmd, off64_t __len) __THROW;
+
+#define F_ULOCK 0 /* Unlock a previously locked region. */
+#define F_LOCK 1 /* Lock a region for exclusive use. */
+#define F_TLOCK 2 /* Test and lock a region for exclusive use. */
+#define F_TEST 3 /* Test a region for other processes locks. */
+
+#endif