From 71a11130e0b7a37525fe6a97e0a1a23b84def1fe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Nov 2016 17:21:20 +0000 Subject: [PATCH] regress: *.m4: Provide for hm_rv_select and hm_rv_poll They default to _any so there is no functional change. Signed-off-by: Ian Jackson --- regress/hmacros.i4 | 2 ++ regress/hsyscalls.i4 | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/regress/hmacros.i4 b/regress/hmacros.i4 index b776f14..f9b4143 100644 --- a/regress/hmacros.i4 +++ b/regress/hmacros.i4 @@ -60,6 +60,8 @@ m4_define(`hm_create_nothing', ` m4_define(`hm_rv_succfail', `') m4_define(`hm_rv_len', `') m4_define(`hm_rv_fcntl', `') + m4_define(`hm_rv_select', `hm_rv_any') + m4_define(`hm_rv_poll', `hm_rv_any') ') m4_define(`hm_create_proto_h',` 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 ') -- 2.30.2