Commit graph

11 commits

Author SHA1 Message Date
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
8d8c6972a1 (ssize_t): Match system's size_t more closely. 2007-08-24 17:07:48 +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
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
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
3c7bb12c09 Switch the !__GNUC__ with _MSC_VER to be more reflective of the
purpose.

(strptime) [_WIN32]: Add time.h for extern prototypes.
2007-08-17 20:43:32 +00:00
Ron Koenderink
3bdad8ce26 For w32misc.h add the POSIX equivalent include file for each
declaration.
2007-08-16 03:15:33 +00:00
Ron Koenderink
222894093d (ssize_t, pid_t) [_WIN32]: Back out the previous revision of unistd.h
and move to w32misc.h instead.  Belong into sys/types.h but we can't
fix system headers.
2007-08-16 03:03:22 +00:00
Ron Koenderink
c7f940a84e Move WIN32 equivalent function defines to w32/w32misc.h from misc.h.
Move Microsoft C compiler warning to w32/w32misc.h from misc.h.
2007-08-15 02:15:17 +00:00
Ron Koenderink
9c666a7423 Create w32misc.h to contain information that does not fit in Windows
equivalent include file.
(strptime) [_WIN32]: Add extern for WIN32 equivalent for strptime().
2007-08-15 01:16:26 +00:00