X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/a719a4bedec2bc512b7f95f7446e02f6662ebbc7..8b3d55e3d8df616f6fa6d9089a9c9e567229e17b:/regress/hsyscalls.i4?ds=inline diff --git a/regress/hsyscalls.i4 b/regress/hsyscalls.i4 index dc6ff40..ec4b630 100644 --- a/regress/hsyscalls.i4 +++ b/regress/hsyscalls.i4 @@ -19,13 +19,14 @@ m4_dnl along with this program; if not, write to the Free Software Foundation, m4_dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. m4_dnl each system call has -m4_dnl hm_syscall(,, +m4_dnl hm_syscall(,,) m4_dnl is one of m4_dnl hm_rv_must must succeed and return 0 m4_dnl hm_rv_any any nonnegative return allowed, -1 means see errno 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 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 @@ -56,6 +57,12 @@ hm_syscall( ') hm_syscall( + poll, `hm_rv_any', ` + hm_arg_pollfds_io(fds,nfds) hm_na + hm_arg_int(timeout) hm_na +') + +hm_syscall( socket, `hm_rv_fd', ` hm_arg_must(int,domain,AF_INET) hm_na hm_arg_socktype(type) hm_na @@ -63,7 +70,7 @@ hm_syscall( ') hm_syscall( - fcntl, `hm_rv_any', ` + fcntl, `hm_rv_fcntl', ` hm_arg_fd(fd) hm_na hm_arg_fcntl_cmd_arg(cmd,arg) hm_na ')