Skip to content

Commit b8a529b

Browse files
committed
Move <wasi.h> to <wasi/core.h>.
This reflects that in the future, WASI may grow additional APIs beyond the core set. Also move <wasi-libc.h> to <wasi/libc.h>.
1 parent 3aad1a1 commit b8a529b

76 files changed

Lines changed: 81 additions & 81 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

expected/wasm32-wasi/include-all.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
#include <unistd.h>
183183
#include <utime.h>
184184
#include <values.h>
185-
#include <wasi-libc.h>
186-
#include <wasi.h>
185+
#include <wasi/core.h>
186+
#include <wasi/libc.h>
187187
#include <wchar.h>
188188
#include <wctype.h>

expected/wasm32-wasi/predefined-macros.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,7 +3624,8 @@
36243624
#define __tm_zone tm_zone
36253625
#define __va_copy(d,s) __builtin_va_copy(d,s)
36263626
#define __wasi__ 1
3627-
#define __wasi_h
3627+
#define __wasi_core_h
3628+
#define __wasi_libc_h
36283629
#define __wasilibc___errno_values_h
36293630
#define __wasilibc___fd_set_h
36303631
#define __wasilibc___function___isatty_h
@@ -3666,7 +3667,6 @@
36663667
#define __wasilibc___typedef_sa_family_t_h
36673668
#define __wasilibc___typedef_sigset_t_h
36683669
#define __wasilibc___typedef_socklen_t_h
3669-
#define __wasilibc_wasilibc_h
36703670
#define __wasm 1
36713671
#define __wasm32 1
36723672
#define __wasm32__ 1

libc-bottom-half/cloudlibc/src/common/clock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef COMMON_CLOCK_H
66
#define COMMON_CLOCK_H
77

8-
#include <wasi.h>
8+
#include <wasi/core.h>
99

1010
// In this implementation we define clockid_t as a pointer type, so that
1111
// we can implement them as full objects. Right now we only use those

libc-bottom-half/cloudlibc/src/common/errno.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef COMMON_ERRNO_H
66
#define COMMON_ERRNO_H
77

8-
#include <wasi.h>
8+
#include <wasi/core.h>
99

1010
// Translates ENOTCAPABLE to ENOTDIR if not a directory.
1111
static inline __wasi_errno_t errno_fixup_directory(__wasi_fd_t fd,

libc-bottom-half/cloudlibc/src/common/time.h

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

1111
#include <sys/time.h>
1212

13-
#include <wasi.h>
13+
#include <wasi/core.h>
1414
#include <stdbool.h>
1515
#include <time.h>
1616

libc-bottom-half/cloudlibc/src/common/tls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define COMMON_TLS_H
77

88
#include <assert.h>
9-
#include <wasi.h>
9+
#include <wasi/core.h>
1010
#include <stdalign.h>
1111
#include <stddef.h>
1212

libc-bottom-half/cloudlibc/src/libc/dirent/dirent_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#ifndef DIRENT_DIRENT_IMPL_H
66
#define DIRENT_DIRENT_IMPL_H
77

8-
#include <wasi.h>
8+
#include <wasi/core.h>
99
#include <stddef.h>
1010

1111
struct dirent;

libc-bottom-half/cloudlibc/src/libc/dirent/fdopendir.c

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

55
#include <common/errno.h>
66

7-
#include <wasi.h>
7+
#include <wasi/core.h>
88
#include <dirent.h>
99
#include <errno.h>
1010
#include <stdlib.h>

libc-bottom-half/cloudlibc/src/libc/dirent/readdir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <sys/stat.h>
66

77
#include <assert.h>
8-
#include <wasi.h>
8+
#include <wasi/core.h>
99
#include <dirent.h>
1010
#include <errno.h>
1111
#include <stddef.h>

libc-bottom-half/cloudlibc/src/libc/dirent/rewinddir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: BSD-2-Clause
44

5-
#include <wasi.h>
5+
#include <wasi/core.h>
66
#include <dirent.h>
77

88
#include "dirent_impl.h"

0 commit comments

Comments
 (0)