brintos

brintos / llvm-project-archived public Read only

0
0
Text · 893 B · 3983d78 Raw
28 lines · c
1//===-- Implementation header of internal fcntl function ------------------===//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7 8#ifndef LLVM_LIBC_SRC___SUPPORT_OSUTIL_FCNTL_H9#define LLVM_LIBC_SRC___SUPPORT_OSUTIL_FCNTL_H10 11#include "hdr/types/mode_t.h"12#include "src/__support/error_or.h"13#include "src/__support/macros/config.h"14 15namespace LIBC_NAMESPACE_DECL {16namespace internal {17 18ErrorOr<int> fcntl(int fd, int cmd, void *arg = nullptr);19 20ErrorOr<int> open(const char *path, int flags, mode_t mode_flags = 0);21 22ErrorOr<int> close(int fd);23 24} // namespace internal25} // namespace LIBC_NAMESPACE_DECL26 27#endif // LLVM_LIBC_SRC___SUPPORT_OSUTIL_FCNTL_H28