summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
commitf0f206d828e37bf452f53fe63f729d16b42df2c9 (patch)
tree0726d5ac3dbee381503921a9a6016c6dea786115 /dir.c
parent37a8fef38bc7a1751b4bd9899400536e333d41fd (diff)
downloadruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.gz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.xz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.zip
2000-03-07
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dir.c b/dir.c
index a5409a304..9c64dd35e 100644
--- a/dir.c
+++ b/dir.c
@@ -48,9 +48,6 @@
#endif
#include <errno.h>
-#ifdef USE_CWGUSI
-# include <sys/errno.h>
-#endif
#ifndef HAVE_STDLIB_H
char *getenv();
@@ -430,7 +427,7 @@ static VALUE
dir_s_chroot(dir, path)
VALUE dir, path;
{
-#if !defined(DJGPP) && !defined(NT) && !defined(__human68k__) && !defined(USE_CWGUSI) && !defined(__BEOS__) && !defined(__EMX__) && !defined(riscos)
+#if !defined(DJGPP) && !defined(NT) && !defined(__human68k__) && !defined(__BEOS__) && !defined(__EMX__) && !defined(riscos)
rb_secure(2);
Check_SafeStr(path);
@@ -462,7 +459,7 @@ dir_s_mkdir(argc, argv, obj)
Check_SafeStr(path);
rb_secure(2);
-#if !defined(NT) && !defined(USE_CWGUSI)
+#if !defined(NT)
if (mkdir(RSTRING(path)->ptr, mode) == -1)
rb_sys_fail(RSTRING(path)->ptr);
#else
@@ -482,7 +479,7 @@ dir_s_rmdir(obj, dir)
if (rmdir(RSTRING(dir)->ptr) < 0)
rb_sys_fail(RSTRING(dir)->ptr);
- return Qtrue;
+ return INT2FIX(0);
}
/* Return nonzero if S has any special globbing chars in it. */