~ubuntu-branches/ubuntu/trusty/gettext/trusty

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-tests/test-sys_select.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-10-21 19:12:18 UTC
  • mfrom: (2.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20131021191218-5t1ixdaae0dbc1l3
Tags: 0.18.3.1-1ubuntu1
* Merge with Debian; remaining changes:
  - Allow the package to cross-build.
  - Define a stage1 profile to build without java and git.
  - Throw away /usr/lib/gettext/gnu.gettext*; we don't need them.
  - Explicitly configure with --disable-csharp.
  - Keep gettext.jar in /usr/share/gettext instead of moving it to
    /usr/share/java.
  - Drop autopoint recommends of gettext. It pulls in git and
    other sizable packages which make the CDs explode.
* gettext-el: Add an alternative dependency on emacs24.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Test of <sys/select.h> substitute.
2
 
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007-2013 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
20
20
 
21
21
#include <sys/select.h>
22
22
 
 
23
#include "signature.h"
 
24
 
 
25
/* The following may be macros without underlying functions, so only
 
26
   check signature if they are not macros.  */
 
27
#ifndef FD_CLR
 
28
SIGNATURE_CHECK (FD_CLR, void, (int, fd_set *));
 
29
#endif
 
30
#ifndef FD_ISSET
 
31
SIGNATURE_CHECK (FD_ISSET, void, (int, fd_set *));
 
32
#endif
 
33
#ifndef FD_SET
 
34
SIGNATURE_CHECK (FD_SET, int, (int, fd_set *));
 
35
#endif
 
36
#ifndef FD_ZERO
 
37
SIGNATURE_CHECK (FD_ZERO, void, (fd_set *));
 
38
#endif
 
39
 
23
40
/* Check that the 'struct timeval' type is defined.  */
24
 
struct timeval t1;
 
41
struct timeval a;
 
42
 
 
43
/* Check that &a.tv_sec is a 'time_t *', ignoring signedness issues.  */
 
44
typedef int verify_tv_sec_type[sizeof (a.tv_sec) == sizeof (time_t) ? 1 : -1];
 
45
 
 
46
/* Check that sigset_t is defined.  */
 
47
sigset_t t2;
25
48
 
26
49
int
27
50
main (void)