diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-21 03:51:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-21 03:51:23 +0000 |
commit | 9ea56f8efe520e8c4b426ad1d13c9119a40d0b8a (patch) | |
tree | bcbfade4256a125351d474349ab2cdd1aeafc6ed /dir.c | |
parent | 9910feef4fc251419dc31cd2e022f81375bcad23 (diff) |
* ruby.h: rb_sys_stat -> stat
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -62,7 +62,7 @@ char *strchr _((char*,char)); #include <ctype.h> #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); |