git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5798
return res.isError ? -1 : res.val;
}
-Int VG_(poll)( struct vki_pollfd *ufds, UInt nfds, Int timeout)
-{
- SysRes res = VG_(do_syscall3)(__NR_poll, (UWord)ufds, nfds, timeout);
- /* ASSUMES SYSCALL ALWAYS SUCCEEDS */
- return res.val;
-}
-
/* clone the environment */
Char **VG_(env_clone) ( Char **oldenv )
{
extern Char **VG_(env_clone) ( Char **env_clone );
// misc
-extern Int VG_(poll)( struct vki_pollfd *, UInt nfds, Int timeout);
extern void VG_(nanosleep) ( struct vki_timespec * );
extern Int VG_(getgroups)( Int size, UInt* list );
extern Int VG_(ptrace)( Int request, Int pid, void *addr, void *data );