llvm/libc/include/llvm-libc-macros/linux/sys-stat-macros.h

//===-- Definition of macros from sys/stat.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_SYS_STAT_MACROS_H
#define LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H

// Definitions from linux/stat.h
#define S_IFMT
#define S_IFSOCK
#define S_IFLNK
#define S_IFREG
#define S_IFBLK
#define S_IFDIR
#define S_IFCHR
#define S_IFIFO
#define S_ISUID
#define S_ISGID
#define S_ISVTX

#define S_ISLNK(m)
#define S_ISREG(m)
#define S_ISDIR(m)
#define S_ISCHR(m)
#define S_ISBLK(m)
#define S_ISFIFO(m)
#define S_ISSOCK(m)

#define S_IRWXU
#define S_IRUSR
#define S_IWUSR
#define S_IXUSR

#define S_IRWXG
#define S_IRGRP
#define S_IWGRP
#define S_IXGRP

#define S_IRWXO
#define S_IROTH
#define S_IWOTH
#define S_IXOTH

#endif // LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H