annotate tests/test-sys_select-c++.cc @ 17632:86af85d364e1 default tip

unistd: port readlink to Mac OS X 10.3.9 * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work around self-include problem in Mac OS X 10.3.9 when combined with readlink module. Problem reported by Klaus Zietler in <http://bugs.gnu.org/16825>.
author Paul Eggert <eggert@penguin.cs.ucla.edu>
date Tue, 25 Feb 2014 11:16:27 -0800
parents 344018b6e5d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12968
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <sys/select.h> substitute in C++ mode.
17587
344018b6e5d7 maint: update copyright
Eric Blake <eblake@redhat.com>
parents: 17249
diff changeset
2 Copyright (C) 2010-2014 Free Software Foundation, Inc.
12968
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2010. */
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define GNULIB_NAMESPACE gnulib
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #include <config.h>
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <sys/select.h>
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "signature.h"
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
15342
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
27 #if GNULIB_TEST_PSELECT
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
28 SIGNATURE_CHECK (GNULIB_NAMESPACE::pselect, int,
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
29 (int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
30 struct timespec const *restrict, sigset_t const *restrict));
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
31 #endif
2a17513766d8 test-pselect: new module
Paul Eggert <eggert@cs.ucla.edu>
parents: 14079
diff changeset
32
13073
03de1efbfdd3 Resolve conflict between the two kinds of module indicators.
Bruno Haible <bruno@clisp.org>
parents: 12968
diff changeset
33 #if GNULIB_TEST_SELECT
12968
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 SIGNATURE_CHECK (GNULIB_NAMESPACE::select, int,
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 (int, fd_set *, fd_set *, fd_set *, struct timeval *));
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #endif
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 int
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 main ()
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 {
9aacbc14c92b Tests of module 'sys_select' in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 }