* 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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user