mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
On Darwin, use __NR_poll_nocancel rather than __NR_poll, as per the
comment at the top of the file. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12878
This commit is contained in:
parent
18a9544be9
commit
e81fb2f3e4
@ -456,10 +456,16 @@ Bool VG_(get_startup_wd) ( Char* buf, SizeT size )
|
||||
return True;
|
||||
}
|
||||
|
||||
Int VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout)
|
||||
Int VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout)
|
||||
{
|
||||
SysRes res;
|
||||
# if defined(VGO_linux)
|
||||
res = VG_(do_syscall3)(__NR_poll, (UWord)fds, nfds, timeout);
|
||||
# elif defined(VGO_darwin)
|
||||
res = VG_(do_syscall3)(__NR_poll_nocancel, (UWord)fds, nfds, timeout);
|
||||
# else
|
||||
# error "Unknown OS"
|
||||
# endif
|
||||
return sr_isError(res) ? -1 : sr_Res(res);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user