mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 01:26:07 +00:00

Towards the goal of getting `ninja libc-lint` back to green, fix the numerous instances of: warning: header guard does not follow preferred style [llvm-header-guard] This is because many of our header guards start with `__LLVM` rather than `LLVM`. To filter just these warnings: $ ninja -k2000 libc-lint 2>&1 | grep llvm-header-guard To automatically apply fixits: $ find libc/src libc/include libc/test -name \*.h | \ xargs -n1 -I {} clang-tidy {} -p build/compile_commands.json \ -checks='-*,llvm-header-guard' --fix --quiet Some manual cleanup is still necessary as headers that were missing header guards outright will have them inserted before the license block (we prefer them after).
32 lines
940 B
C
32 lines
940 B
C
//===-- Macros defined in sys/resource.h header file ----------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H
|
|
#define LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H
|
|
|
|
#define RLIMIT_CPU 0
|
|
#define RLIMIT_FSIZE 1
|
|
#define RLIMIT_DATA 2
|
|
#define RLIMIT_STACK 3
|
|
#define RLIMIT_CORE 4
|
|
#define RLIMIT_RSS 5
|
|
#define RLIMIT_NPROC 6
|
|
#define RLIMIT_NOFILE 7
|
|
#define RLIMIT_MEMLOCK 8
|
|
#define RLIMIT_AS 9
|
|
#define RLIMIT_LOCKS 10
|
|
#define RLIMIT_SIGPENDING 11
|
|
#define RLIMIT_MSGQUEUE 12
|
|
#define RLIMIT_NICE 13
|
|
#define RLIMIT_RTPRIO 14
|
|
#define RLIMIT_RTTIME 15
|
|
|
|
#define RLIM_INFINITY (~0UL)
|
|
|
|
#endif // LLVM_LIBC_MACROS_LINUX_SYS_RESOURCE_MACROS_H
|