~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/sys_time.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* Provide a more complete sys/time.h.
4
2
 
5
 
   Copyright (C) 2007-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 2007-2012 Free Software Foundation, Inc.
6
4
 
7
5
   This program is free software; you can redistribute it and/or modify
8
6
   it under the terms of the GNU General Public License as published by
15
13
   GNU General Public License for more details.
16
14
 
17
15
   You should have received a copy of the GNU General Public License
18
 
   along with this program; if not, write to the Free Software Foundation,
19
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
16
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
20
17
 
21
18
/* Written by Paul Eggert.  */
22
19
 
42
39
#  include <time.h>
43
40
# endif
44
41
 
 
42
/* On native Windows with MSVC, get the 'struct timeval' type.
 
43
   Also, on native Windows with a 64-bit time_t, where we are overriding the
 
44
   'struct timeval' type, get all declarations of system functions whose
 
45
   signature contains 'struct timeval'.  */
 
46
# if (defined _MSC_VER || @REPLACE_STRUCT_TIMEVAL@) && @HAVE_WINSOCK2_H@ && !defined _GL_INCLUDING_WINSOCK2_H
 
47
#  define _GL_INCLUDING_WINSOCK2_H
 
48
#  include <winsock2.h>
 
49
#  undef _GL_INCLUDING_WINSOCK2_H
 
50
# endif
 
51
 
45
52
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
46
53
 
47
54
/* The definition of _GL_ARG_NONNULL is copied here.  */
52
59
extern "C" {
53
60
# endif
54
61
 
55
 
# if ! @HAVE_STRUCT_TIMEVAL@
 
62
# if !@HAVE_STRUCT_TIMEVAL@ || @REPLACE_STRUCT_TIMEVAL@
 
63
 
 
64
#  if @REPLACE_STRUCT_TIMEVAL@
 
65
#   define timeval rpl_timeval
 
66
#  endif
56
67
 
57
68
#  if !GNULIB_defined_struct_timeval
58
69
struct timeval
100
111
#  endif
101
112
# endif
102
113
 
 
114
/* Hide some function declarations from <winsock2.h>.  */
 
115
 
 
116
# if defined _MSC_VER && @HAVE_WINSOCK2_H@
 
117
#  if !defined _@GUARD_PREFIX@_UNISTD_H
 
118
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
119
#    undef close
 
120
#    define close close_used_without_including_unistd_h
 
121
#   else
 
122
     _GL_WARN_ON_USE (close,
 
123
                      "close() used without including <unistd.h>");
 
124
#   endif
 
125
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
126
#    undef gethostname
 
127
#    define gethostname gethostname_used_without_including_unistd_h
 
128
#   else
 
129
     _GL_WARN_ON_USE (gethostname,
 
130
                      "gethostname() used without including <unistd.h>");
 
131
#   endif
 
132
#  endif
 
133
#  if !defined _@GUARD_PREFIX@_SYS_SOCKET_H
 
134
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
135
#    undef socket
 
136
#    define socket              socket_used_without_including_sys_socket_h
 
137
#    undef connect
 
138
#    define connect             connect_used_without_including_sys_socket_h
 
139
#    undef accept
 
140
#    define accept              accept_used_without_including_sys_socket_h
 
141
#    undef bind
 
142
#    define bind                bind_used_without_including_sys_socket_h
 
143
#    undef getpeername
 
144
#    define getpeername         getpeername_used_without_including_sys_socket_h
 
145
#    undef getsockname
 
146
#    define getsockname         getsockname_used_without_including_sys_socket_h
 
147
#    undef getsockopt
 
148
#    define getsockopt          getsockopt_used_without_including_sys_socket_h
 
149
#    undef listen
 
150
#    define listen              listen_used_without_including_sys_socket_h
 
151
#    undef recv
 
152
#    define recv                recv_used_without_including_sys_socket_h
 
153
#    undef send
 
154
#    define send                send_used_without_including_sys_socket_h
 
155
#    undef recvfrom
 
156
#    define recvfrom            recvfrom_used_without_including_sys_socket_h
 
157
#    undef sendto
 
158
#    define sendto              sendto_used_without_including_sys_socket_h
 
159
#    undef setsockopt
 
160
#    define setsockopt          setsockopt_used_without_including_sys_socket_h
 
161
#    undef shutdown
 
162
#    define shutdown            shutdown_used_without_including_sys_socket_h
 
163
#   else
 
164
     _GL_WARN_ON_USE (socket,
 
165
                      "socket() used without including <sys/socket.h>");
 
166
     _GL_WARN_ON_USE (connect,
 
167
                      "connect() used without including <sys/socket.h>");
 
168
     _GL_WARN_ON_USE (accept,
 
169
                      "accept() used without including <sys/socket.h>");
 
170
     _GL_WARN_ON_USE (bind,
 
171
                      "bind() used without including <sys/socket.h>");
 
172
     _GL_WARN_ON_USE (getpeername,
 
173
                      "getpeername() used without including <sys/socket.h>");
 
174
     _GL_WARN_ON_USE (getsockname,
 
175
                      "getsockname() used without including <sys/socket.h>");
 
176
     _GL_WARN_ON_USE (getsockopt,
 
177
                      "getsockopt() used without including <sys/socket.h>");
 
178
     _GL_WARN_ON_USE (listen,
 
179
                      "listen() used without including <sys/socket.h>");
 
180
     _GL_WARN_ON_USE (recv,
 
181
                      "recv() used without including <sys/socket.h>");
 
182
     _GL_WARN_ON_USE (send,
 
183
                      "send() used without including <sys/socket.h>");
 
184
     _GL_WARN_ON_USE (recvfrom,
 
185
                      "recvfrom() used without including <sys/socket.h>");
 
186
     _GL_WARN_ON_USE (sendto,
 
187
                      "sendto() used without including <sys/socket.h>");
 
188
     _GL_WARN_ON_USE (setsockopt,
 
189
                      "setsockopt() used without including <sys/socket.h>");
 
190
     _GL_WARN_ON_USE (shutdown,
 
191
                      "shutdown() used without including <sys/socket.h>");
 
192
#   endif
 
193
#  endif
 
194
#  if !defined _@GUARD_PREFIX@_SYS_SELECT_H
 
195
#   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
196
#    undef select
 
197
#    define select select_used_without_including_sys_select_h
 
198
#   else
 
199
     _GL_WARN_ON_USE (select,
 
200
                      "select() used without including <sys/select.h>");
 
201
#   endif
 
202
#  endif
 
203
# endif
 
204
 
103
205
#endif /* _@GUARD_PREFIX@_SYS_TIME_H */