From 02fec4701cee79f875c1d02b8b4aee09380dbcb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 4 Jan 2001 20:04:45 +0000 Subject: integrate dietlibc/stdio per default for cdrom and disk only installs --- mdk-stage1/dietlibc/include/fcntl.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 mdk-stage1/dietlibc/include/fcntl.h (limited to 'mdk-stage1/dietlibc/include/fcntl.h') 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 + +#include +#include + +#include + +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 -- cgit v1.2.1