Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/new/vxworks/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//! VxWorks libc.
//!
//! VxWorks allows compiling different types of programs. The `libc` crate only
//! supports RTPs. Refer to the RTP definitions in case of discrepancy.
// FIXME(vxworks): link to headers needed.

pub(crate) mod unistd;
15 changes: 6 additions & 9 deletions src/vxworks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ pub type pthread_key_t = c_ulong;

// From b_off_t.h
pub type off_t = c_longlong;
pub type off64_t = off_t;

#[deprecated(
since = "0.2.187",
note = "Kernel mode definitions are unsupported. Use `off_t` instead."
)]
pub type off64_t = c_longlong;

// From b_BOOL.h
pub type BOOL = c_int;
Expand Down Expand Up @@ -2414,14 +2419,6 @@ safe_f! {
}
}

pub unsafe fn pread(_fd: c_int, _buf: *mut c_void, _count: size_t, _offset: off64_t) -> ssize_t {
-1
}

pub unsafe fn pwrite(_fd: c_int, _buf: *const c_void, _count: size_t, _offset: off64_t) -> ssize_t {
-1
}

pub unsafe fn posix_memalign(memptr: *mut *mut c_void, align: size_t, size: size_t) -> c_int {
// check to see if align is a power of 2 and if align is a multiple
// of sizeof(void *)
Expand Down