1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_FCNTL_H
20#define _UAPI_ASM_FCNTL_H
21#include <asm/sgidefs.h>
22#define O_APPEND 0x0008
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define O_DSYNC 0x0010
25#define O_NONBLOCK 0x0080
26#define O_CREAT 0x0100
27#define O_TRUNC 0x0200
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define O_EXCL 0x0400
30#define O_NOCTTY 0x0800
31#define FASYNC 0x1000
32#define O_LARGEFILE 0x2000
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define __O_SYNC 0x4000
35#define O_SYNC (__O_SYNC|O_DSYNC)
36#define O_DIRECT 0x8000
37#define F_GETLK 14
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define F_SETLK 6
40#define F_SETLKW 7
41#define F_SETOWN 24
42#define F_GETOWN 23
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#ifndef __mips64
45#define F_GETLK64 33
46#define F_SETLK64 34
47#define F_SETLKW64 35
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#endif
50#if _MIPS_SIM != _MIPS_SIM_ABI64
51#include <linux/types.h>
52struct flock {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 short l_type;
55 short l_whence;
56 __kernel_off_t l_start;
57 __kernel_off_t l_len;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 long l_sysid;
60 __kernel_pid_t l_pid;
61 long pad[4];
62};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define HAVE_ARCH_STRUCT_FLOCK
65#endif
66#include <asm-generic/fcntl.h>
67#endif
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69