diff options
author | DJ Delorie <dj@redhat.com> | 2000-07-27 17:30:51 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2000-07-27 17:30:51 +0000 |
commit | d0b178fe3a3493016bb3448c2cf5eb214a4d4d06 (patch) | |
tree | 1d12d7e5b8356385df82253134e9eb7dc686aaab /winsup/cygwin | |
parent | bf7be721b84e33cc846dbcbff1be0a3c38ad4bb8 (diff) | |
download | newlib-d0b178fe3a3493016bb3448c2cf5eb214a4d4d06.zip newlib-d0b178fe3a3493016bb3448c2cf5eb214a4d4d06.tar.gz newlib-d0b178fe3a3493016bb3448c2cf5eb214a4d4d06.tar.bz2 |
* testsuite/winsup.api/winsup.exp: ignore stdout by default
* testsuite/winsup.api/crlf.c: non-verbose by default
* winsup.h: prune out windows headers we don't normally need
* assert.cc: add wingdi.h and winuser.h
* fhandler_console.cc: ditto
* fhandler_windows.cc: ditto
* select.cc: ditto
* spawn.cc: ditto
* strace.cc: ditto
* tty.cc: ditto
* window.cc: ditto
* hinfo.cc: add winsock.h
* syscalls.cc: add winnls.h
* uinfo.cc: ditto
* include/windows.h: optimize non-inclusion of repeat headers
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 18 | ||||
-rw-r--r-- | winsup/cygwin/assert.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/dtable.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_windows.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/select.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/strace.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/testsuite/winsup.api/crlf.c | 2 | ||||
-rw-r--r-- | winsup/cygwin/testsuite/winsup.api/winsup.exp | 2 | ||||
-rw-r--r-- | winsup/cygwin/tty.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 1 | ||||
-rw-r--r-- | winsup/cygwin/window.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/winsup.h | 16 |
15 files changed, 55 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fec3580..168b923 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,21 @@ +2000-07-27 DJ Delorie <dj@redhat.com> + + * testsuite/winsup.api/winsup.exp: ignore stdout by default + * testsuite/winsup.api/crlf.c: non-verbose by default + + * winsup.h: prune out windows headers we don't normally need + * assert.cc: add wingdi.h and winuser.h + * fhandler_console.cc: ditto + * fhandler_windows.cc: ditto + * select.cc: ditto + * spawn.cc: ditto + * strace.cc: ditto + * tty.cc: ditto + * window.cc: ditto + * hinfo.cc: add winsock.h + * syscalls.cc: add winnls.h + * uinfo.cc: ditto + Thu Jul 27 10:24:36 2000 Egor Duda <deo@logos-m.ru> * fhandler.cc (fhandler_disk_file::fstat): Allow block calculation to diff --git a/winsup/cygwin/assert.cc b/winsup/cygwin/assert.cc index fd1f383..c66418b 100644 --- a/winsup/cygwin/assert.cc +++ b/winsup/cygwin/assert.cc @@ -9,6 +9,8 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> #include <assert.h> #include <stdlib.h> diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 4fb488d..8f8b14a 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -19,6 +19,7 @@ details. */ #define Win32_Winsock #include "winsup.h" +#include <winsock.h> hinfo dtable; diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 8a4ad30..bd58c3a 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -19,6 +19,8 @@ details. */ #include <errno.h> #include <unistd.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> #include <ctype.h> /* diff --git a/winsup/cygwin/fhandler_windows.cc b/winsup/cygwin/fhandler_windows.cc index eee8286..b68bb70 100644 --- a/winsup/cygwin/fhandler_windows.cc +++ b/winsup/cygwin/fhandler_windows.cc @@ -13,6 +13,8 @@ details. */ #include <errno.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> /* The following unix-style calls are supported: diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index d3c607a..bc2dce5 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -26,6 +26,8 @@ details. */ #include <sys/time.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> #include <netdb.h> #include <unistd.h> #include <stdio.h> diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index c12882c..f237486 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -16,6 +16,8 @@ details. */ #include <errno.h> #include <limits.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> #include <ctype.h> #include "paths.h" diff --git a/winsup/cygwin/strace.cc b/winsup/cygwin/strace.cc index 1fadd0d..c6656f9 100644 --- a/winsup/cygwin/strace.cc +++ b/winsup/cygwin/strace.cc @@ -11,6 +11,8 @@ details. */ #include <stdlib.h> #include <time.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> #define PROTECT(x) x[sizeof(x)-1] = 0 #define CHECK(x) if (x[sizeof(x)-1] != 0) { small_printf("array bound exceeded %d\n", __LINE__); ExitProcess(1); } diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 881a173..6123a47 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -21,6 +21,7 @@ details. */ #include <errno.h> #include <limits.h> #include "winsup.h" +#include <winnls.h> #include <lmcons.h> /* for UNLEN */ #include <unistd.h> diff --git a/winsup/cygwin/testsuite/winsup.api/crlf.c b/winsup/cygwin/testsuite/winsup.api/crlf.c index 2022234..5dbc222 100644 --- a/winsup/cygwin/testsuite/winsup.api/crlf.c +++ b/winsup/cygwin/testsuite/winsup.api/crlf.c @@ -237,7 +237,7 @@ get_bytestream(Buffer *buf) char dataname[] = "crlf.dat"; -int verbose=1; +int verbose=0; void v(char *fmt, ...) { diff --git a/winsup/cygwin/testsuite/winsup.api/winsup.exp b/winsup/cygwin/testsuite/winsup.api/winsup.exp index 5c85cc0..96e7c7c 100644 --- a/winsup/cygwin/testsuite/winsup.api/winsup.exp +++ b/winsup/cygwin/testsuite/winsup.api/winsup.exp @@ -31,7 +31,7 @@ foreach src [glob -nocomplain $srcdir/$subdir/*.c $srcdir/$subdir/*/*.c] { verbose -log "$rv" fail "$testcase (compile)" } else { - ws_spawn "../cygrun ./$base.exe" + ws_spawn "../cygrun ./$base.exe > /dev/null" if { $rv != "" } { verbose -log "$testcase: $rv" fail "$testcase (execute)" diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index d6aecfc..5a19958 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -12,6 +12,8 @@ details. */ #include <unistd.h> #include <utmp.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> extern fhandler_tty_master *tty_master; diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 8a19fce..5ee9162 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -10,6 +10,7 @@ details. */ #include <pwd.h> #include "winsup.h" +#include <winnls.h> #include <utmp.h> #include <limits.h> #include <unistd.h> diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc index ad7ac40..bd468d1 100644 --- a/winsup/cygwin/window.cc +++ b/winsup/cygwin/window.cc @@ -15,6 +15,8 @@ details. */ #include <errno.h> #include <limits.h> #include "winsup.h" +#include <wingdi.h> +#include <winuser.h> static NO_COPY UINT timer_active = 0; static NO_COPY struct itimerval itv; diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index cb4f5b8..35545ef 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -50,8 +50,24 @@ __asm__ __volatile__( return __res; } +#define WIN32_LEAN_AND_MEAN 1 +#define _WINGDI_H +#define _WINUSER_H +#define _WINNLS_H +#define _WINVER_H +#define _WINNETWK_H +#define _WINSVC_H #include <windows.h> #include <wincrypt.h> +#undef _WINGDI_H +#undef _WINUSER_H +#undef _WINNLS_H +#undef _WINVER_H +#undef _WINNETWK_H +#undef _WINSVC_H + +/* The one function we use from winuser.h most of the time */ +extern "C" DWORD WINAPI GetLastError (void); /* Used for runtime OS check/decisions. */ enum os_type {winNT = 1, win95, win98, win32s, unknown}; |