summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/fcntl.h
blob: b792502c10aa230dae5c3dbba47c0351c6138013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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