X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sys_select.c;h=76596dba30f8b83cddcf3f0ce5e3c0926b647c29;hb=b12df021ba5b5f12648d84f91d021777c347e9be;hp=aef8941071a79e50aa9c85b08ef8122925fdda02;hpb=b886ebac9e37729d68e765b141b099ec5b24ab2c;p=gnulib.git diff --git a/tests/test-sys_select.c b/tests/test-sys_select.c index aef894107..76596dba3 100644 --- a/tests/test-sys_select.c +++ b/tests/test-sys_select.c @@ -1,5 +1,5 @@ /* Test of substitute. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,9 +20,29 @@ #include +#include "signature.h" + +/* The following may be macros without underlying functions, so only + check signature if they are not macros. */ +#ifndef FD_CLR +SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *)); +#endif +#ifndef FD_ISSET +SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *)); +#endif +#ifndef FD_SET +SIGNATURE_CHECK (FD_SET, int, (int, fd_set *)); +#endif +#ifndef FD_ZERO +SIGNATURE_CHECK (FD_ZERO, void, (fd_set *)); +#endif + /* Check that the 'struct timeval' type is defined. */ struct timeval t1; +/* Check that sigset_t is defined. */ +sigset_t t2; + int main (void) {