blob: 57d96beddc464cf0bb7577f8a0862227d3852ec9 [file] [log] [blame]
Raghu Gandham82fa43f2012-03-27 11:37:17 -07001/****************************************************************************
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 _ASM_FCNTL_H
20#define _ASM_FCNTL_H
21#define O_APPEND 0x0008
22#define O_SYNC 0x0010
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define O_NONBLOCK 0x0080
Elliott Hughesc95eb572013-01-29 18:15:55 -080025#define O_CREAT 0x0100
26#define O_TRUNC 0x0200
27#define O_EXCL 0x0400
Raghu Gandham82fa43f2012-03-27 11:37:17 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080029#define O_NOCTTY 0x0800
30#define FASYNC 0x1000
31#define O_LARGEFILE 0x2000
32#define O_DIRECT 0x8000
Raghu Gandham82fa43f2012-03-27 11:37:17 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define F_GETLK 14
35#define F_SETLK 6
36#define F_SETLKW 7
Elliott Hughesc95eb572013-01-29 18:15:55 -080037#define F_SETOWN 24
Raghu Gandham82fa43f2012-03-27 11:37:17 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughesc95eb572013-01-29 18:15:55 -080039#define F_GETOWN 23
Raghu Gandham82fa43f2012-03-27 11:37:17 -070040#ifndef __mips64
Elliott Hughesc95eb572013-01-29 18:15:55 -080041#define F_GETLK64 33
Raghu Gandham82fa43f2012-03-27 11:37:17 -070042#define F_SETLK64 34
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define F_SETLKW64 35
45#endif
Raghu Gandham988ff8f2012-09-21 17:13:25 -070046struct flock {
47 short l_type;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 short l_whence;
Raghu Gandhama864c2c2013-01-16 16:42:47 -080050 __kernel_off_t l_start;
51 __kernel_off_t l_len;
Raghu Gandham988ff8f2012-09-21 17:13:25 -070052 long l_sysid;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __kernel_pid_t l_pid;
55 long pad[4];
56};
57#define HAVE_ARCH_STRUCT_FLOCK
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Raghu Gandham82fa43f2012-03-27 11:37:17 -070059#include <asm-generic/fcntl.h>
60#endif