diff options
Diffstat (limited to 'libc/include')
143 files changed, 431 insertions, 426 deletions
diff --git a/libc/include/__llvm-libc-common.h b/libc/include/__llvm-libc-common.h index 6b883ee..3af0b08 100644 --- a/libc/include/__llvm-libc-common.h +++ b/libc/include/__llvm-libc-common.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC___COMMON_H -#define LLVM_LIBC___COMMON_H +#ifndef LLVM_LIBC_COMMON_H +#define LLVM_LIBC_COMMON_H #ifdef __cplusplus @@ -51,4 +51,4 @@ #endif // __cplusplus -#endif // LLVM_LIBC___COMMON_H +#endif // LLVM_LIBC_COMMON_H diff --git a/libc/include/llvm-libc-macros/containerof-macro.h b/libc/include/llvm-libc-macros/containerof-macro.h index ea91fa7..62724ab 100644 --- a/libc/include/llvm-libc-macros/containerof-macro.h +++ b/libc/include/llvm-libc-macros/containerof-macro.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H -#define __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H +#ifndef LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H +#define LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H #include <llvm-libc-macros/offsetof-macro.h> @@ -17,4 +17,4 @@ (type *)(void *)((const char *)__ptr - offsetof(type, member)); \ }) -#endif // __LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H +#endif // LLVM_LIBC_MACROS_CONTAINEROF_MACRO_H diff --git a/libc/include/llvm-libc-macros/fcntl-macros.h b/libc/include/llvm-libc-macros/fcntl-macros.h index 448dcc0..4bd03a7 100644 --- a/libc/include/llvm-libc-macros/fcntl-macros.h +++ b/libc/include/llvm-libc-macros/fcntl-macros.h @@ -1,8 +1,8 @@ -#ifndef __LLVM_LIBC_MACROS_FCNTL_MACROS_H -#define __LLVM_LIBC_MACROS_FCNTL_MACROS_H +#ifndef LLVM_LIBC_MACROS_FCNTL_MACROS_H +#define LLVM_LIBC_MACROS_FCNTL_MACROS_H #ifdef __linux__ #include "linux/fcntl-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_FCNTL_MACROS_H +#endif // LLVM_LIBC_MACROS_FCNTL_MACROS_H diff --git a/libc/include/llvm-libc-macros/features-macros.h b/libc/include/llvm-libc-macros/features-macros.h index 2938b3c..5bc87a6 100644 --- a/libc/include/llvm-libc-macros/features-macros.h +++ b/libc/include/llvm-libc-macros/features-macros.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_FEATURES_MACROS_H -#define __LLVM_LIBC_MACROS_FEATURES_MACROS_H +#ifndef LLVM_LIBC_MACROS_FEATURES_MACROS_H +#define LLVM_LIBC_MACROS_FEATURES_MACROS_H #define __LLVM_LIBC__ 1 -#endif // __LLVM_LIBC_MACROS_FEATURES_MACROS_H +#endif // LLVM_LIBC_MACROS_FEATURES_MACROS_H diff --git a/libc/include/llvm-libc-macros/fenv-macros.h b/libc/include/llvm-libc-macros/fenv-macros.h index cc0ea34..72ac660 100644 --- a/libc/include/llvm-libc-macros/fenv-macros.h +++ b/libc/include/llvm-libc-macros/fenv-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_FENV_MACROS_H -#define __LLVM_LIBC_MACROS_FENV_MACROS_H +#ifndef LLVM_LIBC_MACROS_FENV_MACROS_H +#define LLVM_LIBC_MACROS_FENV_MACROS_H #define FE_DIVBYZERO 1 #define FE_INEXACT 2 @@ -24,4 +24,4 @@ #define FE_DFL_ENV ((fenv_t *)-1) -#endif // __LLVM_LIBC_MACROS_FENV_MACROS_H +#endif // LLVM_LIBC_MACROS_FENV_MACROS_H diff --git a/libc/include/llvm-libc-macros/file-seek-macros.h b/libc/include/llvm-libc-macros/file-seek-macros.h index 04f3979..676cb75 100644 --- a/libc/include/llvm-libc-macros/file-seek-macros.h +++ b/libc/include/llvm-libc-macros/file-seek-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H -#define __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H +#ifndef LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H +#define LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H #define SEEK_SET 0 #define SEEK_CUR 1 #define SEEK_END 2 -#endif // __LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H +#endif // LLVM_LIBC_MACROS_FILE_SEEK_MACROS_H diff --git a/libc/include/llvm-libc-macros/float-macros.h b/libc/include/llvm-libc-macros/float-macros.h index 86ec493..a51eab0 100644 --- a/libc/include/llvm-libc-macros/float-macros.h +++ b/libc/include/llvm-libc-macros/float-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_FLOAT_MACROS_H -#define __LLVM_LIBC_MACROS_FLOAT_MACROS_H +#ifndef LLVM_LIBC_MACROS_FLOAT_MACROS_H +#define LLVM_LIBC_MACROS_FLOAT_MACROS_H // Suppress `#include_next is a language extension` warnings. #ifdef __clang__ @@ -169,4 +169,4 @@ // TODO: Add FLT16 and FLT128 constants. -#endif // __LLVM_LIBC_MACROS_FLOAT_MACROS_H +#endif // LLVM_LIBC_MACROS_FLOAT_MACROS_H diff --git a/libc/include/llvm-libc-macros/generic-error-number-macros.h b/libc/include/llvm-libc-macros/generic-error-number-macros.h index 3805c95..7ee0352 100644 --- a/libc/include/llvm-libc-macros/generic-error-number-macros.h +++ b/libc/include/llvm-libc-macros/generic-error-number-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H -#define __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H +#ifndef LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H +#define LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H #define EPERM 1 #define ENOENT 2 @@ -45,4 +45,4 @@ #define ERANGE 34 #define EILSEQ 35 -#endif // __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H +#endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H diff --git a/libc/include/llvm-libc-macros/gpu/time-macros.h b/libc/include/llvm-libc-macros/gpu/time-macros.h index baf2ea5..c3dc812 100644 --- a/libc/include/llvm-libc-macros/gpu/time-macros.h +++ b/libc/include/llvm-libc-macros/gpu/time-macros.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H -#define __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H +#ifndef LLVM_LIBC_MACROS_GPU_TIME_MACROS_H +#define LLVM_LIBC_MACROS_GPU_TIME_MACROS_H #define CLOCKS_PER_SEC 1000000 -#endif // __LLVM_LIBC_MACROS_GPU_TIME_MACROS_H +#endif // LLVM_LIBC_MACROS_GPU_TIME_MACROS_H diff --git a/libc/include/llvm-libc-macros/inttypes-macros.h b/libc/include/llvm-libc-macros/inttypes-macros.h index fc3e251..8e7d4f5 100644 --- a/libc/include/llvm-libc-macros/inttypes-macros.h +++ b/libc/include/llvm-libc-macros/inttypes-macros.h @@ -5,8 +5,8 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_INTTYPES_MACROS_H -#define __LLVM_LIBC_MACROS_INTTYPES_MACROS_H +#ifndef LLVM_LIBC_MACROS_INTTYPES_MACROS_H +#define LLVM_LIBC_MACROS_INTTYPES_MACROS_H // fprintf/scanf format macros. // POSIX.1-2008, Technical Corrigendum 1, XBD/TC1-2008/0050 [211] is applied. @@ -286,4 +286,4 @@ #define SCNxMAX __UINTMAX_FMTx__ #define SCNxPTR __UINTPTR_FMTx__ -#endif // __LLVM_LIBC_MACROS_INTTYPES_MACROS_H +#endif // LLVM_LIBC_MACROS_INTTYPES_MACROS_H diff --git a/libc/include/llvm-libc-macros/limits-macros.h b/libc/include/llvm-libc-macros/limits-macros.h index 3b4df58..95f0f5f 100644 --- a/libc/include/llvm-libc-macros/limits-macros.h +++ b/libc/include/llvm-libc-macros/limits-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LIMITS_MACROS_H -#define __LLVM_LIBC_MACROS_LIMITS_MACROS_H +#ifndef LLVM_LIBC_MACROS_LIMITS_MACROS_H +#define LLVM_LIBC_MACROS_LIMITS_MACROS_H // Define all C23 macro constants of limits.h @@ -225,4 +225,4 @@ #define ULLONG_MIN 0ULL #endif // ULLONG_MIN -#endif // __LLVM_LIBC_MACROS_LIMITS_MACROS_H +#endif // LLVM_LIBC_MACROS_LIMITS_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/fcntl-macros.h b/libc/include/llvm-libc-macros/linux/fcntl-macros.h index 495c5ec..1d4e5bb 100644 --- a/libc/include/llvm-libc-macros/linux/fcntl-macros.h +++ b/libc/include/llvm-libc-macros/linux/fcntl-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H // File creation flags #define O_CLOEXEC 02000000 @@ -68,4 +68,4 @@ #define F_GETFL 3 #define F_SETFL 4 -#endif // __LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_FCNTL_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sched-macros.h b/libc/include/llvm-libc-macros/linux/sched-macros.h index 0c57444..ace6200 100644 --- a/libc/include/llvm-libc-macros/linux/sched-macros.h +++ b/libc/include/llvm-libc-macros/linux/sched-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H // Definitions of SCHED_* macros must match was linux as at: // https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/sched.h @@ -26,4 +26,4 @@ #define CPU_COUNT_S(setsize, set) __sched_getcpucount(setsize, set) #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) -#endif // __LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SCHED_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/signal-macros.h b/libc/include/llvm-libc-macros/linux/signal-macros.h index deb190e..e379fc4 100644 --- a/libc/include/llvm-libc-macros/linux/signal-macros.h +++ b/libc/include/llvm-libc-macros/linux/signal-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H #define SIGHUP 1 #define SIGINT 2 @@ -101,4 +101,4 @@ #define CLD_STOPPED 5 // child has stopped #define CLD_CONTINUED 6 // stopped child has continued -#endif // __LLVM_LIBC_MACROS_LINUX_SIGNUM_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SIGNAL_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h b/libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h index 8f13a0e..5eb779a 100644 --- a/libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-ioctl-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H // TODO (michaelrj): Finish defining these macros. // Just defining this macro for the moment since it's all that we need right @@ -16,4 +16,4 @@ // think is worth digging into right now. #define TIOCGETD 0x5424 -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_IOCTL_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-random-macros.h b/libc/include/llvm-libc-macros/linux/sys-random-macros.h index 1337f8b..9261e87 100644 --- a/libc/include/llvm-libc-macros/linux/sys-random-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-random-macros.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H // Getrandom flags #define GRND_RANDOM 0x0001 #define GRND_NONBLOCK 0x0002 #define GRND_INSECURE 0x0004 -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-resource-macros.h b/libc/include/llvm-libc-macros/linux/sys-resource-macros.h index dd26553..c9d93c3 100644 --- a/libc/include/llvm-libc-macros/linux/sys-resource-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-resource-macros.h @@ -6,6 +6,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H + #define RLIMIT_CPU 0 #define RLIMIT_FSIZE 1 #define RLIMIT_DATA 2 @@ -24,3 +27,5 @@ #define RLIMIT_RTTIME 15 #define RLIM_INFINITY (~0UL) + +#endif // LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-socket-macros.h b/libc/include/llvm-libc-macros/linux/sys-socket-macros.h index 7de4102..f335200 100644 --- a/libc/include/llvm-libc-macros/linux/sys-socket-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-socket-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H // IEEE Std 1003.1-2017 - basedefs/sys_socket.h.html // Macro values come from the Linux syscall interface. @@ -25,4 +25,4 @@ #define SOCK_SEQPACKET 5 #define SOCK_PACKET 10 -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_SOCKET_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-stat-macros.h b/libc/include/llvm-libc-macros/linux/sys-stat-macros.h index 48606cf..3013121 100644 --- a/libc/include/llvm-libc-macros/linux/sys-stat-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-stat-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H +#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 0170000 @@ -45,4 +45,4 @@ #define S_IWOTH 00002 #define S_IXOTH 00001 -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_STAT_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-time-macros.h b/libc/include/llvm-libc-macros/linux/sys-time-macros.h index 06ae43f..e978195 100644 --- a/libc/include/llvm-libc-macros/linux/sys-time-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-time-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H // Add two timevals and put the result in timeval_ptr_result. If the resulting // usec value is greater than 999,999 then the microseconds are turned into full @@ -50,4 +50,4 @@ ? ((timeval_ptr_a)->tv_usec CMP(timeval_ptr_b)->tv_usec) \ : ((timeval_ptr_a)->tv_sec CMP(timeval_ptr_b)->tv_sec)) -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_TIME_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/sys-wait-macros.h b/libc/include/llvm-libc-macros/linux/sys-wait-macros.h index 3e6c6f5..c101638 100644 --- a/libc/include/llvm-libc-macros/linux/sys-wait-macros.h +++ b/libc/include/llvm-libc-macros/linux/sys-wait-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H // Wait flags #define WNOHANG 1 // Do not block @@ -41,4 +41,4 @@ #define P_PGID 2 #define P_PIDFD 3 -#endif // __LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_SYS_WAIT_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/termios-macros.h b/libc/include/llvm-libc-macros/linux/termios-macros.h index 17e380e..668cfe2 100644 --- a/libc/include/llvm-libc-macros/linux/termios-macros.h +++ b/libc/include/llvm-libc-macros/linux/termios-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H // Below are generic definitions of symbolic bit-masks, modes etc. They serve // most architectures including x86_64, aarch64 but have to be adjusted for few @@ -164,4 +164,4 @@ #define TCIOFF 2 // Suspend output #define TCION 3 // Restart output -#endif // __LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_TERMIOS_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/time-macros.h b/libc/include/llvm-libc-macros/linux/time-macros.h index ace27cb..407a1eb 100644 --- a/libc/include/llvm-libc-macros/linux/time-macros.h +++ b/libc/include/llvm-libc-macros/linux/time-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H +#ifndef LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H +#define LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H // clock type macros #define CLOCK_REALTIME 0 @@ -23,4 +23,4 @@ #define CLOCKS_PER_SEC 1000000 -#endif //__LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_TIME_MACROS_H diff --git a/libc/include/llvm-libc-macros/linux/unistd-macros.h b/libc/include/llvm-libc-macros/linux/unistd-macros.h index cfdfb9a..c5109df 100644 --- a/libc/include/llvm-libc-macros/linux/unistd-macros.h +++ b/libc/include/llvm-libc-macros/linux/unistd-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H -#define __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H +#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 0 @@ -27,4 +27,4 @@ (long)(arg4), (long)(arg5), (long)(arg6)) #define syscall(...) __syscall_helper(__VA_ARGS__, 0, 1, 2, 3, 4, 5, 6) -#endif // __LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H +#endif // LLVM_LIBC_MACROS_LINUX_UNISTD_MACROS_H diff --git a/libc/include/llvm-libc-macros/math-macros.h b/libc/include/llvm-libc-macros/math-macros.h index 9f8edd9..e67fe4d 100644 --- a/libc/include/llvm-libc-macros/math-macros.h +++ b/libc/include/llvm-libc-macros/math-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_MATH_MACROS_H -#define __LLVM_LIBC_MACROS_MATH_MACROS_H +#ifndef LLVM_LIBC_MACROS_MATH_MACROS_H +#define LLVM_LIBC_MACROS_MATH_MACROS_H #include "limits-macros.h" @@ -38,4 +38,4 @@ #define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT) #endif -#endif // __LLVM_LIBC_MACROS_MATH_MACROS_H +#endif // LLVM_LIBC_MACROS_MATH_MACROS_H diff --git a/libc/include/llvm-libc-macros/null-macro.h b/libc/include/llvm-libc-macros/null-macro.h index b83fc05..416d4e8 100644 --- a/libc/include/llvm-libc-macros/null-macro.h +++ b/libc/include/llvm-libc-macros/null-macro.h @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_NULL_MACRO_H -#define __LLVM_LIBC_MACROS_NULL_MACRO_H +#ifndef LLVM_LIBC_MACROS_NULL_MACRO_H +#define LLVM_LIBC_MACROS_NULL_MACRO_H #define __need_NULL #include <stddef.h> -#endif // __LLVM_LIBC_MACROS_NULL_MACRO_H +#endif // LLVM_LIBC_MACROS_NULL_MACRO_H diff --git a/libc/include/llvm-libc-macros/offsetof-macro.h b/libc/include/llvm-libc-macros/offsetof-macro.h index eeceb3d..208c06b 100644 --- a/libc/include/llvm-libc-macros/offsetof-macro.h +++ b/libc/include/llvm-libc-macros/offsetof-macro.h @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_OFFSETOF_MACRO_H -#define __LLVM_LIBC_MACROS_OFFSETOF_MACRO_H +#ifndef LLVM_LIBC_MACROS_OFFSETOF_MACRO_H +#define LLVM_LIBC_MACROS_OFFSETOF_MACRO_H #define __need_offsetof #include <stddef.h> -#endif // __LLVM_LIBC_MACROS_OFFSETOF_MACRO_H +#endif // LLVM_LIBC_MACROS_OFFSETOF_MACRO_H diff --git a/libc/include/llvm-libc-macros/sched-macros.h b/libc/include/llvm-libc-macros/sched-macros.h index 760edd9..0f64302 100644 --- a/libc/include/llvm-libc-macros/sched-macros.h +++ b/libc/include/llvm-libc-macros/sched-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SCHED_MACROS_H -#define __LLVM_LIBC_MACROS_SCHED_MACROS_H +#ifndef LLVM_LIBC_MACROS_SCHED_MACROS_H +#define LLVM_LIBC_MACROS_SCHED_MACROS_H #ifdef __linux__ #include "linux/sched-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SCHED_MACROS_H +#endif // LLVM_LIBC_MACROS_SCHED_MACROS_H diff --git a/libc/include/llvm-libc-macros/signal-macros.h b/libc/include/llvm-libc-macros/signal-macros.h index 525032b..7ab605b 100644 --- a/libc/include/llvm-libc-macros/signal-macros.h +++ b/libc/include/llvm-libc-macros/signal-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SIGNUM_MACROS_H -#define __LLVM_LIBC_MACROS_SIGNUM_MACROS_H +#ifndef LLVM_LIBC_MACROS_SIGNAL_MACROS_H +#define LLVM_LIBC_MACROS_SIGNAL_MACROS_H #ifdef __linux__ #include "linux/signal-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SIGNUM_MACROS_H +#endif // LLVM_LIBC_MACROS_SIGNAL_MACROS_H diff --git a/libc/include/llvm-libc-macros/stdckdint-macros.h b/libc/include/llvm-libc-macros/stdckdint-macros.h index 03b73ae..6944122 100644 --- a/libc/include/llvm-libc-macros/stdckdint-macros.h +++ b/libc/include/llvm-libc-macros/stdckdint-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_STDCKDINT_MACROS_H -#define __LLVM_LIBC_MACROS_STDCKDINT_MACROS_H +#ifndef LLVM_LIBC_MACROS_STDCKDINT_MACROS_H +#define LLVM_LIBC_MACROS_STDCKDINT_MACROS_H // We need to use __builtin_*_overflow from GCC/Clang to implement the overflow // macros. Check __GNUC__ for availability of such builtins. @@ -22,4 +22,4 @@ #define ckd_mul(R, A, B) __builtin_mul_overflow((A), (B), (R)) #endif // __STDC_VERSION_STDCKDINT_H__ #endif // __GNUC__ -#endif // __LLVM_LIBC_MACROS_STDCKDINT_MACROS_H +#endif // LLVM_LIBC_MACROS_STDCKDINT_MACROS_H diff --git a/libc/include/llvm-libc-macros/stdfix-macros.h b/libc/include/llvm-libc-macros/stdfix-macros.h index 11c18f8..554ebe5 100644 --- a/libc/include/llvm-libc-macros/stdfix-macros.h +++ b/libc/include/llvm-libc-macros/stdfix-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_STDFIX_MACROS_H -#define __LLVM_LIBC_MACROS_STDFIX_MACROS_H +#ifndef LLVM_LIBC_MACROS_STDFIX_MACROS_H +#define LLVM_LIBC_MACROS_STDFIX_MACROS_H #ifdef __FRACT_FBIT__ // _Fract and _Accum types are available @@ -325,4 +325,4 @@ #endif // LIBC_COMPILER_HAS_FIXED_POINT -#endif // __LLVM_LIBC_MACROS_STDFIX_MACROS_H +#endif // LLVM_LIBC_MACROS_STDFIX_MACROS_H diff --git a/libc/include/llvm-libc-macros/stdio-macros.h b/libc/include/llvm-libc-macros/stdio-macros.h index b2c62ec..db747c5 100644 --- a/libc/include/llvm-libc-macros/stdio-macros.h +++ b/libc/include/llvm-libc-macros/stdio-macros.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_STDIO_MACROS_H -#define __LLVM_LIBC_MACROS_STDIO_MACROS_H +#ifndef LLVM_LIBC_MACROS_STDIO_MACROS_H +#define LLVM_LIBC_MACROS_STDIO_MACROS_H #define BUFSIZ 1024 -#endif // __LLVM_LIBC_MACROS_STDIO_MACROS_H +#endif // LLVM_LIBC_MACROS_STDIO_MACROS_H diff --git a/libc/include/llvm-libc-macros/stdlib-macros.h b/libc/include/llvm-libc-macros/stdlib-macros.h index a7625aa..5fcbfef 100644 --- a/libc/include/llvm-libc-macros/stdlib-macros.h +++ b/libc/include/llvm-libc-macros/stdlib-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_STDLIB_MACROS_H -#define __LLVM_LIBC_MACROS_STDLIB_MACROS_H +#ifndef LLVM_LIBC_MACROS_STDLIB_MACROS_H +#define LLVM_LIBC_MACROS_STDLIB_MACROS_H #ifndef NULL #define __need_NULL @@ -19,4 +19,4 @@ #define RAND_MAX 2147483647 -#endif // __LLVM_LIBC_MACROS_STDLIB_MACROS_H +#endif // LLVM_LIBC_MACROS_STDLIB_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-auxv-macros.h b/libc/include/llvm-libc-macros/sys-auxv-macros.h index a57c601..2dcaa2f 100644 --- a/libc/include/llvm-libc-macros/sys-auxv-macros.h +++ b/libc/include/llvm-libc-macros/sys-auxv-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_AUXV_MACROS_H -#define __LLVM_LIBC_MACROS_AUXV_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_AUXV_MACROS_H +#define LLVM_LIBC_MACROS_SYS_AUXV_MACROS_H // Macros defining the aux vector indexes. #define AT_NULL 0 @@ -40,4 +40,4 @@ #define AT_MINSIGSTKSZ 51 #endif -#endif // __LLVM_LIBC_MACROS_AUXV_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_AUXV_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-ioctl-macros.h b/libc/include/llvm-libc-macros/sys-ioctl-macros.h index c273fab..4a5f965 100644 --- a/libc/include/llvm-libc-macros/sys-ioctl-macros.h +++ b/libc/include/llvm-libc-macros/sys-ioctl-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H +#define LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H #ifdef __linux__ #include "linux/sys-ioctl-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_IOCTL_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-mman-macros.h b/libc/include/llvm-libc-macros/sys-mman-macros.h index 4ffc112..a6dc6d9 100644 --- a/libc/include/llvm-libc-macros/sys-mman-macros.h +++ b/libc/include/llvm-libc-macros/sys-mman-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H +#define LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H // Use definitions from <linux/mman.h> to dispatch arch-specific flag values. // For example, MCL_CURRENT/MCL_FUTURE/MCL_ONFAULT are different on different @@ -45,4 +45,4 @@ #define POSIX_MADV_DONTNEED MADV_DONTNEED #endif -#endif // __LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_MMAN_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-queue-macros.h b/libc/include/llvm-libc-macros/sys-queue-macros.h index 7da643c..fcac265 100644 --- a/libc/include/llvm-libc-macros/sys-queue-macros.h +++ b/libc/include/llvm-libc-macros/sys-queue-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H +#define LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H #include <llvm-libc-macros/containerof-macro.h> #include <llvm-libc-macros/null-macro.h> @@ -259,4 +259,4 @@ (head2)->stqh_last = &STAILQ_FIRST(head2); \ } while (0) -#endif // __LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_QUEUE_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-random-macros.h b/libc/include/llvm-libc-macros/sys-random-macros.h index e87128d..9b1a8ed 100644 --- a/libc/include/llvm-libc-macros/sys-random-macros.h +++ b/libc/include/llvm-libc-macros/sys-random-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H +#define LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H #ifdef __linux__ #include "linux/sys-random-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_RANDOM_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-resource-macros.h b/libc/include/llvm-libc-macros/sys-resource-macros.h index 272723a..1ce01cd 100644 --- a/libc/include/llvm-libc-macros/sys-resource-macros.h +++ b/libc/include/llvm-libc-macros/sys-resource-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H +#define LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H #ifdef __linux__ #include "linux/sys-resource-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_RESOURCE_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-select-macros.h b/libc/include/llvm-libc-macros/sys-select-macros.h index 5d6592c..d54e530 100644 --- a/libc/include/llvm-libc-macros/sys-select-macros.h +++ b/libc/include/llvm-libc-macros/sys-select-macros.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H +#define LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H #define FD_SETSIZE 1024 #define __FD_SET_WORD_TYPE unsigned long @@ -32,4 +32,4 @@ #define FD_ISSET(fd, set) \ (int)(((set)->__set[__FD_WORD(fd)] & __FD_MASK(fd)) != 0) -#endif // __LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_SELECT_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-socket-macros.h b/libc/include/llvm-libc-macros/sys-socket-macros.h index 2032360..6b1d280 100644 --- a/libc/include/llvm-libc-macros/sys-socket-macros.h +++ b/libc/include/llvm-libc-macros/sys-socket-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H +#define LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H #ifdef __linux__ #include "linux/sys-socket-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_SOCKET_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-stat-macros.h b/libc/include/llvm-libc-macros/sys-stat-macros.h index 64f63c3..c47c961 100644 --- a/libc/include/llvm-libc-macros/sys-stat-macros.h +++ b/libc/include/llvm-libc-macros/sys-stat-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_STAT_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_STAT_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_STAT_MACROS_H +#define LLVM_LIBC_MACROS_SYS_STAT_MACROS_H #ifdef __linux__ #include "linux/sys-stat-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_STAT_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_STAT_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-time-macros.h b/libc/include/llvm-libc-macros/sys-time-macros.h index 8e463170..36d7d5a 100644 --- a/libc/include/llvm-libc-macros/sys-time-macros.h +++ b/libc/include/llvm-libc-macros/sys-time-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_TIME_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_TIME_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_TIME_MACROS_H +#define LLVM_LIBC_MACROS_SYS_TIME_MACROS_H #ifdef __linux__ #include "linux/sys-time-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_TIME_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_TIME_MACROS_H diff --git a/libc/include/llvm-libc-macros/sys-wait-macros.h b/libc/include/llvm-libc-macros/sys-wait-macros.h index ea58fcc..c418a79 100644 --- a/libc/include/llvm-libc-macros/sys-wait-macros.h +++ b/libc/include/llvm-libc-macros/sys-wait-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H -#define __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H +#ifndef LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H +#define LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H #ifdef __linux__ #include "linux/sys-wait-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H +#endif // LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H diff --git a/libc/include/llvm-libc-macros/termios-macros.h b/libc/include/llvm-libc-macros/termios-macros.h index c999828..1067e8a 100644 --- a/libc/include/llvm-libc-macros/termios-macros.h +++ b/libc/include/llvm-libc-macros/termios-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_TERMIOS_MACROS_H -#define __LLVM_LIBC_MACROS_TERMIOS_MACROS_H +#ifndef LLVM_LIBC_MACROS_TERMIOS_MACROS_H +#define LLVM_LIBC_MACROS_TERMIOS_MACROS_H #ifdef __linux__ #include "linux/termios-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_TERMIOS_MACROS_H +#endif // LLVM_LIBC_MACROS_TERMIOS_MACROS_H diff --git a/libc/include/llvm-libc-macros/time-macros.h b/libc/include/llvm-libc-macros/time-macros.h index c3bd7aa..6d49ed4 100644 --- a/libc/include/llvm-libc-macros/time-macros.h +++ b/libc/include/llvm-libc-macros/time-macros.h @@ -1,5 +1,5 @@ -#ifndef __LLVM_LIBC_MACROS_TIME_MACROS_H -#define __LLVM_LIBC_MACROS_TIME_MACROS_H +#ifndef LLVM_LIBC_MACROS_TIME_MACROS_H +#define LLVM_LIBC_MACROS_TIME_MACROS_H #if defined(__AMDGPU__) || defined(__NVPTX__) #include "gpu/time-macros.h" @@ -7,4 +7,4 @@ #include "linux/time-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_TIME_MACROS_H +#endif // LLVM_LIBC_MACROS_TIME_MACROS_H diff --git a/libc/include/llvm-libc-macros/unistd-macros.h b/libc/include/llvm-libc-macros/unistd-macros.h index dbcac0f..4f27f07 100644 --- a/libc/include/llvm-libc-macros/unistd-macros.h +++ b/libc/include/llvm-libc-macros/unistd-macros.h @@ -1,8 +1,8 @@ -#ifndef __LLVM_LIBC_MACROS_UNISTD_MACROS_H -#define __LLVM_LIBC_MACROS_UNISTD_MACROS_H +#ifndef LLVM_LIBC_MACROS_UNISTD_MACROS_H +#define LLVM_LIBC_MACROS_UNISTD_MACROS_H #ifdef __linux__ #include "linux/unistd-macros.h" #endif -#endif // __LLVM_LIBC_MACROS_UNISTD_MACROS_H +#endif // LLVM_LIBC_MACROS_UNISTD_MACROS_H diff --git a/libc/include/llvm-libc-macros/wchar-macros.h b/libc/include/llvm-libc-macros/wchar-macros.h index adca41e..5b211f5 100644 --- a/libc/include/llvm-libc-macros/wchar-macros.h +++ b/libc/include/llvm-libc-macros/wchar-macros.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_MACROS_WCHAR_MACROS_H -#define __LLVM_LIBC_MACROS_WCHAR_MACROS_H +#ifndef LLVM_LIBC_MACROS_WCHAR_MACROS_H +#define LLVM_LIBC_MACROS_WCHAR_MACROS_H #ifndef WEOF #define WEOF 0xffffffffu #endif -#endif // __LLVM_LIBC_MACROS_WCHAR_MACROS_H +#endif // LLVM_LIBC_MACROS_WCHAR_MACROS_H diff --git a/libc/include/llvm-libc-types/ACTION.h b/libc/include/llvm-libc-types/ACTION.h index 7181a59..1ddce20 100644 --- a/libc/include/llvm-libc-types/ACTION.h +++ b/libc/include/llvm-libc-types/ACTION.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_ACTION_H__ -#define __LLVM_LIBC_TYPES_ACTION_H__ +#ifndef LLVM_LIBC_TYPES_ACTION_H +#define LLVM_LIBC_TYPES_ACTION_H typedef enum { FIND, ENTER } ACTION; -#endif // __LLVM_LIBC_TYPES_ACTION_H__ +#endif // LLVM_LIBC_TYPES_ACTION_H diff --git a/libc/include/llvm-libc-types/DIR.h b/libc/include/llvm-libc-types/DIR.h index 0a2cf27..855446d 100644 --- a/libc/include/llvm-libc-types/DIR.h +++ b/libc/include/llvm-libc-types/DIR.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_DIR_H__ -#define __LLVM_LIBC_TYPES_DIR_H__ +#ifndef LLVM_LIBC_TYPES_DIR_H +#define LLVM_LIBC_TYPES_DIR_H typedef struct DIR DIR; -#endif // __LLVM_LIBC_TYPES_DIR_H__ +#endif // LLVM_LIBC_TYPES_DIR_H diff --git a/libc/include/llvm-libc-types/ENTRY.h b/libc/include/llvm-libc-types/ENTRY.h index 0ccb593..ccbd777 100644 --- a/libc/include/llvm-libc-types/ENTRY.h +++ b/libc/include/llvm-libc-types/ENTRY.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_ENTRY_H__ -#define __LLVM_LIBC_TYPES_ENTRY_H__ +#ifndef LLVM_LIBC_TYPES_ENTRY_H +#define LLVM_LIBC_TYPES_ENTRY_H typedef struct { char *key; void *data; } ENTRY; -#endif // __LLVM_LIBC_TYPES_ENTRY_H__ +#endif // LLVM_LIBC_TYPES_ENTRY_H diff --git a/libc/include/llvm-libc-types/FILE.h b/libc/include/llvm-libc-types/FILE.h index 1c1ff97..f1d2e4f 100644 --- a/libc/include/llvm-libc-types/FILE.h +++ b/libc/include/llvm-libc-types/FILE.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FILE_H__ -#define __LLVM_LIBC_TYPES_FILE_H__ +#ifndef LLVM_LIBC_TYPES_FILE_H +#define LLVM_LIBC_TYPES_FILE_H typedef struct FILE FILE; -#endif // __LLVM_LIBC_TYPES_FILE_H__ +#endif // LLVM_LIBC_TYPES_FILE_H diff --git a/libc/include/llvm-libc-types/__atexithandler_t.h b/libc/include/llvm-libc-types/__atexithandler_t.h index a9887b6..01aed67 100644 --- a/libc/include/llvm-libc-types/__atexithandler_t.h +++ b/libc/include/llvm-libc-types/__atexithandler_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_ATEXITHANDLER_T_H__ -#define __LLVM_LIBC_TYPES_ATEXITHANDLER_T_H__ +#ifndef LLVM_LIBC_TYPES___ATEXITHANDLER_T_H +#define LLVM_LIBC_TYPES___ATEXITHANDLER_T_H typedef void (*__atexithandler_t)(void); -#endif // __LLVM_LIBC_TYPES_ATEXITHANDLER_T_H__ +#endif // LLVM_LIBC_TYPES___ATEXITHANDLER_T_H diff --git a/libc/include/llvm-libc-types/__atfork_callback_t.h b/libc/include/llvm-libc-types/__atfork_callback_t.h index 3da66c2..ae2d0ca 100644 --- a/libc/include/llvm-libc-types/__atfork_callback_t.h +++ b/libc/include/llvm-libc-types/__atfork_callback_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_ATFORK_CALLBACK_T_H__ -#define __LLVM_LIBC_TYPES_ATFORK_CALLBACK_T_H__ +#ifndef LLVM_LIBC_TYPES___ATFORK_CALLBACK_T_H +#define LLVM_LIBC_TYPES___ATFORK_CALLBACK_T_H typedef void (*__atfork_callback_t)(void); -#endif // __LLVM_LIBC_TYPES_ATFORK_CALLBACK_T_H__ +#endif // LLVM_LIBC_TYPES___ATFORK_CALLBACK_T_H diff --git a/libc/include/llvm-libc-types/__bsearchcompare_t.h b/libc/include/llvm-libc-types/__bsearchcompare_t.h index 40ebc7f..0b1987be 100644 --- a/libc/include/llvm-libc-types/__bsearchcompare_t.h +++ b/libc/include/llvm-libc-types/__bsearchcompare_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ -#define __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ +#ifndef LLVM_LIBC_TYPES___BSEARCHCOMPARE_T_H +#define LLVM_LIBC_TYPES___BSEARCHCOMPARE_T_H typedef int (*__bsearchcompare_t)(const void *, const void *); -#endif // __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ +#endif // LLVM_LIBC_TYPES___BSEARCHCOMPARE_T_H diff --git a/libc/include/llvm-libc-types/__call_once_func_t.h b/libc/include/llvm-libc-types/__call_once_func_t.h index bc8ed83..6d278da 100644 --- a/libc/include/llvm-libc-types/__call_once_func_t.h +++ b/libc/include/llvm-libc-types/__call_once_func_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ -#define __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ +#ifndef LLVM_LIBC_TYPES___CALL_ONCE_FUNC_T_H +#define LLVM_LIBC_TYPES___CALL_ONCE_FUNC_T_H typedef void (*__call_once_func_t)(void); -#endif // __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ +#endif // LLVM_LIBC_TYPES___CALL_ONCE_FUNC_T_H diff --git a/libc/include/llvm-libc-types/__exec_argv_t.h b/libc/include/llvm-libc-types/__exec_argv_t.h index 35b687d9..4eff583 100644 --- a/libc/include/llvm-libc-types/__exec_argv_t.h +++ b/libc/include/llvm-libc-types/__exec_argv_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_EXEC_ARGV_T_H__ -#define __LLVM_LIBC_TYPES_EXEC_ARGV_T_H__ +#ifndef LLVM_LIBC_TYPES___EXEC_ARGV_T_H +#define LLVM_LIBC_TYPES___EXEC_ARGV_T_H typedef char *const __exec_argv_t[]; -#endif // __LLVM_LIBC_TYPES_EXEC_ARGV_T_H__ +#endif // LLVM_LIBC_TYPES___EXEC_ARGV_T_H diff --git a/libc/include/llvm-libc-types/__exec_envp_t.h b/libc/include/llvm-libc-types/__exec_envp_t.h index 06eb2dd..89e0275 100644 --- a/libc/include/llvm-libc-types/__exec_envp_t.h +++ b/libc/include/llvm-libc-types/__exec_envp_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_EXEC_ENVP_T_H__ -#define __LLVM_LIBC_TYPES_EXEC_ENVP_T_H__ +#ifndef LLVM_LIBC_TYPES___EXEC_ENVP_T_H +#define LLVM_LIBC_TYPES___EXEC_ENVP_T_H typedef char *const __exec_envp_t[]; -#endif // __LLVM_LIBC_TYPES_EXEC_ENVP_T_H__ +#endif // LLVM_LIBC_TYPES___EXEC_ENVP_T_H diff --git a/libc/include/llvm-libc-types/__futex_word.h b/libc/include/llvm-libc-types/__futex_word.h index 85130ab..04023c7 100644 --- a/libc/include/llvm-libc-types/__futex_word.h +++ b/libc/include/llvm-libc-types/__futex_word.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FUTEX_WORD_H__ -#define __LLVM_LIBC_TYPES_FUTEX_WORD_H__ +#ifndef LLVM_LIBC_TYPES___FUTEX_WORD_H +#define LLVM_LIBC_TYPES___FUTEX_WORD_H typedef struct { // Futex word should be aligned appropriately to allow target atomic @@ -17,4 +17,4 @@ typedef struct { : _Alignof(__UINT32_TYPE__)) __UINT32_TYPE__ __word; } __futex_word; -#endif // __LLVM_LIBC_TYPES_FUTEX_WORD_H__ +#endif // LLVM_LIBC_TYPES___FUTEX_WORD_H diff --git a/libc/include/llvm-libc-types/__getoptargv_t.h b/libc/include/llvm-libc-types/__getoptargv_t.h index 81c6728..c26b9e9 100644 --- a/libc/include/llvm-libc-types/__getoptargv_t.h +++ b/libc/include/llvm-libc-types/__getoptargv_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_GETOPTARGV_T_H__ -#define __LLVM_LIBC_TYPES_GETOPTARGV_T_H__ +#ifndef LLVM_LIBC_TYPES___GETOPTARGV_T_H +#define LLVM_LIBC_TYPES___GETOPTARGV_T_H typedef char *const __getoptargv_t[]; -#endif // __LLVM_LIBC_TYPES_GETOPTARGV_T_H__ +#endif // LLVM_LIBC_TYPES___GETOPTARGV_T_H diff --git a/libc/include/llvm-libc-types/__mutex_type.h b/libc/include/llvm-libc-types/__mutex_type.h index a7ed8f8..d27bf5d 100644 --- a/libc/include/llvm-libc-types/__mutex_type.h +++ b/libc/include/llvm-libc-types/__mutex_type.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES___MUTEX_T_H -#define __LLVM_LIBC_TYPES___MUTEX_T_H +#ifndef LLVM_LIBC_TYPES___MUTEX_TYPE_H +#define LLVM_LIBC_TYPES___MUTEX_TYPE_H #include <llvm-libc-types/__futex_word.h> @@ -26,4 +26,4 @@ typedef struct { #endif } __mutex_type; -#endif // __LLVM_LIBC_TYPES___MUTEX_T_H +#endif // LLVM_LIBC_TYPES___MUTEX_TYPE_H diff --git a/libc/include/llvm-libc-types/__pthread_once_func_t.h b/libc/include/llvm-libc-types/__pthread_once_func_t.h index 5ace5cb..7575029 100644 --- a/libc/include/llvm-libc-types/__pthread_once_func_t.h +++ b/libc/include/llvm-libc-types/__pthread_once_func_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_ONCE_FUNC_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_ONCE_FUNC_T_H__ +#ifndef LLVM_LIBC_TYPES___PTHREAD_ONCE_FUNC_T_H +#define LLVM_LIBC_TYPES___PTHREAD_ONCE_FUNC_T_H typedef void (*__pthread_once_func_t)(void); -#endif // __LLVM_LIBC_TYPES_PTHREAD_ONCE_FUNC_T_H__ +#endif // LLVM_LIBC_TYPES___PTHREAD_ONCE_FUNC_T_H diff --git a/libc/include/llvm-libc-types/__pthread_start_t.h b/libc/include/llvm-libc-types/__pthread_start_t.h index 1e05f9b4..6b7ae40 100644 --- a/libc/include/llvm-libc-types/__pthread_start_t.h +++ b/libc/include/llvm-libc-types/__pthread_start_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_START_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_START_T_H__ +#ifndef LLVM_LIBC_TYPES___PTHREAD_START_T_H +#define LLVM_LIBC_TYPES___PTHREAD_START_T_H typedef void *(*__pthread_start_t)(void *); -#endif // __LLVM_LIBC_TYPES_PTHREAD_START_T_H__ +#endif // LLVM_LIBC_TYPES___PTHREAD_START_T_H diff --git a/libc/include/llvm-libc-types/__pthread_tss_dtor_t.h b/libc/include/llvm-libc-types/__pthread_tss_dtor_t.h index 1b54d31..c67b604 100644 --- a/libc/include/llvm-libc-types/__pthread_tss_dtor_t.h +++ b/libc/include/llvm-libc-types/__pthread_tss_dtor_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_TSS_DTOR_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_TSS_DTOR_T_H__ +#ifndef LLVM_LIBC_TYPES___PTHREAD_TSS_DTOR_T_H +#define LLVM_LIBC_TYPES___PTHREAD_TSS_DTOR_T_H typedef void (*__pthread_tss_dtor_t)(void *); -#endif // __LLVM_LIBC_TYPES_PTHREAD_TSS_DTOR_T_H__ +#endif // LLVM_LIBC_TYPES___PTHREAD_TSS_DTOR_T_H diff --git a/libc/include/llvm-libc-types/__qsortcompare_t.h b/libc/include/llvm-libc-types/__qsortcompare_t.h index 82bd4cc..48fc9ccb 100644 --- a/libc/include/llvm-libc-types/__qsortcompare_t.h +++ b/libc/include/llvm-libc-types/__qsortcompare_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ -#define __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ +#ifndef LLVM_LIBC_TYPES___QSORTCOMPARE_T_H +#define LLVM_LIBC_TYPES___QSORTCOMPARE_T_H typedef int (*__qsortcompare_t)(const void *, const void *); -#endif // __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ +#endif // LLVM_LIBC_TYPES___QSORTCOMPARE_T_H diff --git a/libc/include/llvm-libc-types/__qsortrcompare_t.h b/libc/include/llvm-libc-types/__qsortrcompare_t.h index febf79d..f6b0588 100644 --- a/libc/include/llvm-libc-types/__qsortrcompare_t.h +++ b/libc/include/llvm-libc-types/__qsortrcompare_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_QSORTRCOMPARE_T_H__ -#define __LLVM_LIBC_TYPES_QSORTRCOMPARE_T_H__ +#ifndef LLVM_LIBC_TYPES___QSORTRCOMPARE_T_H +#define LLVM_LIBC_TYPES___QSORTRCOMPARE_T_H typedef int (*__qsortrcompare_t)(const void *, const void *, void *); -#endif // __LLVM_LIBC_TYPES_QSORTRCOMPARE_T_H__ +#endif // LLVM_LIBC_TYPES___QSORTRCOMPARE_T_H diff --git a/libc/include/llvm-libc-types/__sighandler_t.h b/libc/include/llvm-libc-types/__sighandler_t.h index bd0ad98..9c1ac99 100644 --- a/libc/include/llvm-libc-types/__sighandler_t.h +++ b/libc/include/llvm-libc-types/__sighandler_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIGHANDLER_T_H__ -#define __LLVM_LIBC_TYPES_SIGHANDLER_T_H__ +#ifndef LLVM_LIBC_TYPES___SIGHANDLER_T_H +#define LLVM_LIBC_TYPES___SIGHANDLER_T_H typedef void (*__sighandler_t)(int); -#endif // __LLVM_LIBC_TYPES_SIGHANDLER_T_H__ +#endif // LLVM_LIBC_TYPES___SIGHANDLER_T_H diff --git a/libc/include/llvm-libc-types/__thread_type.h b/libc/include/llvm-libc-types/__thread_type.h index da5b898..645573f 100644 --- a/libc/include/llvm-libc-types/__thread_type.h +++ b/libc/include/llvm-libc-types/__thread_type.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_THREAD_TYPE_H__ -#define __LLVM_LIBC_TYPES_THREAD_TYPE_H__ +#ifndef LLVM_LIBC_TYPES___THREAD_TYPE_H +#define LLVM_LIBC_TYPES___THREAD_TYPE_H typedef struct { void *__attrib; } __thread_type; -#endif // __LLVM_LIBC_TYPES_THREAD_TYPE_H__ +#endif // LLVM_LIBC_TYPES___THREAD_TYPE_H diff --git a/libc/include/llvm-libc-types/blkcnt_t.h b/libc/include/llvm-libc-types/blkcnt_t.h index acd8d34..9dea8f0 100644 --- a/libc/include/llvm-libc-types/blkcnt_t.h +++ b/libc/include/llvm-libc-types/blkcnt_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_BLKCNT_T_H__ -#define __LLVM_LIBC_TYPES_BLKCNT_T_H__ +#ifndef LLVM_LIBC_TYPES_BLKCNT_T_H +#define LLVM_LIBC_TYPES_BLKCNT_T_H typedef __INTPTR_TYPE__ blkcnt_t; -#endif // __LLVM_LIBC_TYPES_BLKCNT_T_H__ +#endif // LLVM_LIBC_TYPES_BLKCNT_T_H diff --git a/libc/include/llvm-libc-types/blksize_t.h b/libc/include/llvm-libc-types/blksize_t.h index 99ddac5..7caa970 100644 --- a/libc/include/llvm-libc-types/blksize_t.h +++ b/libc/include/llvm-libc-types/blksize_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_BLKSIZE_T_H__ -#define __LLVM_LIBC_TYPES_BLKSIZE_T_H__ +#ifndef LLVM_LIBC_TYPES_BLKSIZE_T_H +#define LLVM_LIBC_TYPES_BLKSIZE_T_H typedef __INTPTR_TYPE__ blksize_t; -#endif // __LLVM_LIBC_TYPES_BLKSIZE_T_H__ +#endif // LLVM_LIBC_TYPES_BLKSIZE_T_H diff --git a/libc/include/llvm-libc-types/cc_t.h b/libc/include/llvm-libc-types/cc_t.h index e08523c..40d99ad 100644 --- a/libc/include/llvm-libc-types/cc_t.h +++ b/libc/include/llvm-libc-types/cc_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CC_T_H__ -#define __LLVM_LIBC_TYPES_CC_T_H__ +#ifndef LLVM_LIBC_TYPES_CC_T_H +#define LLVM_LIBC_TYPES_CC_T_H typedef unsigned char cc_t; -#endif // __LLVM_LIBC_TYPES_CC_T_H__ +#endif // LLVM_LIBC_TYPES_CC_T_H diff --git a/libc/include/llvm-libc-types/clock_t.h b/libc/include/llvm-libc-types/clock_t.h index b7969d6..8759ee9 100644 --- a/libc/include/llvm-libc-types/clock_t.h +++ b/libc/include/llvm-libc-types/clock_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CLOCK_T_H__ -#define __LLVM_LIBC_TYPES_CLOCK_T_H__ +#ifndef LLVM_LIBC_TYPES_CLOCK_T_H +#define LLVM_LIBC_TYPES_CLOCK_T_H typedef long clock_t; -#endif // __LLVM_LIBC_TYPES_CLOCK_T_H__ +#endif // LLVM_LIBC_TYPES_CLOCK_T_H diff --git a/libc/include/llvm-libc-types/clockid_t.h b/libc/include/llvm-libc-types/clockid_t.h index ddaceb6..4b05959 100644 --- a/libc/include/llvm-libc-types/clockid_t.h +++ b/libc/include/llvm-libc-types/clockid_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CLOCKID_T_H__ -#define __LLVM_LIBC_TYPES_CLOCKID_T_H__ +#ifndef LLVM_LIBC_TYPES_CLOCKID_T_H +#define LLVM_LIBC_TYPES_CLOCKID_T_H typedef int clockid_t; -#endif // __LLVM_LIBC_TYPES_CLOCKID_T_H__ +#endif // LLVM_LIBC_TYPES_CLOCKID_T_H diff --git a/libc/include/llvm-libc-types/cnd_t.h b/libc/include/llvm-libc-types/cnd_t.h index 09a29ac..1159ac4 100644 --- a/libc/include/llvm-libc-types/cnd_t.h +++ b/libc/include/llvm-libc-types/cnd_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CND_T_H__ -#define __LLVM_LIBC_TYPES_CND_T_H__ +#ifndef LLVM_LIBC_TYPES_CND_T_H +#define LLVM_LIBC_TYPES_CND_T_H #include "mtx_t.h" @@ -17,4 +17,4 @@ typedef struct { mtx_t __qmtx; } cnd_t; -#endif // __LLVM_LIBC_TYPES_CND_T_H__ +#endif // LLVM_LIBC_TYPES_CND_T_H diff --git a/libc/include/llvm-libc-types/cookie_io_functions_t.h b/libc/include/llvm-libc-types/cookie_io_functions_t.h index df90416..f9fa1a2 100644 --- a/libc/include/llvm-libc-types/cookie_io_functions_t.h +++ b/libc/include/llvm-libc-types/cookie_io_functions_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H -#define __LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H +#ifndef LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H +#define LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H #include <llvm-libc-types/off64_t.h> #include <llvm-libc-types/size_t.h> @@ -25,4 +25,4 @@ typedef struct { cookie_close_function_t *close; } cookie_io_functions_t; -#endif // __LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H +#endif // LLVM_LIBC_TYPES_COOKIE_IO_FUNCTIONS_T_H diff --git a/libc/include/llvm-libc-types/cpu_set_t.h b/libc/include/llvm-libc-types/cpu_set_t.h index 79f694a..e7f5259 100644 --- a/libc/include/llvm-libc-types/cpu_set_t.h +++ b/libc/include/llvm-libc-types/cpu_set_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_CPU_SET_T_H -#define __LLVM_LIBC_TYPES_CPU_SET_T_H +#ifndef LLVM_LIBC_TYPES_CPU_SET_T_H +#define LLVM_LIBC_TYPES_CPU_SET_T_H typedef struct { // If a processor with more than 1024 CPUs is to be supported in future, @@ -15,4 +15,4 @@ typedef struct { unsigned long __mask[128 / sizeof(unsigned long)]; } cpu_set_t; -#endif // __LLVM_LIBC_TYPES_CPU_SET_T_H +#endif // LLVM_LIBC_TYPES_CPU_SET_T_H diff --git a/libc/include/llvm-libc-types/dev_t.h b/libc/include/llvm-libc-types/dev_t.h index 9fbc41a..3181e34 100644 --- a/libc/include/llvm-libc-types/dev_t.h +++ b/libc/include/llvm-libc-types/dev_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_DEV_T_H__ -#define __LLVM_LIBC_TYPES_DEV_T_H__ +#ifndef LLVM_LIBC_TYPES_DEV_T_H +#define LLVM_LIBC_TYPES_DEV_T_H typedef __UINT64_TYPE__ dev_t; -#endif // __LLVM_LIBC_TYPES_DEV_T_H__ +#endif // LLVM_LIBC_TYPES_DEV_T_H diff --git a/libc/include/llvm-libc-types/div_t.h b/libc/include/llvm-libc-types/div_t.h index e495a1c..450603d 100644 --- a/libc/include/llvm-libc-types/div_t.h +++ b/libc/include/llvm-libc-types/div_t.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_DIV_T_H__ -#define __LLVM_LIBC_TYPES_DIV_T_H__ +#ifndef LLVM_LIBC_TYPES_DIV_T_H +#define LLVM_LIBC_TYPES_DIV_T_H typedef struct { int quot; int rem; } div_t; -#endif // __LLVM_LIBC_TYPES_DIV_T_H__ +#endif // LLVM_LIBC_TYPES_DIV_T_H diff --git a/libc/include/llvm-libc-types/double_t.h b/libc/include/llvm-libc-types/double_t.h index 2aa471d..c4ad08a 100644 --- a/libc/include/llvm-libc-types/double_t.h +++ b/libc/include/llvm-libc-types/double_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_DOUBLE_T_H__ -#define __LLVM_LIBC_TYPES_DOUBLE_T_H__ +#ifndef LLVM_LIBC_TYPES_DOUBLE_T_H +#define LLVM_LIBC_TYPES_DOUBLE_T_H #if !defined(__FLT_EVAL_METHOD__) || __FLT_EVAL_METHOD__ == 0 #define __LLVM_LIBC_DOUBLE_T double @@ -21,4 +21,4 @@ typedef __LLVM_LIBC_DOUBLE_T double_t; -#endif // __LLVM_LIBC_TYPES_DOUBLE_T_H__ +#endif // LLVM_LIBC_TYPES_DOUBLE_T_H diff --git a/libc/include/llvm-libc-types/fd_set.h b/libc/include/llvm-libc-types/fd_set.h index 54e3fc6..58fc438 100644 --- a/libc/include/llvm-libc-types/fd_set.h +++ b/libc/include/llvm-libc-types/fd_set.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FD_SET_H__ -#define __LLVM_LIBC_TYPES_FD_SET_H__ +#ifndef LLVM_LIBC_TYPES_FD_SET_H +#define LLVM_LIBC_TYPES_FD_SET_H #include <llvm-libc-macros/sys-select-macros.h> // FD_SETSIZE @@ -15,4 +15,4 @@ typedef struct { __FD_SET_WORD_TYPE __set[__FD_SET_ARRAYSIZE]; } fd_set; -#endif // __LLVM_LIBC_TYPES_FD_SET_H__ +#endif // LLVM_LIBC_TYPES_FD_SET_H diff --git a/libc/include/llvm-libc-types/fenv_t.h b/libc/include/llvm-libc-types/fenv_t.h index 86fcf2e..c83f238 100644 --- a/libc/include/llvm-libc-types/fenv_t.h +++ b/libc/include/llvm-libc-types/fenv_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FENV_T_H__ -#define __LLVM_LIBC_TYPES_FENV_T_H__ +#ifndef LLVM_LIBC_TYPES_FENV_T_H +#define LLVM_LIBC_TYPES_FENV_T_H #ifdef __aarch64__ typedef struct { @@ -33,4 +33,4 @@ typedef struct { #error "fenv_t not defined for your platform" #endif -#endif // __LLVM_LIBC_TYPES_FENV_T_H__ +#endif // LLVM_LIBC_TYPES_FENV_T_H diff --git a/libc/include/llvm-libc-types/fexcept_t.h b/libc/include/llvm-libc-types/fexcept_t.h index 6e7969c..60687bd 100644 --- a/libc/include/llvm-libc-types/fexcept_t.h +++ b/libc/include/llvm-libc-types/fexcept_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FEXCEPT_T_H__ -#define __LLVM_LIBC_TYPES_FEXCEPT_T_H__ +#ifndef LLVM_LIBC_TYPES_FEXCEPT_T_H +#define LLVM_LIBC_TYPES_FEXCEPT_T_H typedef int fexcept_t; -#endif // __LLVM_LIBC_TYPES_FEXCEPT_T_H__ +#endif // LLVM_LIBC_TYPES_FEXCEPT_T_H diff --git a/libc/include/llvm-libc-types/float128.h b/libc/include/llvm-libc-types/float128.h index 1907a5e..e2dc18c 100644 --- a/libc/include/llvm-libc-types/float128.h +++ b/libc/include/llvm-libc-types/float128.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FLOAT128_H__ -#define __LLVM_LIBC_TYPES_FLOAT128_H__ +#ifndef LLVM_LIBC_TYPES_FLOAT128_H +#define LLVM_LIBC_TYPES_FLOAT128_H #include "llvm-libc-macros/float-macros.h" // LDBL_MANT_DIG @@ -34,4 +34,4 @@ typedef __float128 float128; typedef long double float128; #endif -#endif // __LLVM_LIBC_TYPES_FLOAT128_H__ +#endif // LLVM_LIBC_TYPES_FLOAT128_H diff --git a/libc/include/llvm-libc-types/float_t.h b/libc/include/llvm-libc-types/float_t.h index 8df3bf0..5027249 100644 --- a/libc/include/llvm-libc-types/float_t.h +++ b/libc/include/llvm-libc-types/float_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_FLOAT_T_H__ -#define __LLVM_LIBC_TYPES_FLOAT_T_H__ +#ifndef LLVM_LIBC_TYPES_FLOAT_T_H +#define LLVM_LIBC_TYPES_FLOAT_T_H #if !defined(__FLT_EVAL_METHOD__) || __FLT_EVAL_METHOD__ == 0 #define __LLVM_LIBC_FLOAT_T float @@ -21,4 +21,4 @@ typedef __LLVM_LIBC_FLOAT_T float_t; -#endif // __LLVM_LIBC_TYPES_FLOAT_T_H__ +#endif // LLVM_LIBC_TYPES_FLOAT_T_H diff --git a/libc/include/llvm-libc-types/gid_t.h b/libc/include/llvm-libc-types/gid_t.h index 664aee0..cfe36ce 100644 --- a/libc/include/llvm-libc-types/gid_t.h +++ b/libc/include/llvm-libc-types/gid_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_GID_T_H__ -#define __LLVM_LIBC_TYPES_GID_T_H__ +#ifndef LLVM_LIBC_TYPES_GID_T_H +#define LLVM_LIBC_TYPES_GID_T_H typedef __UINT32_TYPE__ gid_t; -#endif // __LLVM_LIBC_TYPES_GID_T_H__ +#endif // LLVM_LIBC_TYPES_GID_T_H diff --git a/libc/include/llvm-libc-types/ino_t.h b/libc/include/llvm-libc-types/ino_t.h index 0f5abd9..148bd67 100644 --- a/libc/include/llvm-libc-types/ino_t.h +++ b/libc/include/llvm-libc-types/ino_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_INO_T_H__ -#define __LLVM_LIBC_TYPES_INO_T_H__ +#ifndef LLVM_LIBC_TYPES_INO_T_H +#define LLVM_LIBC_TYPES_INO_T_H typedef __UINTPTR_TYPE__ ino_t; -#endif // __LLVM_LIBC_TYPES_INO_T_H__ +#endif // LLVM_LIBC_TYPES_INO_T_H diff --git a/libc/include/llvm-libc-types/jmp_buf.h b/libc/include/llvm-libc-types/jmp_buf.h index 6af4e8e..29a1df9 100644 --- a/libc/include/llvm-libc-types/jmp_buf.h +++ b/libc/include/llvm-libc-types/jmp_buf.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_JMP_BUF_H__ -#define __LLVM_LIBC_TYPES_JMP_BUF_H__ +#ifndef LLVM_LIBC_TYPES_JMP_BUF_H +#define LLVM_LIBC_TYPES_JMP_BUF_H typedef struct { #ifdef __x86_64__ @@ -39,4 +39,4 @@ typedef struct { typedef __jmp_buf jmp_buf[1]; -#endif // __LLVM_LIBC_TYPES_JMP_BUF_H__ +#endif // LLVM_LIBC_TYPES_JMP_BUF_H diff --git a/libc/include/llvm-libc-types/ldiv_t.h b/libc/include/llvm-libc-types/ldiv_t.h index 9bd8d25..5c64ec1 100644 --- a/libc/include/llvm-libc-types/ldiv_t.h +++ b/libc/include/llvm-libc-types/ldiv_t.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_LDIV_T_H__ -#define __LLVM_LIBC_TYPES_LDIV_T_H__ +#ifndef LLVM_LIBC_TYPES_LDIV_T_H +#define LLVM_LIBC_TYPES_LDIV_T_H typedef struct { long quot; long rem; } ldiv_t; -#endif // __LLVM_LIBC_TYPES_LDIV_T_H__ +#endif // LLVM_LIBC_TYPES_LDIV_T_H diff --git a/libc/include/llvm-libc-types/lldiv_t.h b/libc/include/llvm-libc-types/lldiv_t.h index 109304d1..5b8dcbe 100644 --- a/libc/include/llvm-libc-types/lldiv_t.h +++ b/libc/include/llvm-libc-types/lldiv_t.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_LLDIV_T_H__ -#define __LLVM_LIBC_TYPES_LLDIV_T_H__ +#ifndef LLVM_LIBC_TYPES_LLDIV_T_H +#define LLVM_LIBC_TYPES_LLDIV_T_H typedef struct { long long quot; long long rem; } lldiv_t; -#endif // __LLVM_LIBC_TYPES_LLDIV_T_H__ +#endif // LLVM_LIBC_TYPES_LLDIV_T_H diff --git a/libc/include/llvm-libc-types/mode_t.h b/libc/include/llvm-libc-types/mode_t.h index 20037bb..fe09060 100644 --- a/libc/include/llvm-libc-types/mode_t.h +++ b/libc/include/llvm-libc-types/mode_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_MODE_T_H -#define __LLVM_LIBC_TYPES_MODE_T_H +#ifndef LLVM_LIBC_TYPES_MODE_T_H +#define LLVM_LIBC_TYPES_MODE_T_H typedef unsigned mode_t; -#endif // __LLVM_LIBC_TYPES_MODE_T_H +#endif // LLVM_LIBC_TYPES_MODE_T_H diff --git a/libc/include/llvm-libc-types/mtx_t.h b/libc/include/llvm-libc-types/mtx_t.h index ac6453e..0f3882c 100644 --- a/libc/include/llvm-libc-types/mtx_t.h +++ b/libc/include/llvm-libc-types/mtx_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_MTX_T_H__ -#define __LLVM_LIBC_TYPES_MTX_T_H__ +#ifndef LLVM_LIBC_TYPES_MTX_T_H +#define LLVM_LIBC_TYPES_MTX_T_H #include <llvm-libc-types/__mutex_type.h> typedef __mutex_type mtx_t; -#endif // __LLVM_LIBC_TYPES_MTX_T_H__ +#endif // LLVM_LIBC_TYPES_MTX_T_H diff --git a/libc/include/llvm-libc-types/nlink_t.h b/libc/include/llvm-libc-types/nlink_t.h index 1826144..7e0016a 100644 --- a/libc/include/llvm-libc-types/nlink_t.h +++ b/libc/include/llvm-libc-types/nlink_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_NLINK_T_H__ -#define __LLVM_LIBC_TYPES_NLINK_T_H__ +#ifndef LLVM_LIBC_TYPES_NLINK_T_H +#define LLVM_LIBC_TYPES_NLINK_T_H typedef __UINTPTR_TYPE__ nlink_t; -#endif // __LLVM_LIBC_TYPES_NLINK_T_H__ +#endif // LLVM_LIBC_TYPES_NLINK_T_H diff --git a/libc/include/llvm-libc-types/off64_t.h b/libc/include/llvm-libc-types/off64_t.h index 0f95caa..669698a 100644 --- a/libc/include/llvm-libc-types/off64_t.h +++ b/libc/include/llvm-libc-types/off64_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_OFF64_T_H__ -#define __LLVM_LIBC_TYPES_OFF64_T_H__ +#ifndef LLVM_LIBC_TYPES_OFF64_T_H +#define LLVM_LIBC_TYPES_OFF64_T_H typedef __INT64_TYPE__ off64_t; -#endif // __LLVM_LIBC_TYPES_OFF64_T_H__ +#endif // LLVM_LIBC_TYPES_OFF64_T_H diff --git a/libc/include/llvm-libc-types/off_t.h b/libc/include/llvm-libc-types/off_t.h index 111b29aa..63224b6 100644 --- a/libc/include/llvm-libc-types/off_t.h +++ b/libc/include/llvm-libc-types/off_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_OFF_T_H__ -#define __LLVM_LIBC_TYPES_OFF_T_H__ +#ifndef LLVM_LIBC_TYPES_OFF_T_H +#define LLVM_LIBC_TYPES_OFF_T_H typedef __INT64_TYPE__ off_t; -#endif // __LLVM_LIBC_TYPES_OFF_T_H__ +#endif // LLVM_LIBC_TYPES_OFF_T_H diff --git a/libc/include/llvm-libc-types/once_flag.h b/libc/include/llvm-libc-types/once_flag.h index 77bab28..cb80112 100644 --- a/libc/include/llvm-libc-types/once_flag.h +++ b/libc/include/llvm-libc-types/once_flag.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_ONCE_FLAG_H__ -#define __LLVM_LIBC_TYPES_ONCE_FLAG_H__ +#ifndef LLVM_LIBC_TYPES_ONCE_FLAG_H +#define LLVM_LIBC_TYPES_ONCE_FLAG_H #include <llvm-libc-types/__futex_word.h> @@ -17,4 +17,4 @@ typedef __futex_word once_flag; #error "Once flag type not defined for the target platform." #endif -#endif // __LLVM_LIBC_TYPES_ONCE_FLAG_H__ +#endif // LLVM_LIBC_TYPES_ONCE_FLAG_H diff --git a/libc/include/llvm-libc-types/pid_t.h b/libc/include/llvm-libc-types/pid_t.h index d78fde7..0397bd2 100644 --- a/libc/include/llvm-libc-types/pid_t.h +++ b/libc/include/llvm-libc-types/pid_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PID_t_H__ -#define __LLVM_LIBC_TYPES_PID_t_H__ +#ifndef LLVM_LIBC_TYPES_PID_T_H +#define LLVM_LIBC_TYPES_PID_T_H typedef __INT32_TYPE__ pid_t; -#endif // __LLVM_LIBC_TYPES_PID_t_H__ +#endif // LLVM_LIBC_TYPES_PID_T_H diff --git a/libc/include/llvm-libc-types/posix_spawn_file_actions_t.h b/libc/include/llvm-libc-types/posix_spawn_file_actions_t.h index 55adbd1..3062da3 100644 --- a/libc/include/llvm-libc-types/posix_spawn_file_actions_t.h +++ b/libc/include/llvm-libc-types/posix_spawn_file_actions_t.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_T_H -#define __LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_T_H +#ifndef LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_H +#define LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_H typedef struct { void *__front; void *__back; } posix_spawn_file_actions_t; -#endif // __LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_T_H +#endif // LLVM_LIBC_TYPES_POSIX_SPAWN_FILE_ACTIONS_T_H diff --git a/libc/include/llvm-libc-types/posix_spawnattr_t.h b/libc/include/llvm-libc-types/posix_spawnattr_t.h index f1bcb3e..47cadc7c 100644 --- a/libc/include/llvm-libc-types/posix_spawnattr_t.h +++ b/libc/include/llvm-libc-types/posix_spawnattr_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H -#define __LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H +#ifndef LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H +#define LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H typedef struct { // This data structure will be populated as required. } posix_spawnattr_t; -#endif // __LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H +#endif // LLVM_LIBC_TYPES_POSIX_SPAWNATTR_T_H diff --git a/libc/include/llvm-libc-types/pthread_attr_t.h b/libc/include/llvm-libc-types/pthread_attr_t.h index 7bf8a54..66c04de 100644 --- a/libc/include/llvm-libc-types/pthread_attr_t.h +++ b/libc/include/llvm-libc-types/pthread_attr_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H -#define __LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H +#ifndef LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H +#define LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H #include <llvm-libc-types/size_t.h> @@ -18,4 +18,4 @@ typedef struct { size_t __guardsize; } pthread_attr_t; -#endif // __LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H +#endif // LLVM_LIBC_TYPES_PTHREAD_ATTR_T_H diff --git a/libc/include/llvm-libc-types/pthread_key_t.h b/libc/include/llvm-libc-types/pthread_key_t.h index 351e376..e73c7e2 100644 --- a/libc/include/llvm-libc-types/pthread_key_t.h +++ b/libc/include/llvm-libc-types/pthread_key_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_KEY_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_KEY_T_H__ +#ifndef LLVM_LIBC_TYPES_PTHREAD_KEY_T_H +#define LLVM_LIBC_TYPES_PTHREAD_KEY_T_H typedef unsigned int pthread_key_t; -#endif // __LLVM_LIBC_TYPES_PTHREAD_KEY_T_H__ +#endif // LLVM_LIBC_TYPES_PTHREAD_KEY_T_H diff --git a/libc/include/llvm-libc-types/pthread_mutex_t.h b/libc/include/llvm-libc-types/pthread_mutex_t.h index 65e4353..b1eb21f 100644 --- a/libc/include/llvm-libc-types/pthread_mutex_t.h +++ b/libc/include/llvm-libc-types/pthread_mutex_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H -#define __LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H +#ifndef LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H +#define LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H #include <llvm-libc-types/__mutex_type.h> typedef __mutex_type pthread_mutex_t; -#endif // __LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H +#endif // LLVM_LIBC_TYPES_PTHREAD_MUTEX_T_H diff --git a/libc/include/llvm-libc-types/pthread_mutexattr_t.h b/libc/include/llvm-libc-types/pthread_mutexattr_t.h index be1ff56..8f159a6 100644 --- a/libc/include/llvm-libc-types/pthread_mutexattr_t.h +++ b/libc/include/llvm-libc-types/pthread_mutexattr_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H -#define __LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H +#ifndef LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H +#define LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H // pthread_mutexattr_t is a collection bit mapped flags. The mapping is internal // detail of the libc implementation. typedef unsigned int pthread_mutexattr_t; -#endif // __LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H +#endif // LLVM_LIBC_TYPES_PTHREAD_MUTEXATTR_T_H diff --git a/libc/include/llvm-libc-types/pthread_once_t.h b/libc/include/llvm-libc-types/pthread_once_t.h index 6d65f8f..3fe78b7 100644 --- a/libc/include/llvm-libc-types/pthread_once_t.h +++ b/libc/include/llvm-libc-types/pthread_once_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H__ +#ifndef LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H +#define LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H #include <llvm-libc-types/__futex_word.h> @@ -17,4 +17,4 @@ typedef __futex_word pthread_once_t; #error "Once flag type not defined for the target platform." #endif -#endif // __LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H__ +#endif // LLVM_LIBC_TYPES_PTHREAD_ONCE_T_H diff --git a/libc/include/llvm-libc-types/pthread_t.h b/libc/include/llvm-libc-types/pthread_t.h index 8130491..72c14e1 100644 --- a/libc/include/llvm-libc-types/pthread_t.h +++ b/libc/include/llvm-libc-types/pthread_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_PTHREAD_T_H__ -#define __LLVM_LIBC_TYPES_PTHREAD_T_H__ +#ifndef LLVM_LIBC_TYPES_PTHREAD_T_H +#define LLVM_LIBC_TYPES_PTHREAD_T_H #include <llvm-libc-types/__thread_type.h> typedef __thread_type pthread_t; -#endif // __LLVM_LIBC_TYPES_PTHREAD_T_H__ +#endif // LLVM_LIBC_TYPES_PTHREAD_T_H diff --git a/libc/include/llvm-libc-types/rlim_t.h b/libc/include/llvm-libc-types/rlim_t.h index 4e5acfb..016ec7b 100644 --- a/libc/include/llvm-libc-types/rlim_t.h +++ b/libc/include/llvm-libc-types/rlim_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_RLIM_T_H__ -#define __LLVM_LIBC_TYPES_RLIM_T_H__ +#ifndef LLVM_LIBC_TYPES_RLIM_T_H +#define LLVM_LIBC_TYPES_RLIM_T_H typedef __UINT64_TYPE__ rlim_t; -#endif // __LLVM_LIBC_TYPES_RLIM_T_H__ +#endif // LLVM_LIBC_TYPES_RLIM_T_H diff --git a/libc/include/llvm-libc-types/rpc_opcodes_t.h b/libc/include/llvm-libc-types/rpc_opcodes_t.h index 7b85428..919ea03 100644 --- a/libc/include/llvm-libc-types/rpc_opcodes_t.h +++ b/libc/include/llvm-libc-types/rpc_opcodes_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_RPC_OPCODE_H__ -#define __LLVM_LIBC_TYPES_RPC_OPCODE_H__ +#ifndef LLVM_LIBC_TYPES_RPC_OPCODES_T_H +#define LLVM_LIBC_TYPES_RPC_OPCODES_T_H typedef enum { RPC_NOOP = 0, @@ -34,4 +34,4 @@ typedef enum { RPC_LAST = 0xFFFF, } rpc_opcode_t; -#endif // __LLVM_LIBC_TYPES_RPC_OPCODE_H__ +#endif // LLVM_LIBC_TYPES_RPC_OPCODES_T_H diff --git a/libc/include/llvm-libc-types/sa_family_t.h b/libc/include/llvm-libc-types/sa_family_t.h index 52b6995..0a010b6 100644 --- a/libc/include/llvm-libc-types/sa_family_t.h +++ b/libc/include/llvm-libc-types/sa_family_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SA_FAMILY_T_H__ -#define __LLVM_LIBC_TYPES_SA_FAMILY_T_H__ +#ifndef LLVM_LIBC_TYPES_SA_FAMILY_T_H +#define LLVM_LIBC_TYPES_SA_FAMILY_T_H // The posix standard only says of sa_family_t that it must be unsigned. The // linux man page for "address_families" lists approximately 32 different @@ -16,4 +16,4 @@ typedef unsigned short sa_family_t; -#endif // __LLVM_LIBC_TYPES_SA_FAMILY_T_H__ +#endif // LLVM_LIBC_TYPES_SA_FAMILY_T_H diff --git a/libc/include/llvm-libc-types/sig_atomic_t.h b/libc/include/llvm-libc-types/sig_atomic_t.h index 324629c..2ef3758 100644 --- a/libc/include/llvm-libc-types/sig_atomic_t.h +++ b/libc/include/llvm-libc-types/sig_atomic_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIG_ATOMIC_T_H__ -#define __LLVM_LIBC_TYPES_SIG_ATOMIC_T_H__ +#ifndef LLVM_LIBC_TYPES_SIG_ATOMIC_T_H +#define LLVM_LIBC_TYPES_SIG_ATOMIC_T_H typedef int sig_atomic_t; -#endif // __LLVM_LIBC_TYPES_SIG_ATOMIC_T_H__ +#endif // LLVM_LIBC_TYPES_SIG_ATOMIC_T_H diff --git a/libc/include/llvm-libc-types/siginfo_t.h b/libc/include/llvm-libc-types/siginfo_t.h index ef8af78..935ef4bb 100644 --- a/libc/include/llvm-libc-types/siginfo_t.h +++ b/libc/include/llvm-libc-types/siginfo_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIGINFO_T_H__ -#define __LLVM_LIBC_TYPES_SIGINFO_T_H__ +#ifndef LLVM_LIBC_TYPES_SIGINFO_T_H +#define LLVM_LIBC_TYPES_SIGINFO_T_H #include <llvm-libc-types/clock_t.h> #include <llvm-libc-types/pid_t.h> @@ -106,4 +106,4 @@ typedef struct { #define si_syscall _sifields._sigsys._syscall #define si_arch _sifields._sigsys._arch -#endif // __LLVM_LIBC_TYPES_SIGINFO_T_H__ +#endif // LLVM_LIBC_TYPES_SIGINFO_T_H diff --git a/libc/include/llvm-libc-types/sigset_t.h b/libc/include/llvm-libc-types/sigset_t.h index bcfbc29..f159c6c 100644 --- a/libc/include/llvm-libc-types/sigset_t.h +++ b/libc/include/llvm-libc-types/sigset_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIGSET_T_H__ -#define __LLVM_LIBC_TYPES_SIGSET_T_H__ +#ifndef LLVM_LIBC_TYPES_SIGSET_T_H +#define LLVM_LIBC_TYPES_SIGSET_T_H #include <llvm-libc-macros/signal-macros.h> @@ -17,4 +17,4 @@ typedef struct { unsigned long __signals[__NSIGSET_WORDS]; } sigset_t; -#endif // __LLVM_LIBC_TYPES_SIGSET_T_H__ +#endif // LLVM_LIBC_TYPES_SIGSET_T_H diff --git a/libc/include/llvm-libc-types/size_t.h b/libc/include/llvm-libc-types/size_t.h index 8eaf194..3b31b08 100644 --- a/libc/include/llvm-libc-types/size_t.h +++ b/libc/include/llvm-libc-types/size_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIZE_T_H__ -#define __LLVM_LIBC_TYPES_SIZE_T_H__ +#ifndef LLVM_LIBC_TYPES_SIZE_T_H +#define LLVM_LIBC_TYPES_SIZE_T_H // Since __need_size_t is defined, we get the definition of size_t from the // standalone C header stddef.h. Also, because __need_size_t is defined, @@ -16,4 +16,4 @@ #include <stddef.h> #undef __need_size_t -#endif // __LLVM_LIBC_TYPES_SIZE_T_H__ +#endif // LLVM_LIBC_TYPES_SIZE_T_H diff --git a/libc/include/llvm-libc-types/socklen_t.h b/libc/include/llvm-libc-types/socklen_t.h index 3134a53..5357747 100644 --- a/libc/include/llvm-libc-types/socklen_t.h +++ b/libc/include/llvm-libc-types/socklen_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SOCKLEN_T_H__ -#define __LLVM_LIBC_TYPES_SOCKLEN_T_H__ +#ifndef LLVM_LIBC_TYPES_SOCKLEN_T_H +#define LLVM_LIBC_TYPES_SOCKLEN_T_H // The posix standard only says of socklen_t that it must be an integer type of // width of at least 32 bits. The long type is defined as being at least 32 @@ -15,4 +15,4 @@ typedef unsigned long socklen_t; -#endif // __LLVM_LIBC_TYPES_SOCKLEN_T_H__ +#endif // LLVM_LIBC_TYPES_SOCKLEN_T_H diff --git a/libc/include/llvm-libc-types/speed_t.h b/libc/include/llvm-libc-types/speed_t.h index b4ec13d..9875d3b8 100644 --- a/libc/include/llvm-libc-types/speed_t.h +++ b/libc/include/llvm-libc-types/speed_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SPEED_T_H__ -#define __LLVM_LIBC_TYPES_SPEED_T_H__ +#ifndef LLVM_LIBC_TYPES_SPEED_T_H +#define LLVM_LIBC_TYPES_SPEED_T_H typedef unsigned int speed_t; -#endif // __LLVM_LIBC_TYPES_SPEED_T_H__ +#endif // LLVM_LIBC_TYPES_SPEED_T_H diff --git a/libc/include/llvm-libc-types/ssize_t.h b/libc/include/llvm-libc-types/ssize_t.h index b887453..41e4b6d 100644 --- a/libc/include/llvm-libc-types/ssize_t.h +++ b/libc/include/llvm-libc-types/ssize_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SSIZE_T_H__ -#define __LLVM_LIBC_TYPES_SSIZE_T_H__ +#ifndef LLVM_LIBC_TYPES_SSIZE_T_H +#define LLVM_LIBC_TYPES_SSIZE_T_H typedef __INT64_TYPE__ ssize_t; -#endif // __LLVM_LIBC_TYPES_SSIZE_T_H__ +#endif // LLVM_LIBC_TYPES_SSIZE_T_H diff --git a/libc/include/llvm-libc-types/stack_t.h b/libc/include/llvm-libc-types/stack_t.h index f564d91..5fa4d3a 100644 --- a/libc/include/llvm-libc-types/stack_t.h +++ b/libc/include/llvm-libc-types/stack_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STACK_T_H__ -#define __LLVM_LIBC_TYPES_STACK_T_H__ +#ifndef LLVM_LIBC_TYPES_STACK_T_H +#define LLVM_LIBC_TYPES_STACK_T_H #include <llvm-libc-types/size_t.h> @@ -19,4 +19,4 @@ typedef struct { size_t ss_size; } stack_t; -#endif // __LLVM_LIBC_TYPES_STACK_T_H__ +#endif // LLVM_LIBC_TYPES_STACK_T_H diff --git a/libc/include/llvm-libc-types/struct_dirent.h b/libc/include/llvm-libc-types/struct_dirent.h index de54a22..3c5b361 100644 --- a/libc/include/llvm-libc-types/struct_dirent.h +++ b/libc/include/llvm-libc-types/struct_dirent.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_DIRENT_H__ -#define __LLVM_LIBC_TYPES_STRUCT_DIRENT_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_DIRENT_H +#define LLVM_LIBC_TYPES_STRUCT_DIRENT_H #include <llvm-libc-types/ino_t.h> #include <llvm-libc-types/off_t.h> @@ -26,4 +26,4 @@ struct dirent { char d_name[1]; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_DIRENT_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_DIRENT_H diff --git a/libc/include/llvm-libc-types/struct_epoll_data.h b/libc/include/llvm-libc-types/struct_epoll_data.h index c363171..7200276 100644 --- a/libc/include/llvm-libc-types/struct_epoll_data.h +++ b/libc/include/llvm-libc-types/struct_epoll_data.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_EPOLL_DATA_H__ -#define __LLVM_LIBC_TYPES_EPOLL_DATA_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_EPOLL_DATA_H +#define LLVM_LIBC_TYPES_STRUCT_EPOLL_DATA_H union epoll_data { void *ptr; @@ -18,4 +18,4 @@ union epoll_data { typedef union epoll_data epoll_data_t; -#endif // __LLVM_LIBC_TYPES_EPOLL_DATA_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_EPOLL_DATA_H diff --git a/libc/include/llvm-libc-types/struct_epoll_event.h b/libc/include/llvm-libc-types/struct_epoll_event.h index edfa026..6fc5b41 100644 --- a/libc/include/llvm-libc-types/struct_epoll_event.h +++ b/libc/include/llvm-libc-types/struct_epoll_event.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_EPOLL_EVENT_H__ -#define __LLVM_LIBC_TYPES_EPOLL_EVENT_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_EPOLL_EVENT_H +#define LLVM_LIBC_TYPES_STRUCT_EPOLL_EVENT_H #include <llvm-libc-types/struct_epoll_data.h> @@ -16,4 +16,4 @@ typedef struct epoll_event { epoll_data_t data; } epoll_event; -#endif // __LLVM_LIBC_TYPES_EPOLL_EVENT_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_EPOLL_EVENT_H diff --git a/libc/include/llvm-libc-types/struct_hsearch_data.h b/libc/include/llvm-libc-types/struct_hsearch_data.h index 7e2a7232..cdb1d0c 100644 --- a/libc/include/llvm-libc-types/struct_hsearch_data.h +++ b/libc/include/llvm-libc-types/struct_hsearch_data.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H__ -#define __LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H +#define LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H struct hsearch_data { void *__opaque; unsigned int __unused[2]; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_HSEARCH_DATA_H diff --git a/libc/include/llvm-libc-types/struct_rlimit.h b/libc/include/llvm-libc-types/struct_rlimit.h index 4fe0aa6..e093d9f 100644 --- a/libc/include/llvm-libc-types/struct_rlimit.h +++ b/libc/include/llvm-libc-types/struct_rlimit.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_RLIMIT_H__ -#define __LLVM_LIBC_TYPES_STRUCT_RLIMIT_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_RLIMIT_H +#define LLVM_LIBC_TYPES_STRUCT_RLIMIT_H #include <llvm-libc-types/rlim_t.h> @@ -16,4 +16,4 @@ struct rlimit { rlim_t rlim_max; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_RLIMIT_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_RLIMIT_H diff --git a/libc/include/llvm-libc-types/struct_rusage.h b/libc/include/llvm-libc-types/struct_rusage.h index 43f3457..21ea8b1 100644 --- a/libc/include/llvm-libc-types/struct_rusage.h +++ b/libc/include/llvm-libc-types/struct_rusage.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_RUSAGE_H__ -#define __LLVM_LIBC_TYPES_STRUCT_RUSAGE_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_RUSAGE_H +#define LLVM_LIBC_TYPES_STRUCT_RUSAGE_H #include <llvm-libc-types/struct_timeval.h> @@ -34,4 +34,4 @@ struct rusage { #endif }; -#endif // __LLVM_LIBC_TYPES_STRUCT_RUSAGE_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_RUSAGE_H diff --git a/libc/include/llvm-libc-types/struct_sched_param.h b/libc/include/llvm-libc-types/struct_sched_param.h index 4f31881..0521a4d 100644 --- a/libc/include/llvm-libc-types/struct_sched_param.h +++ b/libc/include/llvm-libc-types/struct_sched_param.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H__ -#define __LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H +#define LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H #include <llvm-libc-types/pid_t.h> #include <llvm-libc-types/struct_timespec.h> @@ -18,4 +18,4 @@ struct sched_param { int sched_priority; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_SCHED_PARAM_H diff --git a/libc/include/llvm-libc-types/struct_sigaction.h b/libc/include/llvm-libc-types/struct_sigaction.h index 3940f14..54d2995f 100644 --- a/libc/include/llvm-libc-types/struct_sigaction.h +++ b/libc/include/llvm-libc-types/struct_sigaction.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SIGACTION_H__ -#define __LLVM_LIBC_TYPES_SIGACTION_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_SIGACTION_H +#define LLVM_LIBC_TYPES_STRUCT_SIGACTION_H #include <llvm-libc-types/siginfo_t.h> #include <llvm-libc-types/sigset_t.h> @@ -27,4 +27,4 @@ struct sigaction { typedef void (*__sighandler_t)(int); -#endif // __LLVM_LIBC_TYPES_SIGACTION_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_SIGACTION_H diff --git a/libc/include/llvm-libc-types/struct_sockaddr.h b/libc/include/llvm-libc-types/struct_sockaddr.h index 9a6214c..074b1ae 100644 --- a/libc/include/llvm-libc-types/struct_sockaddr.h +++ b/libc/include/llvm-libc-types/struct_sockaddr.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H__ -#define __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H +#define LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H #include <llvm-libc-types/sa_family_t.h> @@ -18,4 +18,4 @@ struct sockaddr { char sa_data[]; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H diff --git a/libc/include/llvm-libc-types/struct_sockaddr_un.h b/libc/include/llvm-libc-types/struct_sockaddr_un.h index 9c3efea..4332419 100644 --- a/libc/include/llvm-libc-types/struct_sockaddr_un.h +++ b/libc/include/llvm-libc-types/struct_sockaddr_un.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H__ -#define __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H +#define LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H #include <llvm-libc-types/sa_family_t.h> @@ -19,4 +19,4 @@ struct sockaddr_un { char sun_path[108]; /* Pathname */ }; -#endif // __LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_SOCKADDR_UN_H diff --git a/libc/include/llvm-libc-types/struct_stat.h b/libc/include/llvm-libc-types/struct_stat.h index baaef15..3539fb5 100644 --- a/libc/include/llvm-libc-types/struct_stat.h +++ b/libc/include/llvm-libc-types/struct_stat.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_STAT_H__ -#define __LLVM_LIBC_TYPES_STRUCT_STAT_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_STAT_H +#define LLVM_LIBC_TYPES_STRUCT_STAT_H #include <llvm-libc-types/blkcnt_t.h> #include <llvm-libc-types/blksize_t.h> @@ -36,4 +36,4 @@ struct stat { blkcnt_t st_blocks; }; -#endif // __LLVM_LIBC_TYPES_STRUCT_STAT_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_STAT_H diff --git a/libc/include/llvm-libc-types/struct_timespec.h b/libc/include/llvm-libc-types/struct_timespec.h index 1fa6272..5d56d9c 100644 --- a/libc/include/llvm-libc-types/struct_timespec.h +++ b/libc/include/llvm-libc-types/struct_timespec.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TIMESPEC_H__ -#define __LLVM_LIBC_TYPES_TIMESPEC_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_TIMESPEC_H +#define LLVM_LIBC_TYPES_STRUCT_TIMESPEC_H #include <llvm-libc-types/time_t.h> @@ -17,4 +17,4 @@ struct timespec { long tv_nsec; /* Nanoseconds. */ }; -#endif // __LLVM_LIBC_TYPES_TIMESPEC_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_TIMESPEC_H diff --git a/libc/include/llvm-libc-types/struct_timeval.h b/libc/include/llvm-libc-types/struct_timeval.h index 756feca..6a0b7bb 100644 --- a/libc/include/llvm-libc-types/struct_timeval.h +++ b/libc/include/llvm-libc-types/struct_timeval.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TIMEVAL_H__ -#define __LLVM_LIBC_TYPES_TIMEVAL_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_TIMEVAL_H +#define LLVM_LIBC_TYPES_STRUCT_TIMEVAL_H #include <llvm-libc-types/suseconds_t.h> #include <llvm-libc-types/time_t.h> @@ -17,4 +17,4 @@ struct timeval { suseconds_t tv_usec; // Micro seconds }; -#endif // __LLVM_LIBC_TYPES_TIMEVAL_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_TIMEVAL_H diff --git a/libc/include/llvm-libc-types/struct_tm.h b/libc/include/llvm-libc-types/struct_tm.h index 953e12e..9fef7c5 100644 --- a/libc/include/llvm-libc-types/struct_tm.h +++ b/libc/include/llvm-libc-types/struct_tm.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TM_H__ -#define __LLVM_LIBC_TYPES_TM_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_TM_H +#define LLVM_LIBC_TYPES_STRUCT_TM_H struct tm { int tm_sec; // seconds after the minute @@ -21,4 +21,4 @@ struct tm { int tm_isdst; // Daylight Saving Time flag }; -#endif // __LLVM_LIBC_TYPES_TM_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_TM_H diff --git a/libc/include/llvm-libc-types/struct_utsname.h b/libc/include/llvm-libc-types/struct_utsname.h index bfd1ad9..e474171 100644 --- a/libc/include/llvm-libc-types/struct_utsname.h +++ b/libc/include/llvm-libc-types/struct_utsname.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__ -#define __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__ +#ifndef LLVM_LIBC_TYPES_STRUCT_UTSNAME_H +#define LLVM_LIBC_TYPES_STRUCT_UTSNAME_H #if defined(__linux__) #define __UTS_NAME_LENGTH 65 @@ -31,4 +31,4 @@ struct utsname { #undef __UTS_NAME_LENGTH -#endif // __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__ +#endif // LLVM_LIBC_TYPES_STRUCT_UTSNAME_H diff --git a/libc/include/llvm-libc-types/suseconds_t.h b/libc/include/llvm-libc-types/suseconds_t.h index d7298ed..32ecc9f 100644 --- a/libc/include/llvm-libc-types/suseconds_t.h +++ b/libc/include/llvm-libc-types/suseconds_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_SUSECONDS_T_H__ -#define __LLVM_LIBC_TYPES_SUSECONDS_T_H__ +#ifndef LLVM_LIBC_TYPES_SUSECONDS_T_H +#define LLVM_LIBC_TYPES_SUSECONDS_T_H typedef __INT32_TYPE__ suseconds_t; -#endif // __LLVM_LIBC_TYPES_SUSECONDS_T_H__ +#endif // LLVM_LIBC_TYPES_SUSECONDS_T_H diff --git a/libc/include/llvm-libc-types/tcflag_t.h b/libc/include/llvm-libc-types/tcflag_t.h index 7c2ce21..2978487 100644 --- a/libc/include/llvm-libc-types/tcflag_t.h +++ b/libc/include/llvm-libc-types/tcflag_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TCFLAG_T_H__ -#define __LLVM_LIBC_TYPES_TCFLAG_T_H__ +#ifndef LLVM_LIBC_TYPES_TCFLAG_T_H +#define LLVM_LIBC_TYPES_TCFLAG_T_H typedef unsigned int tcflag_t; -#endif // __LLVM_LIBC_TYPES_TCFLAG_T_H__ +#endif // LLVM_LIBC_TYPES_TCFLAG_T_H diff --git a/libc/include/llvm-libc-types/test_rpc_opcodes_t.h b/libc/include/llvm-libc-types/test_rpc_opcodes_t.h index ec4eb26..7129768 100644 --- a/libc/include/llvm-libc-types/test_rpc_opcodes_t.h +++ b/libc/include/llvm-libc-types/test_rpc_opcodes_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TEST_RPC_OPCODE_H__ -#define __LLVM_LIBC_TYPES_TEST_RPC_OPCODE_H__ +#ifndef LLVM_LIBC_TYPES_TEST_RPC_OPCODES_T_H +#define LLVM_LIBC_TYPES_TEST_RPC_OPCODES_T_H // We consider the first 32768 opcodes as reserved for libc purposes. We allow // extensions to use any other number without conflicting with anything else. @@ -18,4 +18,4 @@ typedef enum : unsigned short { RPC_TEST_STREAM, } rpc_test_opcode_t; -#endif // __LLVM_LIBC_TYPES_TEST_RPC_OPCODE_H__ +#endif // LLVM_LIBC_TYPES_TEST_RPC_OPCODES_T_H diff --git a/libc/include/llvm-libc-types/thrd_start_t.h b/libc/include/llvm-libc-types/thrd_start_t.h index 83fc32c..1fb21bc 100644 --- a/libc/include/llvm-libc-types/thrd_start_t.h +++ b/libc/include/llvm-libc-types/thrd_start_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_THRD_START_T_H__ -#define __LLVM_LIBC_TYPES_THRD_START_T_H__ +#ifndef LLVM_LIBC_TYPES_THRD_START_T_H +#define LLVM_LIBC_TYPES_THRD_START_T_H typedef int (*thrd_start_t)(void *); -#endif // __LLVM_LIBC_TYPES_THRD_START_T_H__ +#endif // LLVM_LIBC_TYPES_THRD_START_T_H diff --git a/libc/include/llvm-libc-types/thrd_t.h b/libc/include/llvm-libc-types/thrd_t.h index 0743106..2e0f9a0 100644 --- a/libc/include/llvm-libc-types/thrd_t.h +++ b/libc/include/llvm-libc-types/thrd_t.h @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_THRD_T_H__ -#define __LLVM_LIBC_TYPES_THRD_T_H__ +#ifndef LLVM_LIBC_TYPES_THRD_T_H +#define LLVM_LIBC_TYPES_THRD_T_H #include <llvm-libc-types/__thread_type.h> typedef __thread_type thrd_t; -#endif // __LLVM_LIBC_TYPES_THRD_T_H__ +#endif // LLVM_LIBC_TYPES_THRD_T_H diff --git a/libc/include/llvm-libc-types/time_t.h b/libc/include/llvm-libc-types/time_t.h index 2b3ccd4..59953b3 100644 --- a/libc/include/llvm-libc-types/time_t.h +++ b/libc/include/llvm-libc-types/time_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TIME_T_H__ -#define __LLVM_LIBC_TYPES_TIME_T_H__ +#ifndef LLVM_LIBC_TYPES_TIME_T_H +#define LLVM_LIBC_TYPES_TIME_T_H #if (defined(__arm__) || defined(_M_ARM)) typedef __INTPTR_TYPE__ time_t; @@ -15,4 +15,4 @@ typedef __INTPTR_TYPE__ time_t; typedef __INT64_TYPE__ time_t; #endif -#endif // __LLVM_LIBC_TYPES_TIME_T_H__ +#endif // LLVM_LIBC_TYPES_TIME_T_H diff --git a/libc/include/llvm-libc-types/tss_dtor_t.h b/libc/include/llvm-libc-types/tss_dtor_t.h index f80661b..c54b34e 100644 --- a/libc/include/llvm-libc-types/tss_dtor_t.h +++ b/libc/include/llvm-libc-types/tss_dtor_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TSS_DTOR_T_H__ -#define __LLVM_LIBC_TYPES_TSS_DTOR_T_H__ +#ifndef LLVM_LIBC_TYPES_TSS_DTOR_T_H +#define LLVM_LIBC_TYPES_TSS_DTOR_T_H typedef void (*tss_dtor_t)(void *); -#endif // __LLVM_LIBC_TYPES_TSS_DTOR_T_H__ +#endif // LLVM_LIBC_TYPES_TSS_DTOR_T_H diff --git a/libc/include/llvm-libc-types/tss_t.h b/libc/include/llvm-libc-types/tss_t.h index 868ec1a..92bc7ef 100644 --- a/libc/include/llvm-libc-types/tss_t.h +++ b/libc/include/llvm-libc-types/tss_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_TSS_T_H__ -#define __LLVM_LIBC_TYPES_TSS_T_H__ +#ifndef LLVM_LIBC_TYPES_TSS_T_H +#define LLVM_LIBC_TYPES_TSS_T_H typedef unsigned int tss_t; -#endif // __LLVM_LIBC_TYPES_TSS_T_H__ +#endif // LLVM_LIBC_TYPES_TSS_T_H diff --git a/libc/include/llvm-libc-types/uid_t.h b/libc/include/llvm-libc-types/uid_t.h index ae9fac2..4f6c647 100644 --- a/libc/include/llvm-libc-types/uid_t.h +++ b/libc/include/llvm-libc-types/uid_t.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_UID_T_H__ -#define __LLVM_LIBC_TYPES_UID_T_H__ +#ifndef LLVM_LIBC_TYPES_UID_T_H +#define LLVM_LIBC_TYPES_UID_T_H typedef __UINT32_TYPE__ uid_t; -#endif // __LLVM_LIBC_TYPES_UID_T_H__ +#endif // LLVM_LIBC_TYPES_UID_T_H diff --git a/libc/include/llvm-libc-types/union_sigval.h b/libc/include/llvm-libc-types/union_sigval.h index ccc9f2e..5f83cd2 100644 --- a/libc/include/llvm-libc-types/union_sigval.h +++ b/libc/include/llvm-libc-types/union_sigval.h @@ -6,12 +6,12 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_UNION_SIGVAL_H__ -#define __LLVM_LIBC_TYPES_UNION_SIGVAL_H__ +#ifndef LLVM_LIBC_TYPES_UNION_SIGVAL_H +#define LLVM_LIBC_TYPES_UNION_SIGVAL_H union sigval { int sival_int; void *sival_ptr; }; -#endif // __LLVM_LIBC_TYPES_UNION_SIGVAL_H__ +#endif // LLVM_LIBC_TYPES_UNION_SIGVAL_H diff --git a/libc/include/llvm-libc-types/wchar_t.h b/libc/include/llvm-libc-types/wchar_t.h index 9efb5cd..3e9a70b 100644 --- a/libc/include/llvm-libc-types/wchar_t.h +++ b/libc/include/llvm-libc-types/wchar_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_WCHAR_T_H__ -#define __LLVM_LIBC_TYPES_WCHAR_T_H__ +#ifndef LLVM_LIBC_TYPES_WCHAR_T_H +#define LLVM_LIBC_TYPES_WCHAR_T_H // Since __need_wchar_t is defined, we get the definition of wchar_t from the // standalone C header stddef.h. Also, because __need_wchar_t is defined, @@ -16,4 +16,4 @@ #include <stddef.h> #undef __need_wchar_t -#endif // __LLVM_LIBC_TYPES_WCHAR_T_H__ +#endif // LLVM_LIBC_TYPES_WCHAR_T_H diff --git a/libc/include/llvm-libc-types/wint_t.h b/libc/include/llvm-libc-types/wint_t.h index cf6ccd7..2758685 100644 --- a/libc/include/llvm-libc-types/wint_t.h +++ b/libc/include/llvm-libc-types/wint_t.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __LLVM_LIBC_TYPES_WINT_T_H__ -#define __LLVM_LIBC_TYPES_WINT_T_H__ +#ifndef LLVM_LIBC_TYPES_WINT_T_H +#define LLVM_LIBC_TYPES_WINT_T_H // Since __need_wint_t is defined, we get the definition of wint_t from the // standalone C header stddef.h. Also, because __need_wint_t is defined, @@ -16,4 +16,4 @@ #include <stddef.h> #undef __need_wint_t -#endif // __LLVM_LIBC_TYPES_WINT_T_H__ +#endif // LLVM_LIBC_TYPES_WINT_T_H diff --git a/libc/include/sys/queue.h b/libc/include/sys/queue.h index 2a4dc37..1cde35e 100644 --- a/libc/include/sys/queue.h +++ b/libc/include/sys/queue.h @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_SYS_QUEUE_H -#define LLVM_LIBC_SYS_QUEUE_H +#ifndef SYS_QUEUE_H +#define SYS_QUEUE_H #include <llvm-libc-macros/sys-queue-macros.h> -#endif // LLVM_LIBC_SYS_QUEUE_H +#endif // SYS_QUEUE_H |