From a05d38a8b4d277faa3643abff50ce5cb4fa6268e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 22 Oct 2001 21:09:41 +0000 Subject: * debug.cc (set_errno): Return value of errno that was set, just like the macro. (setclexec_pid): Replace old handle with new handle. * debug.h: Reflect change in arguments for setclexec_pid. * fhandler.cc (fhandler_base::set_inheritance): Ditto. (fhandler_base::fork_fixup): Ditto. * cygerrno.h: Reflect return value change for set_errno. --- winsup/cygwin/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/debug.h') diff --git a/winsup/cygwin/debug.h b/winsup/cygwin/debug.h index 8323e617a..0b7e53359 100644 --- a/winsup/cygwin/debug.h +++ b/winsup/cygwin/debug.h @@ -43,7 +43,7 @@ int __stdcall iscygthread (); # define ProtectHandle1(h,n) do {} while (0) # define ProtectHandle2(h,n) do {} while (0) # define debug_init() do {} while (0) -# define setclexec_pid(h, b) do {} while (0) +# define setclexec_pid(h, nh, b) do {} while (0) # define debug_fixup_after_fork() do {} while (0) #else @@ -72,7 +72,7 @@ BOOL __stdcall close_handle (const char *, int, HANDLE, const char *, BOOL) __attribute__ ((regparm (3))); void __stdcall cygbench (const char *s) __attribute__ ((regparm (1))); extern "C" void console_printf (const char *fmt,...); -void setclexec_pid (HANDLE, bool); +void setclexec_pid (HANDLE, HANDLE, bool); void debug_fixup_after_fork (); extern int pinger; -- cgit v1.2.3