* src/system/libroot/posix: Moved open.c and fcntl.c out of the unistd

directory, where they were misplaced, and joined them to fcntl.cpp.
* Added openat().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33976 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-11-10 11:15:35 +00:00
parent 126fd25b7a
commit 098906f1d4
5 changed files with 41 additions and 44 deletions
+4 -1
View File
@@ -64,6 +64,8 @@
#define O_SHLOCK 0x01000000 /* obtain shared lock */
#define O_EXLOCK 0x02000000 /* obtain exclusive lock */
#define AT_FDCWD (-1) /* CWD FD for the *at() functions */
/* advisory file locking */
@@ -81,9 +83,10 @@ extern "C" {
#endif
extern int creat(const char *path, mode_t mode);
extern int open(const char *pathname, int oflags, ...);
extern int open(const char *path, int openMode, ...);
/* the third argument is the permissions of the created file when O_CREAT
is passed in oflags */
extern int openat(int fd, const char *path, int openMode, ...);
extern int fcntl(int fd, int op, ...);