Skip to content

Commit cb09862

Browse files
committed
Prettier camel-case.
1 parent c7af069 commit cb09862

File tree

1 file changed

+91
-91
lines changed

1 file changed

+91
-91
lines changed

src/wasi_unstable/mod.rs

Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,38 @@ use core::mem::MaybeUninit;
1515
use raw::*;
1616

1717
pub type Advice = __wasi_advice_t;
18-
pub type Clockid = __wasi_clockid_t;
18+
pub type ClockId = __wasi_clockid_t;
1919
pub type Device = __wasi_device_t;
20-
pub type Dircookie = __wasi_dircookie_t;
20+
pub type DirCookie = __wasi_dircookie_t;
2121
pub type Errno = __wasi_errno_t;
22-
pub type Eventrwflags = __wasi_eventrwflags_t;
23-
pub type Eventtype = __wasi_eventtype_t;
24-
pub type Exitcode = __wasi_exitcode_t;
22+
pub type EventRwFlags = __wasi_eventrwflags_t;
23+
pub type EventType = __wasi_eventtype_t;
24+
pub type ExitCode = __wasi_exitcode_t;
2525
pub type Fd = __wasi_fd_t;
26-
pub type Fdflags = __wasi_fdflags_t;
27-
pub type Filedelta = __wasi_filedelta_t;
28-
pub type Filesize = __wasi_filesize_t;
29-
pub type Filetype = __wasi_filetype_t;
30-
pub type Fstflags = __wasi_fstflags_t;
26+
pub type FdFlags = __wasi_fdflags_t;
27+
pub type FileDelta = __wasi_filedelta_t;
28+
pub type FileSize = __wasi_filesize_t;
29+
pub type FileType = __wasi_filetype_t;
30+
pub type FstFlags = __wasi_fstflags_t;
3131
pub type Inode = __wasi_inode_t;
3232
pub type Linkcount = __wasi_linkcount_t;
33-
pub type Lookupflags = __wasi_lookupflags_t;
34-
pub type Oflags = __wasi_oflags_t;
35-
pub type Preopentype = __wasi_preopentype_t;
36-
pub type Riflags = __wasi_riflags_t;
33+
pub type LookupFlags = __wasi_lookupflags_t;
34+
pub type OFlags = __wasi_oflags_t;
35+
pub type PreopenType = __wasi_preopentype_t;
36+
pub type RiFlags = __wasi_riflags_t;
3737
pub type Rights = __wasi_rights_t;
38-
pub type Roflags = __wasi_roflags_t;
39-
pub type Sdflags = __wasi_sdflags_t;
40-
pub type Siflags = __wasi_siflags_t;
38+
pub type RoFlags = __wasi_roflags_t;
39+
pub type SdFlags = __wasi_sdflags_t;
40+
pub type SiFlags = __wasi_siflags_t;
4141
pub type Signal = __wasi_signal_t;
42-
pub type Subclockflags = __wasi_subclockflags_t;
42+
pub type SubclockFlags = __wasi_subclockflags_t;
4343
pub type Timestamp = __wasi_timestamp_t;
4444
pub type Userdata = __wasi_userdata_t;
4545
pub type Whence = __wasi_whence_t;
4646
pub type Dirent = __wasi_dirent_t;
47-
pub type Fdstat = __wasi_fdstat_t;
48-
pub type Filestat = __wasi_filestat_t;
49-
pub type Ciovec = __wasi_ciovec_t;
47+
pub type FdStat = __wasi_fdstat_t;
48+
pub type FileStat = __wasi_filestat_t;
49+
pub type CIovec = __wasi_ciovec_t;
5050
pub type Iovec = __wasi_iovec_t;
5151
pub type Subscription = __wasi_subscription_t;
5252
pub type Event = __wasi_event_t;
@@ -58,11 +58,11 @@ pub const ADVICE_RANDOM: Advice = __WASI_ADVICE_RANDOM;
5858
pub const ADVICE_WILLNEED: Advice = __WASI_ADVICE_WILLNEED;
5959
pub const ADVICE_DONTNEED: Advice = __WASI_ADVICE_DONTNEED;
6060
pub const ADVICE_NOREUSE: Advice = __WASI_ADVICE_NOREUSE;
61-
pub const CLOCK_REALTIME: Clockid = __WASI_CLOCK_REALTIME;
62-
pub const CLOCK_MONOTONIC: Clockid = __WASI_CLOCK_MONOTONIC;
63-
pub const CLOCK_PROCESS_CPUTIME_ID: Clockid = __WASI_CLOCK_PROCESS_CPUTIME_ID;
64-
pub const CLOCK_THREAD_CPUTIME_ID: Clockid = __WASI_CLOCK_THREAD_CPUTIME_ID;
65-
pub const DIRCOOKIE_START: Dircookie = __WASI_DIRCOOKIE_START;
61+
pub const CLOCK_REALTIME: ClockId = __WASI_CLOCK_REALTIME;
62+
pub const CLOCK_MONOTONIC: ClockId = __WASI_CLOCK_MONOTONIC;
63+
pub const CLOCK_PROCESS_CPUTIME_ID: ClockId = __WASI_CLOCK_PROCESS_CPUTIME_ID;
64+
pub const CLOCK_THREAD_CPUTIME_ID: ClockId = __WASI_CLOCK_THREAD_CPUTIME_ID;
65+
pub const DIRCOOKIE_START: DirCookie = __WASI_DIRCOOKIE_START;
6666
pub const ESUCCESS: Errno = __WASI_ESUCCESS;
6767
pub const E2BIG: Errno = __WASI_E2BIG;
6868
pub const EACCES: Errno = __WASI_EACCES;
@@ -140,35 +140,35 @@ pub const ETIMEDOUT: Errno = __WASI_ETIMEDOUT;
140140
pub const ETXTBSY: Errno = __WASI_ETXTBSY;
141141
pub const EXDEV: Errno = __WASI_EXDEV;
142142
pub const ENOTCAPABLE: Errno = __WASI_ENOTCAPABLE;
143-
pub const EVENT_FD_READWRITE_HANGUP: Eventrwflags = __WASI_EVENT_FD_READWRITE_HANGUP;
144-
pub const EVENTTYPE_CLOCK: Eventtype = __WASI_EVENTTYPE_CLOCK;
145-
pub const EVENTTYPE_FD_READ: Eventtype = __WASI_EVENTTYPE_FD_READ;
146-
pub const EVENTTYPE_FD_WRITE: Eventtype = __WASI_EVENTTYPE_FD_WRITE;
147-
pub const FDFLAG_APPEND: Fdflags = __WASI_FDFLAG_APPEND;
148-
pub const FDFLAG_DSYNC: Fdflags = __WASI_FDFLAG_DSYNC;
149-
pub const FDFLAG_NONBLOCK: Fdflags = __WASI_FDFLAG_NONBLOCK;
150-
pub const FDFLAG_RSYNC: Fdflags = __WASI_FDFLAG_RSYNC;
151-
pub const FDFLAG_SYNC: Fdflags = __WASI_FDFLAG_SYNC;
152-
pub const FILETYPE_UNKNOWN: Filetype = __WASI_FILETYPE_UNKNOWN;
153-
pub const FILETYPE_BLOCK_DEVICE: Filetype = __WASI_FILETYPE_BLOCK_DEVICE;
154-
pub const FILETYPE_CHARACTER_DEVICE: Filetype = __WASI_FILETYPE_CHARACTER_DEVICE;
155-
pub const FILETYPE_DIRECTORY: Filetype = __WASI_FILETYPE_DIRECTORY;
156-
pub const FILETYPE_REGULAR_FILE: Filetype = __WASI_FILETYPE_REGULAR_FILE;
157-
pub const FILETYPE_SOCKET_DGRAM: Filetype = __WASI_FILETYPE_SOCKET_DGRAM;
158-
pub const FILETYPE_SOCKET_STREAM: Filetype = __WASI_FILETYPE_SOCKET_STREAM;
159-
pub const FILETYPE_SYMBOLIC_LINK: Filetype = __WASI_FILETYPE_SYMBOLIC_LINK;
160-
pub const FILESTAT_SET_ATIM: Fstflags = __WASI_FILESTAT_SET_ATIM;
161-
pub const FILESTAT_SET_ATIM_NOW: Fstflags = __WASI_FILESTAT_SET_ATIM_NOW;
162-
pub const FILESTAT_SET_MTIM: Fstflags = __WASI_FILESTAT_SET_MTIM;
163-
pub const FILESTAT_SET_MTIM_NOW: Fstflags = __WASI_FILESTAT_SET_MTIM_NOW;
164-
pub const LOOKUP_SYMLINK_FOLLOW: Lookupflags = __WASI_LOOKUP_SYMLINK_FOLLOW;
165-
pub const O_CREAT: Oflags = __WASI_O_CREAT;
166-
pub const O_DIRECTORY: Oflags = __WASI_O_DIRECTORY;
167-
pub const O_EXCL: Oflags = __WASI_O_EXCL;
168-
pub const O_TRUNC: Oflags = __WASI_O_TRUNC;
169-
pub const PREOPENTYPE_DIR: Preopentype = __WASI_PREOPENTYPE_DIR;
170-
pub const SOCK_RECV_PEEK: Riflags = __WASI_SOCK_RECV_PEEK;
171-
pub const SOCK_RECV_WAITALL: Riflags = __WASI_SOCK_RECV_WAITALL;
143+
pub const EVENT_FD_READWRITE_HANGUP: EventRwFlags = __WASI_EVENT_FD_READWRITE_HANGUP;
144+
pub const EVENTTYPE_CLOCK: EventType = __WASI_EVENTTYPE_CLOCK;
145+
pub const EVENTTYPE_FD_READ: EventType = __WASI_EVENTTYPE_FD_READ;
146+
pub const EVENTTYPE_FD_WRITE: EventType = __WASI_EVENTTYPE_FD_WRITE;
147+
pub const FDFLAG_APPEND: FdFlags = __WASI_FDFLAG_APPEND;
148+
pub const FDFLAG_DSYNC: FdFlags = __WASI_FDFLAG_DSYNC;
149+
pub const FDFLAG_NONBLOCK: FdFlags = __WASI_FDFLAG_NONBLOCK;
150+
pub const FDFLAG_RSYNC: FdFlags = __WASI_FDFLAG_RSYNC;
151+
pub const FDFLAG_SYNC: FdFlags = __WASI_FDFLAG_SYNC;
152+
pub const FILETYPE_UNKNOWN: FileType = __WASI_FILETYPE_UNKNOWN;
153+
pub const FILETYPE_BLOCK_DEVICE: FileType = __WASI_FILETYPE_BLOCK_DEVICE;
154+
pub const FILETYPE_CHARACTER_DEVICE: FileType = __WASI_FILETYPE_CHARACTER_DEVICE;
155+
pub const FILETYPE_DIRECTORY: FileType = __WASI_FILETYPE_DIRECTORY;
156+
pub const FILETYPE_REGULAR_FILE: FileType = __WASI_FILETYPE_REGULAR_FILE;
157+
pub const FILETYPE_SOCKET_DGRAM: FileType = __WASI_FILETYPE_SOCKET_DGRAM;
158+
pub const FILETYPE_SOCKET_STREAM: FileType = __WASI_FILETYPE_SOCKET_STREAM;
159+
pub const FILETYPE_SYMBOLIC_LINK: FileType = __WASI_FILETYPE_SYMBOLIC_LINK;
160+
pub const FILESTAT_SET_ATIM: FstFlags = __WASI_FILESTAT_SET_ATIM;
161+
pub const FILESTAT_SET_ATIM_NOW: FstFlags = __WASI_FILESTAT_SET_ATIM_NOW;
162+
pub const FILESTAT_SET_MTIM: FstFlags = __WASI_FILESTAT_SET_MTIM;
163+
pub const FILESTAT_SET_MTIM_NOW: FstFlags = __WASI_FILESTAT_SET_MTIM_NOW;
164+
pub const LOOKUP_SYMLINK_FOLLOW: LookupFlags = __WASI_LOOKUP_SYMLINK_FOLLOW;
165+
pub const O_CREAT: OFlags = __WASI_O_CREAT;
166+
pub const O_DIRECTORY: OFlags = __WASI_O_DIRECTORY;
167+
pub const O_EXCL: OFlags = __WASI_O_EXCL;
168+
pub const O_TRUNC: OFlags = __WASI_O_TRUNC;
169+
pub const PREOPENTYPE_DIR: PreopenType = __WASI_PREOPENTYPE_DIR;
170+
pub const SOCK_RECV_PEEK: RiFlags = __WASI_SOCK_RECV_PEEK;
171+
pub const SOCK_RECV_WAITALL: RiFlags = __WASI_SOCK_RECV_WAITALL;
172172
pub const RIGHT_FD_DATASYNC: Rights = __WASI_RIGHT_FD_DATASYNC;
173173
pub const RIGHT_FD_READ: Rights = __WASI_RIGHT_FD_READ;
174174
pub const RIGHT_FD_SEEK: Rights = __WASI_RIGHT_FD_SEEK;
@@ -198,9 +198,9 @@ pub const RIGHT_PATH_REMOVE_DIRECTORY: Rights = __WASI_RIGHT_PATH_REMOVE_DIRECTO
198198
pub const RIGHT_PATH_UNLINK_FILE: Rights = __WASI_RIGHT_PATH_UNLINK_FILE;
199199
pub const RIGHT_POLL_FD_READWRITE: Rights = __WASI_RIGHT_POLL_FD_READWRITE;
200200
pub const RIGHT_SOCK_SHUTDOWN: Rights = __WASI_RIGHT_SOCK_SHUTDOWN;
201-
pub const SOCK_RECV_DATA_TRUNCATED: Roflags = __WASI_SOCK_RECV_DATA_TRUNCATED;
202-
pub const SHUT_RD: Sdflags = __WASI_SHUT_RD;
203-
pub const SHUT_WR: Sdflags = __WASI_SHUT_WR;
201+
pub const SOCK_RECV_DATA_TRUNCATED: RoFlags = __WASI_SOCK_RECV_DATA_TRUNCATED;
202+
pub const SHUT_RD: SdFlags = __WASI_SHUT_RD;
203+
pub const SHUT_WR: SdFlags = __WASI_SHUT_WR;
204204
pub const SIGHUP: Signal = __WASI_SIGHUP;
205205
pub const SIGINT: Signal = __WASI_SIGINT;
206206
pub const SIGQUIT: Signal = __WASI_SIGQUIT;
@@ -231,12 +231,12 @@ pub const SIGWINCH: Signal = __WASI_SIGWINCH;
231231
pub const SIGPOLL: Signal = __WASI_SIGPOLL;
232232
pub const SIGPWR: Signal = __WASI_SIGPWR;
233233
pub const SIGSYS: Signal = __WASI_SIGSYS;
234-
pub const SUBSCRIPTION_CLOCK_ABSTIME: Subclockflags = __WASI_SUBSCRIPTION_CLOCK_ABSTIME;
234+
pub const SUBSCRIPTION_CLOCK_ABSTIME: SubclockFlags = __WASI_SUBSCRIPTION_CLOCK_ABSTIME;
235235
pub const WHENCE_CUR: Whence = __WASI_WHENCE_CUR;
236236
pub const WHENCE_END: Whence = __WASI_WHENCE_END;
237237
pub const WHENCE_SET: Whence = __WASI_WHENCE_SET;
238238

239-
pub fn clock_res_get(clock_id: Clockid) -> (Errno, Timestamp) {
239+
pub fn clock_res_get(clock_id: ClockId) -> (Errno, Timestamp) {
240240
let mut resolution = MaybeUninit::<Timestamp>::uninit();
241241
unsafe {
242242
(
@@ -246,7 +246,7 @@ pub fn clock_res_get(clock_id: Clockid) -> (Errno, Timestamp) {
246246
}
247247
}
248248

249-
pub fn clock_time_get(clock_id: Clockid, precision: Timestamp) -> (Errno, Timestamp) {
249+
pub fn clock_time_get(clock_id: ClockId, precision: Timestamp) -> (Errno, Timestamp) {
250250
let mut time = MaybeUninit::<Timestamp>::uninit();
251251
unsafe {
252252
(
@@ -256,7 +256,7 @@ pub fn clock_time_get(clock_id: Clockid, precision: Timestamp) -> (Errno, Timest
256256
}
257257
}
258258

259-
pub fn fd_pread(fd: Fd, iovs: &[Iovec], offset: Filesize) -> (Errno, usize) {
259+
pub fn fd_pread(fd: Fd, iovs: &[Iovec], offset: FileSize) -> (Errno, usize) {
260260
let mut nread = MaybeUninit::<usize>::uninit();
261261
unsafe {
262262
(
@@ -266,7 +266,7 @@ pub fn fd_pread(fd: Fd, iovs: &[Iovec], offset: Filesize) -> (Errno, usize) {
266266
}
267267
}
268268

269-
pub fn fd_pwrite(fd: Fd, iovs: &[Ciovec], offset: Filesize) -> (Errno, usize) {
269+
pub fn fd_pwrite(fd: Fd, iovs: &[CIovec], offset: FileSize) -> (Errno, usize) {
270270
let mut nwritten = MaybeUninit::<usize>::uninit();
271271
unsafe {
272272
(
@@ -302,8 +302,8 @@ pub fn fd_renumber(from: Fd, to: Fd) -> Errno {
302302
unsafe { __wasi_fd_renumber(from, to) }
303303
}
304304

305-
pub fn fd_seek(fd: Fd, offset: Filedelta, whence: Whence) -> (Errno, Filesize) {
306-
let mut newoffset = MaybeUninit::<Filesize>::uninit();
305+
pub fn fd_seek(fd: Fd, offset: FileDelta, whence: Whence) -> (Errno, FileSize) {
306+
let mut newoffset = MaybeUninit::<FileSize>::uninit();
307307
unsafe {
308308
(
309309
__wasi_fd_seek(fd, offset, whence, newoffset.as_mut_ptr()),
@@ -312,8 +312,8 @@ pub fn fd_seek(fd: Fd, offset: Filedelta, whence: Whence) -> (Errno, Filesize) {
312312
}
313313
}
314314

315-
pub fn fd_tell(fd: Fd) -> (Errno, Filesize) {
316-
let mut newoffset = MaybeUninit::<Filesize>::uninit();
315+
pub fn fd_tell(fd: Fd) -> (Errno, FileSize) {
316+
let mut newoffset = MaybeUninit::<FileSize>::uninit();
317317
unsafe {
318318
(
319319
__wasi_fd_tell(fd, newoffset.as_mut_ptr()),
@@ -322,8 +322,8 @@ pub fn fd_tell(fd: Fd) -> (Errno, Filesize) {
322322
}
323323
}
324324

325-
pub fn fd_fdstat_get(fd: Fd) -> (Errno, Fdstat) {
326-
let mut buf = MaybeUninit::<Fdstat>::uninit();
325+
pub fn fd_fdstat_get(fd: Fd) -> (Errno, FdStat) {
326+
let mut buf = MaybeUninit::<FdStat>::uninit();
327327
unsafe {
328328
(
329329
__wasi_fd_fdstat_get(fd, buf.as_mut_ptr()),
@@ -332,7 +332,7 @@ pub fn fd_fdstat_get(fd: Fd) -> (Errno, Fdstat) {
332332
}
333333
}
334334

335-
pub fn fd_fdstat_set_flags(fd: Fd, flags: Fdflags) -> Errno {
335+
pub fn fd_fdstat_set_flags(fd: Fd, flags: FdFlags) -> Errno {
336336
unsafe { __wasi_fd_fdstat_set_flags(fd, flags) }
337337
}
338338

@@ -344,7 +344,7 @@ pub fn fd_sync(fd: Fd) -> Errno {
344344
unsafe { __wasi_fd_sync(fd) }
345345
}
346346

347-
pub fn fd_write(fd: Fd, iovs: &[Ciovec]) -> (Errno, usize) {
347+
pub fn fd_write(fd: Fd, iovs: &[CIovec]) -> (Errno, usize) {
348348
let mut nwritten = MaybeUninit::<usize>::uninit();
349349
unsafe {
350350
(
@@ -354,11 +354,11 @@ pub fn fd_write(fd: Fd, iovs: &[Ciovec]) -> (Errno, usize) {
354354
}
355355
}
356356

357-
pub fn fd_advise(fd: Fd, offset: Filesize, len: Filesize, advice: Advice) -> Errno {
357+
pub fn fd_advise(fd: Fd, offset: FileSize, len: FileSize, advice: Advice) -> Errno {
358358
unsafe { __wasi_fd_advise(fd, offset, len, advice) }
359359
}
360360

361-
pub fn fd_allocate(fd: Fd, offset: Filesize, len: Filesize) -> Errno {
361+
pub fn fd_allocate(fd: Fd, offset: FileSize, len: FileSize) -> Errno {
362362
unsafe { __wasi_fd_allocate(fd, offset, len) }
363363
}
364364

@@ -368,7 +368,7 @@ pub fn path_create_directory(fd: Fd, path: &[u8]) -> Errno {
368368

369369
pub fn path_link(
370370
old_fd: Fd,
371-
old_flags: Lookupflags,
371+
old_flags: LookupFlags,
372372
old_path: &[u8],
373373
new_fd: Fd,
374374
new_path: &[u8],
@@ -388,12 +388,12 @@ pub fn path_link(
388388

389389
pub fn path_open(
390390
dirfd: Fd,
391-
dirflags: Lookupflags,
391+
dirflags: LookupFlags,
392392
path: &[u8],
393-
oflags: Oflags,
393+
oflags: OFlags,
394394
fs_rights_base: Rights,
395395
fs_rights_inheriting: Rights,
396-
fs_flags: Fdflags,
396+
fs_flags: FdFlags,
397397
) -> (Errno, Fd) {
398398
let mut fd = MaybeUninit::<Fd>::uninit();
399399
unsafe {
@@ -414,7 +414,7 @@ pub fn path_open(
414414
}
415415
}
416416

417-
pub fn fd_readdir(fd: Fd, buf: &mut [u8], cookie: Dircookie) -> (Errno, usize) {
417+
pub fn fd_readdir(fd: Fd, buf: &mut [u8], cookie: DirCookie) -> (Errno, usize) {
418418
let mut bufused = MaybeUninit::<usize>::uninit();
419419
unsafe {
420420
(
@@ -460,8 +460,8 @@ pub fn path_rename(old_fd: Fd, old_path: &[u8], new_fd: Fd, new_path: &[u8]) ->
460460
}
461461
}
462462

463-
pub fn fd_filestat_get(fd: Fd) -> (Errno, Filestat) {
464-
let mut buf = MaybeUninit::<Filestat>::uninit();
463+
pub fn fd_filestat_get(fd: Fd) -> (Errno, FileStat) {
464+
let mut buf = MaybeUninit::<FileStat>::uninit();
465465
unsafe {
466466
(
467467
__wasi_fd_filestat_get(fd, buf.as_mut_ptr()),
@@ -474,17 +474,17 @@ pub fn fd_filestat_set_times(
474474
fd: Fd,
475475
st_atim: Timestamp,
476476
st_mtim: Timestamp,
477-
fstflags: Fstflags,
477+
fstflags: FstFlags,
478478
) -> Errno {
479479
unsafe { __wasi_fd_filestat_set_times(fd, st_atim, st_mtim, fstflags) }
480480
}
481481

482-
pub fn fd_filestat_set_size(fd: Fd, st_size: Filesize) -> Errno {
482+
pub fn fd_filestat_set_size(fd: Fd, st_size: FileSize) -> Errno {
483483
unsafe { __wasi_fd_filestat_set_size(fd, st_size) }
484484
}
485485

486-
pub fn path_filestat_get(fd: Fd, flags: Lookupflags, path: &[u8]) -> (Errno, Filestat) {
487-
let mut buf = MaybeUninit::<Filestat>::uninit();
486+
pub fn path_filestat_get(fd: Fd, flags: LookupFlags, path: &[u8]) -> (Errno, FileStat) {
487+
let mut buf = MaybeUninit::<FileStat>::uninit();
488488
unsafe {
489489
(
490490
__wasi_path_filestat_get(fd, flags, path.as_ptr(), path.len(), buf.as_mut_ptr()),
@@ -495,11 +495,11 @@ pub fn path_filestat_get(fd: Fd, flags: Lookupflags, path: &[u8]) -> (Errno, Fil
495495

496496
pub fn path_filestat_set_times(
497497
fd: Fd,
498-
flags: Lookupflags,
498+
flags: LookupFlags,
499499
path: &[u8],
500500
st_atim: Timestamp,
501501
st_mtim: Timestamp,
502-
fstflags: Fstflags,
502+
fstflags: FstFlags,
503503
) -> Errno {
504504
unsafe {
505505
__wasi_path_filestat_set_times(
@@ -550,17 +550,17 @@ pub fn poll_oneoff(in_: &[Subscription], out: &mut [Event]) -> (Errno, usize) {
550550
}
551551
}
552552

553-
pub fn proc_exit(rval: Exitcode) {
553+
pub fn proc_exit(rval: ExitCode) {
554554
unsafe { __wasi_proc_exit(rval) }
555555
}
556556

557557
pub fn proc_raise(sig: Signal) -> Errno {
558558
unsafe { __wasi_proc_raise(sig) }
559559
}
560560

561-
pub fn sock_recv(sock: Fd, ri_data: &[Iovec], ri_flags: Riflags) -> (Errno, usize, Roflags) {
561+
pub fn sock_recv(sock: Fd, ri_data: &[Iovec], ri_flags: RiFlags) -> (Errno, usize, RoFlags) {
562562
let mut ro_datalen = MaybeUninit::<usize>::uninit();
563-
let mut ro_flags = MaybeUninit::<Roflags>::uninit();
563+
let mut ro_flags = MaybeUninit::<RoFlags>::uninit();
564564
unsafe {
565565
(
566566
__wasi_sock_recv(
@@ -577,7 +577,7 @@ pub fn sock_recv(sock: Fd, ri_data: &[Iovec], ri_flags: Riflags) -> (Errno, usiz
577577
}
578578
}
579579

580-
pub fn sock_send(sock: Fd, si_data: &[Ciovec], si_flags: Siflags) -> (Errno, usize) {
580+
pub fn sock_send(sock: Fd, si_data: &[CIovec], si_flags: SiFlags) -> (Errno, usize) {
581581
let mut so_datalen = MaybeUninit::<usize>::uninit();
582582
unsafe {
583583
(
@@ -593,7 +593,7 @@ pub fn sock_send(sock: Fd, si_data: &[Ciovec], si_flags: Siflags) -> (Errno, usi
593593
}
594594
}
595595

596-
pub fn sock_shutdown(sock: Fd, how: Sdflags) -> Errno {
596+
pub fn sock_shutdown(sock: Fd, how: SdFlags) -> Errno {
597597
unsafe { __wasi_sock_shutdown(sock, how) }
598598
}
599599

0 commit comments

Comments
 (0)