Mercurial > gnulib
annotate modules/socket @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | b86e9061a6d0 |
children |
rev | line source |
---|---|
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 Description: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 socket() function: create a socket. |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 Files: |
10690
01f3623813da
Split winsock.c into many smaller files.
Simon Josefsson <simon@josefsson.org>
parents:
10594
diff
changeset
|
5 lib/socket.c |
01f3623813da
Split winsock.c into many smaller files.
Simon Josefsson <simon@josefsson.org>
parents:
10594
diff
changeset
|
6 lib/w32sock.h |
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 Depends-on: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 sys_socket |
15653
f60ae63f5f6c
socket functions: Avoid link errors on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
10 socketlib |
14683
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
11801
diff
changeset
|
11 errno [test "$ac_cv_header_winsock2_h" = yes] |
efab6978105e
Avoid unnecessary compilation units, through conditional dependencies.
Bruno Haible <bruno@clisp.org>
parents:
11801
diff
changeset
|
12 sockets [test "$ac_cv_header_winsock2_h" = yes] |
15752
b86e9061a6d0
New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
Bruno Haible <bruno@clisp.org>
parents:
15653
diff
changeset
|
13 msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes] |
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 configure.ac: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 AC_REQUIRE([gl_HEADER_SYS_SOCKET]) |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 if test "$ac_cv_header_winsock2_h" = yes; then |
10690
01f3623813da
Split winsock.c into many smaller files.
Simon Josefsson <simon@josefsson.org>
parents:
10594
diff
changeset
|
18 AC_LIBOBJ([socket]) |
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 fi |
11801
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
20 # When this module is used, sockets may actually occur as file descriptors, |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
21 # hence it is worth warning if the modules 'close' and 'ioctl' are not used. |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
22 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])]) |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
23 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])]) |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
24 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2]) |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
25 if test "$ac_cv_header_winsock2_h" = yes; then |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
26 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
27 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 |
a29d6bab4448
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible <bruno@clisp.org>
parents:
11765
diff
changeset
|
28 fi |
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 gl_SYS_SOCKET_MODULE_INDICATOR([socket]) |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 Makefile.am: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 Include: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 <sys/socket.h> |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 |
15653
f60ae63f5f6c
socket functions: Avoid link errors on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
36 Link: |
f60ae63f5f6c
socket functions: Avoid link errors on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
37 $(LIBSOCKET) |
f60ae63f5f6c
socket functions: Avoid link errors on Solaris.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
38 |
10594
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
39 License: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
40 LGPLv2+ |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
41 |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
42 Maintainer: |
43282f926709
New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
43 Paolo Bonzini, Simon Josefsson |