Skip to content

Commit b08bba9

Browse files
author
Job Hernandez
committed
address review
1 parent 8419e80 commit b08bba9

File tree

12 files changed

+21
-23
lines changed

12 files changed

+21
-23
lines changed

libc/hdr/fcntl_overlay.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
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
@@ -36,4 +34,4 @@
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

libc/hdr/types/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ add_proxy_header_library(
4747
)
4848

4949
add_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
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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

@@ -19,4 +19,4 @@
1919

2020
#endif // LLVM_LIBC_FULL_BUILD
2121

22-
#endif // LLVM_LIBC_HDR_FCNTL_T_H
22+
#endif // LLVM_LIBC_HDR_MODE_T_H

libc/src/fcntl/linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

libc/src/fcntl/linux/open.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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

libc/src/fcntl/linux/openat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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

libc/src/spawn/linux/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

libc/src/spawn/linux/posix_spawn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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.

libc/src/sys/stat/linux/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

libc/src/sys/stat/linux/chmod.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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>

0 commit comments

Comments
 (0)