blob: 86ad973c83e0476d04112c9cd5ed700407224f32 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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 ****************************************************************************/
Christopher Ferris38062f92014-07-09 15:33:25 -070019#ifndef _UAPI_ASM_FCNTL_H
20#define _UAPI_ASM_FCNTL_H
21#include <asm/sgidefs.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080022#define O_APPEND 0x0008
Elliott Hughes8cb52b02013-11-21 13:43:23 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define O_DSYNC 0x0010
Elliott Hughesabd62612013-11-08 11:45:48 -080025#define O_NONBLOCK 0x0080
26#define O_CREAT 0x0100
27#define O_TRUNC 0x0200
Elliott Hughes8cb52b02013-11-21 13:43:23 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070029#define O_EXCL 0x0400
Elliott Hughesabd62612013-11-08 11:45:48 -080030#define O_NOCTTY 0x0800
31#define FASYNC 0x1000
32#define O_LARGEFILE 0x2000
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define __O_SYNC 0x4000
Tao Baod7db5942015-01-28 10:07:51 -080035#define O_SYNC (__O_SYNC | O_DSYNC)
Elliott Hughesabd62612013-11-08 11:45:48 -080036#define O_DIRECT 0x8000
37#define F_GETLK 14
Elliott Hughes8cb52b02013-11-21 13:43:23 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039#define F_SETLK 6
Elliott Hughesabd62612013-11-08 11:45:48 -080040#define F_SETLKW 7
41#define F_SETOWN 24
42#define F_GETOWN 23
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070044#ifndef __mips64
Elliott Hughesabd62612013-11-08 11:45:48 -080045#define F_GETLK64 33
46#define F_SETLK64 34
47#define F_SETLKW64 35
Elliott Hughes8cb52b02013-11-21 13:43:23 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049#endif
50#if _MIPS_SIM != _MIPS_SIM_ABI64
Elliott Hughesabd62612013-11-08 11:45:48 -080051#include <linux/types.h>
52struct flock {
Elliott Hughes8cb52b02013-11-21 13:43:23 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 short l_type;
55 short l_whence;
56 __kernel_off_t l_start;
57 __kernel_off_t l_len;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 long l_sysid;
60 __kernel_pid_t l_pid;
61 long pad[4];
Elliott Hughesabd62612013-11-08 11:45:48 -080062};
Elliott Hughesabd62612013-11-08 11:45:48 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064#define HAVE_ARCH_STRUCT_FLOCK
Elliott Hughes8cb52b02013-11-21 13:43:23 -080065#endif
Duane Sand23003322014-06-19 15:39:29 -070066#include <asm-generic/fcntl.h>
67#endif
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */