summaryrefslogtreecommitdiff
path: root/include/llvm-libc-types/struct_flock.h
blob: 51c9d27640ea1add9d6094ed0183e34c027f67bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===-- Definition of type struct flock64 ---------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_TYPES_STRUCT_FLOCK_H
#define LLVM_LIBC_TYPES_STRUCT_FLOCK_H

#include "llvm-libc-types/off_t.h"
#include "llvm-libc-types/pid_t.h"

#include <stdint.h>

struct flock {
  int16_t l_type;
  int16_t l_whence;
  off_t l_start;
  off_t l_len;
  pid_t l_pid;
};

#endif // LLVM_LIBC_TYPES_STRUCT_FLOCK_H