X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=regress%2Fhsyscalls.i4;fp=regress%2Fhsyscalls.i4;h=9bb6c3d862d9fe3a1c32572e8c9a08da0ee8f58b;hb=71a11130e0b7a37525fe6a97e0a1a23b84def1fe;hp=9ad7eb28b2ca9db5f03083397bd025a840eddbc8;hpb=0fdc13e42c6fdb93248d6e5c243827f2d01fd7c6;p=adns.git diff --git a/regress/hsyscalls.i4 b/regress/hsyscalls.i4 index 9ad7eb2..9bb6c3d 100644 --- a/regress/hsyscalls.i4 +++ b/regress/hsyscalls.i4 @@ -31,6 +31,8 @@ m4_dnl hm_rv_fd file descriptor is returned, -1 means see errno m4_dnl hm_rv_succfail returns 0 (ok) or -1 (see errno) m4_dnl hm_rv_len() returns length read/written, must be <=max, -1 => errno m4_dnl hm_rv_fcntl syscall is fcntl, do special processing +m4_dnl hm_rv_select select, do special processing } default is _any +m4_dnl hm_rv_poll poll, do special processing } after create_nothing m4_dnl is list of macros for arguments, each followed by hm_na m4_dnl hm_arg_nullptr(,) pointer of type type, must be null m4_dnl hm_arg_int() signed integer @@ -53,7 +55,7 @@ m4_dnl return value from syscall is supposed to be returned length m4_dnl hm_arg_addr_out(,) struct sockaddr*, length io at (an int*) hm_syscall( - select, `hm_rv_any', ` + select, `hm_rv_select', ` hm_arg_int(max) hm_na hm_arg_fdset_io(rfds,max) hm_na hm_arg_fdset_io(wfds,max) hm_na @@ -63,7 +65,7 @@ hm_syscall( #ifdef HAVE_POLL hm_syscall( - poll, `hm_rv_any', ` + poll, `hm_rv_poll', ` hm_arg_pollfds_io(fds,nfds) hm_na hm_arg_int(timeout) hm_na ')