@@ -29,7 +29,7 @@ pub type FileSize = __wasi_filesize_t;
29
29
pub type FileType = __wasi_filetype_t ;
30
30
pub type FstFlags = __wasi_fstflags_t ;
31
31
pub type Inode = __wasi_inode_t ;
32
- pub type Linkcount = __wasi_linkcount_t ;
32
+ pub type LinkCount = __wasi_linkcount_t ;
33
33
pub type LookupFlags = __wasi_lookupflags_t ;
34
34
pub type OFlags = __wasi_oflags_t ;
35
35
pub type PreopenType = __wasi_preopentype_t ;
@@ -46,8 +46,8 @@ pub type Whence = __wasi_whence_t;
46
46
pub type Dirent = __wasi_dirent_t ;
47
47
pub type FdStat = __wasi_fdstat_t ;
48
48
pub type FileStat = __wasi_filestat_t ;
49
- pub type CIovec = __wasi_ciovec_t ;
50
- pub type Iovec = __wasi_iovec_t ;
49
+ pub type CIoVec = __wasi_ciovec_t ;
50
+ pub type IoVec = __wasi_iovec_t ;
51
51
pub type Subscription = __wasi_subscription_t ;
52
52
pub type Event = __wasi_event_t ;
53
53
pub type Prestat = __wasi_prestat_t ;
@@ -256,7 +256,7 @@ pub fn clock_time_get(clock_id: ClockId, precision: Timestamp) -> (Errno, Timest
256
256
}
257
257
}
258
258
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 ) {
260
260
let mut nread = MaybeUninit :: < usize > :: uninit ( ) ;
261
261
unsafe {
262
262
(
@@ -266,7 +266,7 @@ pub fn fd_pread(fd: Fd, iovs: &[Iovec], offset: FileSize) -> (Errno, usize) {
266
266
}
267
267
}
268
268
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 ) {
270
270
let mut nwritten = MaybeUninit :: < usize > :: uninit ( ) ;
271
271
unsafe {
272
272
(
@@ -288,7 +288,7 @@ pub fn fd_datasync(fd: Fd) -> Errno {
288
288
unsafe { __wasi_fd_datasync ( fd) }
289
289
}
290
290
291
- pub fn fd_read ( fd : Fd , iovs : & [ Iovec ] ) -> ( Errno , usize ) {
291
+ pub fn fd_read ( fd : Fd , iovs : & [ IoVec ] ) -> ( Errno , usize ) {
292
292
let mut nread = MaybeUninit :: < usize > :: uninit ( ) ;
293
293
unsafe {
294
294
(
@@ -344,7 +344,7 @@ pub fn fd_sync(fd: Fd) -> Errno {
344
344
unsafe { __wasi_fd_sync ( fd) }
345
345
}
346
346
347
- pub fn fd_write ( fd : Fd , iovs : & [ CIovec ] ) -> ( Errno , usize ) {
347
+ pub fn fd_write ( fd : Fd , iovs : & [ CIoVec ] ) -> ( Errno , usize ) {
348
348
let mut nwritten = MaybeUninit :: < usize > :: uninit ( ) ;
349
349
unsafe {
350
350
(
@@ -558,7 +558,7 @@ pub fn proc_raise(sig: Signal) -> Errno {
558
558
unsafe { __wasi_proc_raise ( sig) }
559
559
}
560
560
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 ) {
562
562
let mut ro_datalen = MaybeUninit :: < usize > :: uninit ( ) ;
563
563
let mut ro_flags = MaybeUninit :: < RoFlags > :: uninit ( ) ;
564
564
unsafe {
@@ -577,7 +577,7 @@ pub fn sock_recv(sock: Fd, ri_data: &[Iovec], ri_flags: RiFlags) -> (Errno, usiz
577
577
}
578
578
}
579
579
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 ) {
581
581
let mut so_datalen = MaybeUninit :: < usize > :: uninit ( ) ;
582
582
unsafe {
583
583
(
0 commit comments