aboutsummaryrefslogtreecommitdiff
path: root/libc/src/sys/mman/posix_madvise.h
blob: c13937be16907ace48f1f6f258407535c0ac887e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===-- Implementation header for posix_madvise function --------*- C++ -*-===//
//
// 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_SRC_SYS_MMAN_POSIX_MADVISE_H
#define LLVM_LIBC_SRC_SYS_MMAN_POSIX_MADVISE_H

#include <sys/mman.h> // For size_t and off_t

namespace __llvm_libc {

int posix_madvise(void *addr, size_t size, int advice);

} // namespace __llvm_libc

#endif // LLVM_LIBC_SRC_SYS_MMAN_POSIX_MADVISE_H