122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _ASM_FCNTL_H
2022851890Sopenharmony_ci#define _ASM_FCNTL_H
2122851890Sopenharmony_ci#include <bits/flock.h>
2222851890Sopenharmony_ci#include <asm/sgidefs.h>
2322851890Sopenharmony_ci#define O_APPEND 0x0008
2422851890Sopenharmony_ci#define O_DSYNC 0x0010
2522851890Sopenharmony_ci#define O_NONBLOCK 0x0080
2622851890Sopenharmony_ci#define O_CREAT 0x0100
2722851890Sopenharmony_ci#define O_TRUNC 0x0200
2822851890Sopenharmony_ci#define O_EXCL 0x0400
2922851890Sopenharmony_ci#define O_NOCTTY 0x0800
3022851890Sopenharmony_ci#define FASYNC 0x1000
3122851890Sopenharmony_ci#define O_LARGEFILE 0x2000
3222851890Sopenharmony_ci#define __O_SYNC 0x4000
3322851890Sopenharmony_ci#define O_SYNC (__O_SYNC | O_DSYNC)
3422851890Sopenharmony_ci#define O_DIRECT 0x8000
3522851890Sopenharmony_ci#define F_GETLK 14
3622851890Sopenharmony_ci#define F_SETLK 6
3722851890Sopenharmony_ci#define F_SETLKW 7
3822851890Sopenharmony_ci#define F_SETOWN 24
3922851890Sopenharmony_ci#define F_GETOWN 23
4022851890Sopenharmony_ci#ifndef __mips64
4122851890Sopenharmony_ci#define F_GETLK64 33
4222851890Sopenharmony_ci#define F_SETLK64 34
4322851890Sopenharmony_ci#define F_SETLKW64 35
4422851890Sopenharmony_ci#endif
4522851890Sopenharmony_ci#if _MIPS_SIM != _MIPS_SIM_ABI64
4622851890Sopenharmony_ci#include <linux/types.h>
4722851890Sopenharmony_ci#define HAVE_ARCH_STRUCT_FLOCK
4822851890Sopenharmony_ci#endif
4922851890Sopenharmony_ci#include <asm-generic/fcntl.h>
5022851890Sopenharmony_ci#endif
51