0b64ca4bea
Require POSIX.1-2001 instead of SUSv2.
2007-09-02 17:58:25 +00:00
Ron Koenderink
2ece63c54a
(update_sched): The indefinite sleep when there's no scheduled update
...
went into a tight loop instead, freezing the server.
2007-09-02 15:04:23 +00:00
808611da87
Rewrite for clarity and correctness.
2007-09-02 12:06:22 +00:00
e68504b3c1
Fix the previous revision.
2007-09-02 11:48:36 +00:00
131bb81df8
(delete_old_announcements): Delete temporary file when it's not used.
2007-09-02 11:32:31 +00:00
8d22c027f7
Fix rev. 1.15.
2007-08-31 05:28:25 +00:00
Ron Koenderink
a7f716b9bc
(sys/socket.h) [_WIN32]: Improve the comment to explain the include order
...
dependencies.
2007-08-30 01:20:59 +00:00
Ron Koenderink
68fd5e0c89
(sys/socket.h) [_WIN32]: Add comment to explain the include order
...
dependencies.
2007-08-29 23:07:33 +00:00
Ron Koenderink
366f48b6e2
(in.h, inet.h) [_WIN32]: Switch <sys/socket.h> to "sys/socket.h" so all
...
files in w32 library use a local file access for include files in or under w32.
2007-08-29 23:00:55 +00:00
Ron Koenderink
afedb8c9e2
(posix_accept, posix_bind, posix_listen, posix_setsockopt,
...
posix_shutdown, posix_socket, socklen_t) [_WIN32]: Move socket
related externs to sys/socket.h.
(inet_ntop) [_WIN32]: Move extern to inet.h.
(tcp_listen): Remove the !WIN32 includes and use the revised
sys/socket.h, netinet/in.h, arpa/inet.h and netdb.h.
2007-08-28 21:06:22 +00:00
Ron Koenderink
2b4fd27b97
(posix_mkdir) [_WIN32]: Change CR/LF to LF.
2007-08-27 00:21:39 +00:00
Ron Koenderink
56642d0415
(posix_mkdir) [_WIN32]: Add function comment.
2007-08-26 23:11:17 +00:00
Ron Koenderink
b65c2dd5ba
(posix_close, posix_read, posix_write) [_WIN32]:
...
Move CANT_REACH() and return -1 into a default case.
Removes warnings for MinGW of potential missing cases.
(posix_accept, posix_socket) [_WIN32]: Switch handle to SOCKET
to match Windows call. Cast to an int for translation map.
2007-08-26 23:04:14 +00:00
Ron Koenderink
c7546923e9
[_WIN32]: Add io.h for isatty(). Required for MinGW.
2007-08-26 22:54:59 +00:00
Ron Koenderink
65b1f94b3f
(abday,day,admon,mon,am_pm) [_WIN32]: Add const to declarations.
...
Removes warning in MinGW.
2007-08-26 22:53:40 +00:00
Ron Koenderink
2abd68e46e
(inet_ntop) [_WIN32]: Improve the error checking for getnameinfo().
2007-08-24 21:46:32 +00:00
Ron Koenderink
5299580260
(posix_fileno) [_WIN32]: Rename posix_fileno() to fileno().
...
Remove the extern posix_fileno().
(fileno) [_WIN32]: Replace system fileno() with a function that supports posix
file descriptors. Move #undef fileno to w32misc.h as the system define
is in stdio.h.
(rea) [_WIN32]: Add stdio.h for fileno() extern declaration and add misc.h
to ensure the WIN32 fixes to stdio.h are included.
2007-08-24 21:05:59 +00:00
Ron Koenderink
d5a1b3c6cd
(ssize) [_WIN32]: Switch __W64 to _w64, incorrectly case.
...
ssize_t declaration conflicts with MinGW
long declaration for ssize_t so add a #ifdef _MSC_VER
around the ssize_t declaration.
2007-08-24 20:51:00 +00:00
Ron Koenderink
2a0597be8f
(snprintf) [_WIN32]: snprintf() should have <stdio.h>.
2007-08-24 20:19:53 +00:00
eef82eb66b
Update for 4.3.10.
2007-08-24 17:28:47 +00:00
45ddd83526
Doc fix.
2007-08-24 17:24:07 +00:00
454c6df5ef
(verify_fail): Print index as it looks in input.
2007-08-24 17:23:26 +00:00
c940c76a01
(gen_power) [!_WIN32]: Previous revision inserted fsync(), where
...
previously something equivalent was done only for _WIN32. Revert
that.
2007-08-24 17:22:12 +00:00
8d8c6972a1
(ssize_t): Match system's size_t more closely.
2007-08-24 17:07:48 +00:00
09e7abbd0d
(output): Remove unused parameter eol. Caller changed.
2007-08-24 17:05:18 +00:00
1d330548ea
Fix grammar for human-readable header.
...
Clarify state of symbolic indexes.
2007-08-24 17:03:44 +00:00
71485ac5a0
(readv): Cope with malloc(0) returning null pointer.
...
(writev): call write() even when total size is zero.
2007-08-24 16:59:17 +00:00
c2cf7ddd2c
(buil_bc): Reduce bridge span cost to $1000.
...
(buil_tower_bc): Reduce bridge tower cost to $3000.
2007-08-23 18:26:04 +00:00
Ron Koenderink
5bb91bd98b
(inet_ntop) [_WIN32]: Add HAVE_GETADDRINFO around inet_ntop.
...
MinGW does not support getnameinfo() for Windows 2000 or earlier.
2007-08-23 03:02:19 +00:00
Ron Koenderink
82f8738b16
(mode_t) [_WIN32]: Switch to unsigned short to match the declaration
...
in the MinGW for mode_t.
2007-08-22 02:17:07 +00:00
Ron Koenderink
6d8ff43cd4
(inet_ntop) [_WIN32]: New. Windows equivalent for inet_ntop().
...
[_WIN32]: New in.h, inet.h, netdb.h. Windows equivalent for POSIX
includes.
(tcp_connect): Use new include files and inet_ntop().
Allows tcp_connect() to compile when HAVE_GETADDRINFO is enabled.
2007-08-21 13:46:21 +00:00
Ron Koenderink
af4c12d9b3
Standardize include file order.
2007-08-20 20:20:16 +00:00
Ron Koenderink
6ea6cd55e6
Replace winsock2.h and undef NS_ALL with sys/socket.h to prevent
...
multiple occurences undef NS_ALL from nesting include files.
2007-08-20 20:18:33 +00:00
Ron Koenderink
7d53597331
Replace the incorrectly commented out file prototypes.h with
...
misc.h.
2007-08-20 20:13:56 +00:00
Ron Koenderink
9cd99dd336
(tcp_connect) [_WIN32]: Add ws2tcpip.h to allow tcp_connect() to
...
compile when HAVE_GETADDRINFO is enabled.
2007-08-20 20:01:47 +00:00
Ron Koenderink
d9ddf9b24a
(tcp_connect, hostconnect) [_WIN32]: Replace close() with
...
closesocket() as Windows close() does not support closing
socket connections.
2007-08-20 19:59:12 +00:00
Ron Koenderink
b5c4250099
[_WIN32]: Remove empio.h, not required anymore.
2007-08-19 21:44:11 +00:00
Ron Koenderink
c2e4f233aa
[_WIN32]: Remove unnecessary Windows include files.
2007-08-19 15:21:42 +00:00
ae18cad100
(flock): Fix member types to conform to POSIX.
2007-08-19 14:19:52 +00:00
318f4b10f3
(mode_t, off_t): New.
...
(posix_mkdir, posix_bind, posix_setsockopt, posix_lseek, posix_read)
(posix_write): Fix prototypes to conform to POSIX.
2007-08-19 09:11:38 +00:00
95bdfebe78
Don't include direct.h, as our fake unistd.h now does the job.
2007-08-19 06:41:59 +00:00
Ron Koenderink
45e6ef2f9f
(getopt) [_WIN32]: Only getopt.c for MSC. MinGW has getopt()
...
in the library.
2007-08-19 01:51:34 +00:00
Ron Koenderink
fd4bed679b
(strptime) [_WIN32]: Postpone the declaration of the struct tm for strptime().
...
Pick up the declaration for struct tm when time.h is included in the source file.
2007-08-19 01:47:43 +00:00
Ron Koenderink
d5ffce4aa8
(getcwd) [_WIN32]: getcwd() is included in unistd.h in POSIX so
...
add <direct.h> into the windows equivalent for unistd.h.
2007-08-19 01:40:14 +00:00
Ron Koenderink
71669b1858
(getopt) [_WIN32]: In order to prevent namespace conflict between MSC and
...
MinGW created an extern getopt() in unistd.h. MinGW has getopt() in the library.
MSC does not have getopt() function.
2007-08-19 01:37:25 +00:00
Ron Koenderink
c47f59e189
(fileno) [_WIN32]: Remove unnecessary #ifdef fileno/#endif.
2007-08-19 01:20:00 +00:00
Ron Koenderink
049bf68035
(va_start) [_WIN32]: For va_start() requires stdarg.h and stdio.h.
2007-08-19 00:55:14 +00:00
Ron Koenderink
2e012c8fa3
(va_start) [_WIN32]: For va_start() requires stdarg.h.
2007-08-19 00:54:29 +00:00
Ron Koenderink
6dbe7debe4
(mkdir) [_WIN32]: Remove direct.h from posixio.c, not need.
2007-08-19 00:41:44 +00:00
404095d2fa
Trim system includes.
2007-08-18 17:03:14 +00:00