* 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.
This commit is contained in:
parent
e217832c4c
commit
5ec9ea21a3
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user