Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-23 01:09:41 +0400
committerChristopher Faylor <me@cgf.cx>2001-10-23 01:09:41 +0400
commita05d38a8b4d277faa3643abff50ce5cb4fa6268e (patch)
treeae16b8a89588377ff8ec3b70d6cadafa34acc9bf /winsup/cygwin/cygerrno.h
parente7e231e531e62fbda5d7d019ca5d90363a955881 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/cygerrno.h')
-rw-r--r--winsup/cygwin/cygerrno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h
index ff4e90489..0c1513f25 100644
--- a/winsup/cygwin/cygerrno.h
+++ b/winsup/cygwin/cygerrno.h
@@ -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)