Skip to content

Commit 2c05e69

Browse files
Revert "[libc] Add unistd overlay" (#119295)
Reverts #118882 Several functions are now missing necessary types in fullbuild, e.g. `off_t`, `ssize_t`. Reverting for now.
1 parent 7db970f commit 2c05e69

33 files changed

+31
-103
lines changed

libc/hdr/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,10 @@ add_proxy_header_library(
126126
libc.include.llvm-libc-macros.sys_stat_macros
127127
)
128128

129-
add_header_library(unistd_overlay HDRS unistd_overlay.h)
130129
add_proxy_header_library(
131130
unistd_macros
132131
HDRS
133132
unistd_macros.h
134-
DEPENDS
135-
.unistd_overlay
136133
FULL_BUILD_DEPENDS
137134
libc.include.unistd
138135
libc.include.llvm-libc-macros.unistd_macros

libc/hdr/unistd_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#else // Overlay mode
1717

18-
#include "unistd_overlay.h"
18+
#include <unistd.h>
1919

2020
#endif // LLVM_LIBC_FULL_BUILD
2121

libc/hdr/unistd_overlay.h

Lines changed: 0 additions & 69 deletions
This file was deleted.

libc/src/unistd/dup.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/dup2.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/dup3.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/fork.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/ftruncate.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/getcwd.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

libc/src/unistd/geteuid.h

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

12-
#include "hdr/unistd_macros.h"
1312
#include "src/__support/macros/config.h"
13+
#include <unistd.h>
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

0 commit comments

Comments
 (0)