mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_map_errno): exported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5a99317830
commit
99b9eaaa68
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Feb 20 23:55:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* win32/win32.c (rb_w32_map_errno): exported.
|
||||||
|
|
||||||
Wed Feb 20 23:28:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Feb 20 23:28:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/readline/extconf.rb (rl_event_hook): workaround for native
|
* ext/readline/extconf.rb (rl_event_hook): workaround for native
|
||||||
|
|
|
@ -240,6 +240,7 @@ extern char * rb_w32_getenv(const char *);
|
||||||
extern int rb_w32_rename(const char *, const char *);
|
extern int rb_w32_rename(const char *, const char *);
|
||||||
extern char **rb_w32_get_environ(void);
|
extern char **rb_w32_get_environ(void);
|
||||||
extern void rb_w32_free_environ(char **);
|
extern void rb_w32_free_environ(char **);
|
||||||
|
extern int rb_w32_map_errno(DWORD);
|
||||||
|
|
||||||
#define vsnprintf(s,n,f,l) rb_w32_vsnprintf(s,n,f,l)
|
#define vsnprintf(s,n,f,l) rb_w32_vsnprintf(s,n,f,l)
|
||||||
#define snprintf rb_w32_snprintf
|
#define snprintf rb_w32_snprintf
|
||||||
|
|
|
@ -166,8 +166,8 @@ static struct {
|
||||||
{ WSAEMFILE, EMFILE },
|
{ WSAEMFILE, EMFILE },
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
int
|
||||||
map_errno(DWORD winerr)
|
rb_w32_map_errno(DWORD winerr)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -187,6 +187,8 @@ map_errno(DWORD winerr)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define map_errno rb_w32_map_errno
|
||||||
|
|
||||||
static char *NTLoginName;
|
static char *NTLoginName;
|
||||||
|
|
||||||
#ifdef WIN95
|
#ifdef WIN95
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue