llvm/libc/include/llvm-libc-macros/linux/unistd-macros.h

//===-- Definition of macros from unistd.h --------------------------------===//
//
// 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_MACROS_LINUX_UNISTD_MACROS_H
#define LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H

// Values for mode argument to the access(...) function.
#define F_OK
#define X_OK
#define W_OK
#define R_OK

#define _SC_PAGESIZE
#define _SC_PAGE_SIZE

#define _PC_FILESIZEBITS
#define _PC_LINK_MAX
#define _PC_MAX_CANON
#define _PC_MAX_INPUT
#define _PC_NAME_MAX
#define _PC_PATH_MAX
#define _PC_PIPE_BUF
#define _PC_2_SYMLINKS
#define _PC_ALLOC_SIZE_MIN
#define _PC_REC_INCR_XFER_SIZE
#define _PC_REC_MAX_XFER_SIZE
#define _PC_REC_MIN_XFER_SIZE
#define _PC_REC_XFER_ALIGN
#define _PC_SYMLINK_MAX
#define _PC_CHOWN_RESTRICTED
#define _PC_NO_TRUNC
#define _PC_VDISABLE
#define _PC_ASYNC_IO
#define _PC_PRIO_IO
#define _PC_SYNC_IO

// TODO: Move these limit macros to a separate file
#define _POSIX_CHOWN_RESTRICTED
#define _POSIX_PIPE_BUF
#define _POSIX_NO_TRUNC
#define _POSIX_VDISABLE

// Macro to set up the call to the __llvm_libc_syscall function
// This is to prevent the call from having fewer than 6 arguments, since six
// arguments are always passed to the syscall. Unnecessary arguments are
// ignored.
#define __syscall_helper(sysno, arg1, arg2, arg3, arg4, arg5, arg6, ...)
#define syscall(...)

#endif // LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H