File tree Expand file tree Collapse file tree 12 files changed +21
-23
lines changed Expand file tree Collapse file tree 12 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 1515
1616// Overlay mode
1717
18- // glibc <stdio .h> header might provide extern inline definitions for few
18+ // glibc <fcntl .h> header might provide extern inline definitions for few
1919// functions, causing external alias errors. They are guarded by
20- // `__USE_EXTERN_INLINES` macro. We temporarily disable `__USE_EXTERN_INLINES`
21- // macro by defining `__NO_INLINE__` before including <stdio.h>.
22- // And the same with `__USE_FORTIFY_LEVEL`, which will be temporarily disabled
20+ // `__USE_FORTIFY_LEVEL`, which will be temporarily disabled
2321// with `_FORTIFY_SOURCE`.
2422
2523#ifdef __USE_FORTIFY_LEVEL
3634#undef LIBC_OLD_USE_FORTIFY_LEVEL
3735#endif
3836
39- #endif // LLVM_LIBC_HDR_STDIO_OVERLAY_H
37+ #endif // LLVM_LIBC_HDR_FCNTL_OVERLAY_H
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ add_proxy_header_library(
4747)
4848
4949add_proxy_header_library(
50- fcntl_t
50+ mode_t
5151 HDRS
52- fcntl_t .h
52+ mode_t .h
5353 DEPENDS
5454 ../fcntl_overlay
5555 FULL_BUILD_DEPENDS
Original file line number Diff line number Diff line change 1- //===-- Definition of macros from fcntl_t .h -------------------------------===//
1+ //===-- Definition of macros from mode_t .h - -------------------------------===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
55// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66//
77//===----------------------------------------------------------------------===//
88
9- #ifndef LLVM_LIBC_HDR_FCNTL_T_H
10- #define LLVM_LIBC_HDR_FCNTL_T_H
9+ #ifndef LLVM_LIBC_HDR_MODE_T_H
10+ #define LLVM_LIBC_HDR_MODE_T_H
1111
1212#ifdef LIBC_FULL_BUILD
1313
1919
2020#endif // LLVM_LIBC_FULL_BUILD
2121
22- #endif // LLVM_LIBC_HDR_FCNTL_T_H
22+ #endif // LLVM_LIBC_HDR_MODE_T_H
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ add_entrypoint_object(
2828 HDRS
2929 ../open.h
3030 DEPENDS
31- libc.hdr.types.fcntl_t
31+ libc.hdr.types.mode_t
3232 libc.src.__support.OSUtil.osutil
3333 libc.src.errno.errno
3434)
@@ -40,7 +40,7 @@ add_entrypoint_object(
4040 HDRS
4141 ../openat.h
4242 DEPENDS
43- libc.hdr.types.fcntl_t
43+ libc.hdr.types.mode_t
4444 libc.src.__support.OSUtil.osutil
4545 libc.src.errno.errno
4646)
Original file line number Diff line number Diff line change 1313#include " src/__support/macros/config.h"
1414#include " src/errno/libc_errno.h"
1515
16- #include " hdr/types/fcntl_t .h"
16+ #include " hdr/types/mode_t .h"
1717#include < stdarg.h>
1818#include < sys/syscall.h> // For syscall numbers.
1919
Original file line number Diff line number Diff line change 1313#include " src/__support/macros/config.h"
1414#include " src/errno/libc_errno.h"
1515
16- #include " hdr/types/fcntl_t .h"
16+ #include " hdr/types/mode_t .h"
1717#include < stdarg.h>
1818#include < sys/syscall.h> // For syscall numbers.
1919
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_entrypoint_object(
55 HDRS
66 ../posix_spawn.h
77 DEPENDS
8- libc.hdr.types.fcntl_t
8+ libc.hdr.types.mode_t
99 libc.include .spawn
1010 libc.include .sys_syscall
1111 libc.include .signal
Original file line number Diff line number Diff line change 1414#include " src/__support/macros/config.h"
1515#include " src/spawn/file_actions.h"
1616
17- #include " hdr/types/fcntl_t .h"
17+ #include " hdr/types/mode_t .h"
1818#include < signal.h> // For SIGCHLD
1919#include < spawn.h>
2020#include < sys/syscall.h> // For syscall numbers.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_entrypoint_object(
55 HDRS
66 ../chmod.h
77 DEPENDS
8- libc.hdr.types.fcntl_t
8+ libc.hdr.types.mode_t
99 libc.include .sys_stat
1010 libc.include .sys_syscall
1111 libc.src.__support.OSUtil.osutil
@@ -19,7 +19,7 @@ add_entrypoint_object(
1919 HDRS
2020 ../fchmod.h
2121 DEPENDS
22- libc.hdr.types.fcntl_t
22+ libc.hdr.types.mode_t
2323 libc.include .sys_stat
2424 libc.include .sys_syscall
2525 libc.src.__support.OSUtil.osutil
@@ -46,7 +46,7 @@ add_entrypoint_object(
4646 HDRS
4747 ../mkdir.h
4848 DEPENDS
49- libc.hdr.types.fcntl_t
49+ libc.hdr.types.mode_t
5050 libc.include .sys_stat
5151 libc.include .sys_syscall
5252 libc.src.__support.OSUtil.osutil
Original file line number Diff line number Diff line change 1111#include " src/__support/OSUtil/syscall.h" // For internal syscall function.
1212#include " src/__support/common.h"
1313
14- #include " hdr/types/fcntl_t .h"
14+ #include " hdr/types/mode_t .h"
1515#include " src/__support/macros/config.h"
1616#include " src/errno/libc_errno.h"
1717#include < sys/stat.h>
You can’t perform that action at this time.
0 commit comments