blob: e0538cb0a2b5f9c6386af466ac13c4bf2f37448c [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_STARNIX_LIB_LINUX_UAPI_STUB_BITS_FLOCK_H_
#define SRC_STARNIX_LIB_LINUX_UAPI_STUB_BITS_FLOCK_H_
#include <asm/posix_types.h>
struct flock {
short l_type; /* lock type: read/write, etc. */
short l_whence; /* type of l_start */
__kernel_off_t l_start; /* starting offset */
__kernel_off_t l_len; /* len = 0 means until end of file */
pid_t l_pid; /* lock owner */
};
#if _LP64
typedef struct flock flock64;
#define F_GETLK64 12
#define F_SETLK64 13
#define F_SETLKW64 14
#else
struct flock64 {
short l_type; /* lock type: read/write, etc. */
short l_whence; /* type of l_start */
__kernel_loff_t l_start; /* starting offset */
__kernel_loff_t l_len; /* len = 0 means until end of file */
pid_t l_pid; /* lock owner */
};
#endif
#endif // SRC_STARNIX_LIB_LINUX_UAPI_STUB_BITS_FLOCK_H_