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
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-10-23 00:32:20 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-10-23 00:32:20 +0400
commit5ec9ea21a369a5e25fb0fad61535879bba153976 (patch)
treeb77414bd184b23c7f1ea90d05d20a76a8198da47 /winsup
parente217832c4c4d8dba3c13af35b1d107851271b77d (diff)
* external.cc (cygwin_internal): Add CW_GET_ERRNO_FROM_WINERROR
handling. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_ERRNO_FROM_WINERROR.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog8
-rw-r--r--winsup/cygwin/external.cc6
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
-rw-r--r--winsup/cygwin/include/sys/cygwin.h3
4 files changed, 18 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 94a122f57..4dd246e1d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,13 @@
2003-10-22 Corinna Vinschen <corinna@vinschen.de>
+ * external.cc (cygwin_internal): Add CW_GET_ERRNO_FROM_WINERROR
+ handling.
+ * include/cygwin/version.h: Bump API minor number.
+ * include/sys/cygwin.h (cygwin_getinfo_types): Add
+ CW_GET_ERRNO_FROM_WINERROR.
+
+2003-10-22 Corinna Vinschen <corinna@vinschen.de>
+
* Makefile.in: Add $(LIBSERVER) rule.
* cygserver.h: Moved from include/cygwin to here.
* cygserver_ipc.h: Moved from ../cygserver to here.
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 49e430518..114a3de7c 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -259,6 +259,12 @@ cygwin_internal (cygwin_getinfo_types t, ...)
char *filename = va_arg (arg, char *);
return check_ntsec (filename);
}
+ case CW_GET_ERRNO_FROM_WINERROR:
+ {
+ int error = va_arg (arg, int);
+ int deferrno = va_arg (arg, int);
+ return geterrno_from_win_error (error, deferrno);
+ }
default:
return (DWORD) -1;
}
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index c4c3c9edb..0e26b0840 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -220,13 +220,14 @@ details. */
94: Export getopt, getopt_long, optarg, opterr, optind, optopt,
optreset, __check_rhosts_file, __rcmd_errstr.
95: Export shmat, shmctl, shmdt, shmget.
+ 96: CW_GET_ERRNO_FROM_WINERROR addition to external.cc
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 95
+#define CYGWIN_VERSION_API_MINOR 96
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible
diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h
index 36c3f53b1..d2e1a4171 100644
--- a/winsup/cygwin/include/sys/cygwin.h
+++ b/winsup/cygwin/include/sys/cygwin.h
@@ -72,7 +72,8 @@ typedef enum
CW_CYGWIN_PID_TO_WINPID,
CW_EXTRACT_DOMAIN_AND_USER,
CW_CMDLINE,
- CW_CHECK_NTSEC
+ CW_CHECK_NTSEC,
+ CW_GET_ERRNO_FROM_WINERROR
} cygwin_getinfo_types;
#define CW_NEXTPID 0x80000000 /* or with pid to get next one */