1abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes/****************************************************************************
2abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************
3abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
4abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   This header was automatically generated from a Linux kernel header
5abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   of the same name, to make information necessary for userspace to
6abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   call into the kernel available to libc.  It contains only constants,
7abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   structures, and macros generated from the original header, and thus,
8abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   contains no copyrightable information.
9abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
10abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   To edit the content of this header, modify the corresponding
11abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   source file (e.g. under external/kernel-headers/original/) then
12abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   run bionic/libc/kernel/tools/update_all.py
13abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
14abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   Any manual change here will be lost the next time this script will
15abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***   be run. You've been warned!
16abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ***
17abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************
18abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes ****************************************************************************/
1938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#ifndef _UAPI_ASM_FCNTL_H
2038062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define _UAPI_ASM_FCNTL_H
2138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#include <asm/sgidefs.h>
22abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_APPEND 0x0008
2338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define O_DSYNC 0x0010
24abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_NONBLOCK 0x0080
25abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_CREAT 0x0100
26abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_TRUNC 0x0200
2738062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define O_EXCL 0x0400
28abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_NOCTTY 0x0800
29abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define FASYNC 0x1000
30abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_LARGEFILE 0x2000
3138062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define __O_SYNC 0x4000
32d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao#define O_SYNC (__O_SYNC | O_DSYNC)
33abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define O_DIRECT 0x8000
34abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_GETLK 14
3538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define F_SETLK 6
36abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_SETLKW 7
37abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_SETOWN 24
38abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_GETOWN 23
3938062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#ifndef __mips64
40abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_GETLK64 33
41abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_SETLK64 34
42abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#define F_SETLKW64 35
4338062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#endif
4438062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#if _MIPS_SIM != _MIPS_SIM_ABI64
45abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes#include <linux/types.h>
46abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughesstruct flock {
47d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  short l_type;
48d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  short l_whence;
49d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __kernel_off_t l_start;
50d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __kernel_off_t l_len;
51d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  long l_sysid;
52d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  __kernel_pid_t l_pid;
53d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  long pad[4];
54abd626117cfd366faa16a5d0ac4621f608a5c887Elliott Hughes};
5538062f954c637861348dd8078cefb73554e6f12cChristopher Ferris#define HAVE_ARCH_STRUCT_FLOCK
568cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#endif
572300332596f181c8b5c19b6d912c645161cf1486Duane Sand#include <asm-generic/fcntl.h>
582300332596f181c8b5c19b6d912c645161cf1486Duane Sand#endif
59