Skip to content

Commit d1c0ce3

Browse files
committed
Tidy up a few more CamelCase names.
1 parent 1e07271 commit d1c0ce3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/wasi_unstable/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub type FileSize = __wasi_filesize_t;
2929
pub type FileType = __wasi_filetype_t;
3030
pub type FstFlags = __wasi_fstflags_t;
3131
pub type Inode = __wasi_inode_t;
32-
pub type Linkcount = __wasi_linkcount_t;
32+
pub type LinkCount = __wasi_linkcount_t;
3333
pub type LookupFlags = __wasi_lookupflags_t;
3434
pub type OFlags = __wasi_oflags_t;
3535
pub type PreopenType = __wasi_preopentype_t;
@@ -46,8 +46,8 @@ pub type Whence = __wasi_whence_t;
4646
pub type Dirent = __wasi_dirent_t;
4747
pub type FdStat = __wasi_fdstat_t;
4848
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;
5151
pub type Subscription = __wasi_subscription_t;
5252
pub type Event = __wasi_event_t;
5353
pub type Prestat = __wasi_prestat_t;
@@ -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
(
@@ -288,7 +288,7 @@ pub fn fd_datasync(fd: Fd) -> Errno {
288288
unsafe { __wasi_fd_datasync(fd) }
289289
}
290290

291-
pub fn fd_read(fd: Fd, iovs: &[Iovec]) -> (Errno, usize) {
291+
pub fn fd_read(fd: Fd, iovs: &[IoVec]) -> (Errno, usize) {
292292
let mut nread = MaybeUninit::<usize>::uninit();
293293
unsafe {
294294
(
@@ -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
(
@@ -558,7 +558,7 @@ 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();
563563
let mut ro_flags = MaybeUninit::<RoFlags>::uninit();
564564
unsafe {
@@ -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
(

0 commit comments

Comments
 (0)