* 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.
This commit is contained in:
Christopher Faylor
2001-10-22 21:09:41 +00:00
parent e7e231e531
commit a05d38a8b4
5 changed files with 24 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ int __stdcall geterrno_from_win_error (DWORD code, int deferrno) __attribute__ (
#ifndef DEBUGGING
#define set_errno(val) (_impure_ptr->_errno = (val))
#else
void __stdcall __set_errno (const char *ln, int ln, int val) __attribute ((regparm(3)));
int __stdcall __set_errno (const char *ln, int ln, int val) __attribute ((regparm(3)));
#define set_errno(val) __set_errno (__PRETTY_FUNCTION__, __LINE__, (val))
#endif
#define get_errno() (_impure_ptr->_errno)