Skip to content
Snippets Groups Projects
Verified Commit 5690c6dc authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add trace for select and poll

parent 73c368dd
No related branches found
No related tags found
No related merge requests found
......@@ -21,5 +21,11 @@ pub struct pollfd {
#[no_mangle]
pub extern "C" fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: c_int) -> c_int {
Sys::poll(fds, nfds, timeout)
trace_expr!(
Sys::poll(fds, nfds, timeout),
"poll({:p}, {}, {})",
fds,
nfds,
timeout
)
}
......@@ -22,5 +22,13 @@ pub extern "C" fn select(
exceptfds: *mut fd_set,
timeout: *mut timeval,
) -> c_int {
Sys::select(nfds, readfds, writefds, exceptfds, timeout)
trace_expr!(
Sys::select(nfds, readfds, writefds, exceptfds, timeout),
"select({}, {:p}, {:p}, {:p}, {:p})",
nfds,
readfds,
writefds,
exceptfds,
timeout
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment