linux/include/linux/fcntl.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_FCNTL_H
#define _LINUX_FCNTL_H

#include <linux/stat.h>
#include <uapi/linux/fcntl.h>

/* List of all valid flags for the open/openat flags argument: */
#define VALID_OPEN_FLAGS

/* List of all valid flags for the how->resolve argument: */
#define VALID_RESOLVE_FLAGS

/* List of all open_how "versions". */
#define OPEN_HOW_SIZE_VER0
#define OPEN_HOW_SIZE_LATEST

#ifndef force_o_largefile
#define force_o_largefile()
#endif

#if BITS_PER_LONG == 32
#define IS_GETLK32
#define IS_SETLK32
#define IS_SETLKW32
#define IS_GETLK64
#define IS_SETLK64
#define IS_SETLKW64
#else
#define IS_GETLK32(cmd)
#define IS_SETLK32(cmd)
#define IS_SETLKW32(cmd)
#define IS_GETLK64(cmd)
#define IS_SETLK64(cmd)
#define IS_SETLKW64(cmd)
#endif /* BITS_PER_LONG == 32 */

#define IS_GETLK(cmd)
#define IS_SETLK(cmd)
#define IS_SETLKW(cmd)

#endif