Skip to content

Commit 7b663bd

Browse files
author
Job Henandez Lara
authored
[libc] Fix the remaining fcntl.h proxy header includes. (#113961)
1 parent c5edecb commit 7b663bd

File tree

9 files changed

+10
-6
lines changed

9 files changed

+10
-6
lines changed

libc/src/stdio/linux/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ add_entrypoint_object(
2222
libc.include.sys_syscall
2323
libc.src.__support.OSUtil.osutil
2424
libc.src.errno.errno
25+
libc.hdr.fcntl_macros
2526
)
2627

2728
add_entrypoint_object(

libc/src/stdio/linux/rename.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "src/stdio/rename.h"
10-
#include "include/llvm-libc-macros/linux/fcntl-macros.h"
10+
#include "hdr/fcntl_macros.h"
1111
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
1212
#include "src/__support/common.h"
1313
#include "src/__support/macros/config.h"

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ add_entrypoint_object(
187187
../shm_open.h
188188
DEPENDS
189189
libc.src.fcntl.open
190-
libc.include.llvm-libc-macros.fcntl_macros
191-
libc.include.llvm-libc-types.mode_t
190+
libc.hdr.types.mode_t
192191
.shm_common
193192
)
194193

libc/src/sys/mman/linux/shm_open.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "src/sys/mman/shm_open.h"
10-
#include "llvm-libc-macros/fcntl-macros.h"
10+
#include "hdr/types/mode_t.h"
1111
#include "src/__support/macros/config.h"
1212
#include "src/fcntl/open.h"
1313
#include "src/sys/mman/linux/shm_common.h"

libc/src/sys/mman/shm_open.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef LLVM_LIBC_SRC_SYS_MMAN_SHM_OPEN_H
1010
#define LLVM_LIBC_SRC_SYS_MMAN_SHM_OPEN_H
1111

12+
#include "hdr/types/mode_t.h"
1213
#include "src/__support/macros/config.h"
13-
#include <llvm-libc-types/mode_t.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ add_entrypoint_object(
66
../chmod.h
77
DEPENDS
88
libc.hdr.types.mode_t
9+
libc.hdr.fcntl_macros
910
libc.include.sys_stat
1011
libc.include.sys_syscall
1112
libc.src.__support.OSUtil.osutil
@@ -47,6 +48,7 @@ add_entrypoint_object(
4748
../mkdir.h
4849
DEPENDS
4950
libc.hdr.types.mode_t
51+
libc.hdr.fcntl_macros
5052
libc.include.sys_stat
5153
libc.include.sys_syscall
5254
libc.src.__support.OSUtil.osutil

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
1212
#include "src/__support/common.h"
1313

14+
#include "hdr/fcntl_macros.h"
1415
#include "hdr/types/mode_t.h"
1516
#include "src/__support/macros/config.h"
1617
#include "src/errno/libc_errno.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
1212
#include "src/__support/common.h"
1313

14+
#include "hdr/fcntl_macros.h"
1415
#include "hdr/types/mode_t.h"
1516
#include "src/__support/macros/config.h"
1617
#include "src/errno/libc_errno.h"

libc/test/src/sys/statvfs/linux/fstatvfs_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "llvm-libc-macros/linux/fcntl-macros.h"
1+
#include "hdr/fcntl_macros.h"
22
#include "src/__support/macros/config.h"
33
#include "src/fcntl/open.h"
44
#include "src/sys/statvfs/fstatvfs.h"

0 commit comments

Comments
 (0)