mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
reordered just for diffing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59970fde60
commit
3345d742e7
1 changed files with 16 additions and 16 deletions
|
@ -3621,22 +3621,6 @@ rb_w32_snprintf(char *buf, size_t size, const char *format, ...)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__BORLANDC__) && !defined(_WIN32_WCE)
|
|
||||||
int
|
|
||||||
rb_w32_isatty(int fd)
|
|
||||||
{
|
|
||||||
if (!(_osfile(fd) & FOPEN)) {
|
|
||||||
errno = EBADF;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
if (!(_osfile(fd) & FDEV)) {
|
|
||||||
errno = ENOTTY;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int
|
int
|
||||||
rb_w32_mkdir(const char *path, int mode)
|
rb_w32_mkdir(const char *path, int mode)
|
||||||
{
|
{
|
||||||
|
@ -3695,6 +3679,22 @@ rb_w32_unlink(const char *path)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__BORLANDC__) && !defined(_WIN32_WCE)
|
||||||
|
int
|
||||||
|
rb_w32_isatty(int fd)
|
||||||
|
{
|
||||||
|
if (!(_osfile(fd) & FOPEN)) {
|
||||||
|
errno = EBADF;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (!(_osfile(fd) & FDEV)) {
|
||||||
|
errno = ENOTTY;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// Fix bcc32's stdio bug
|
// Fix bcc32's stdio bug
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue