blob: 20b17972d557f4af537de0b825bc466b6ffc4f96 [file] [edit]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Linux specific declarations of macros from sys/file.h.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_FILE_MACROS_H
#define LLVM_LIBC_MACROS_LINUX_SYS_FILE_MACROS_H
#define LOCK_SH 1 // Shared lock.
#define LOCK_EX 2 // Exclusive lock.
#define LOCK_NB 4 // Flag to make a nonblocking request.
#define LOCK_UN 8 // Remove an existing lock.
#endif // LLVM_LIBC_MACROS_LINUX_SYS_FILE_MACROS_H