From 9ea56f8efe520e8c4b426ad1d13c9119a40d0b8a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 21 Mar 2001 03:51:23 +0000 Subject: * ruby.h: rb_sys_stat -> stat git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- dir.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index acd1fa506c..a1b14348f2 100644 --- a/dir.c +++ b/dir.c @@ -62,7 +62,7 @@ char *strchr _((char*,char)); #include #ifndef HAVE_LSTAT -#define lstat rb_sys_stat +#define lstat(path,st) stat(path,st) #endif #define FNM_NOESCAPE 0x01 @@ -622,7 +622,7 @@ glob_helper(path, flag, func, arg) if (!has_magic(path, 0)) { remove_backslashes(path); - if (rb_sys_stat(path, &st) == 0) { + if (stat(path, &st) == 0) { (*func)(path, arg); } else if (errno != ENOENT) { @@ -653,7 +653,7 @@ glob_helper(path, flag, func, arg) else dir = base; magic = extract_elem(p); - if (rb_sys_stat(dir, &st) < 0) { + if (stat(dir, &st) < 0) { if (errno != ENOENT) rb_sys_warning(dir); free(base); break; @@ -721,7 +721,7 @@ glob_helper(path, flag, func, arg) free(magic); if (link) { while (link) { - if (rb_sys_stat(link->path, &st) == 0) { + if (stat(link->path, &st) == 0) { if (S_ISDIR(st.st_mode)) { int len = strlen(link->path); int mlen = strlen(m); -- cgit v1.2.3