Skip to content

Commit d9208b3

Browse files
committed
Correct port and dirent types
1 parent c69f0b9 commit d9208b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/unix/solaris/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ s! {
176176
pub d_ino: ::ino_t,
177177
pub d_off: ::off_t,
178178
pub d_reclen: u16,
179-
pub d_name: [::c_char; 1]
179+
pub d_name: [::c_char; 3]
180180
}
181181

182182
pub struct glob_t {
@@ -351,7 +351,7 @@ s! {
351351
pub portev_source: ::c_ushort,
352352
pub portev_pad: ::c_ushort,
353353
pub portev_object: ::uintptr_t,
354-
pub portev_user: ::uintptr_t,
354+
pub portev_user: *mut ::c_void,
355355
}
356356
}
357357

@@ -1329,13 +1329,13 @@ extern {
13291329

13301330
pub fn port_create() -> ::c_int;
13311331
pub fn port_associate(port: ::c_int, source: ::c_int, object: ::uintptr_t,
1332-
events: ::c_int, user: ::uintptr_t) -> ::c_int;
1332+
events: ::c_int, user: *mut ::c_void) -> ::c_int;
13331333
pub fn port_dissociate(port: ::c_int, source: ::c_int, object: ::uintptr_t)
13341334
-> ::c_int;
13351335
pub fn port_get(port: ::c_int, pe: *mut port_event,
1336-
timeout: *const ::timespec) -> ::c_int;
1336+
timeout: *mut ::timespec) -> ::c_int;
13371337
pub fn port_getn(port: ::c_int, pe_list: *mut port_event, max: ::c_uint,
1338-
nget: *mut ::c_uint, timeout: *const ::timespec)
1338+
nget: *mut ::c_uint, timeout: *mut ::timespec)
13391339
-> ::c_int;
13401340
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
13411341
envp: *const *const ::c_char)

0 commit comments

Comments
 (0)