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 | bbef5ed36272e5fd5338b7cd0c6454b7fe8d3559 (patch) | |
| tree | bcbfade4256a125351d474349ab2cdd1aeafc6ed /dir.c | |
| parent | 1867de32a9e5de6134df992f00d23eff46a82642 (diff) | |
| download | ruby-bbef5ed36272e5fd5338b7cd0c6454b7fe8d3559.tar.gz ruby-bbef5ed36272e5fd5338b7cd0c6454b7fe8d3559.tar.xz ruby-bbef5ed36272e5fd5338b7cd0c6454b7fe8d3559.zip | |
* ruby.h: rb_sys_stat -> stat
git-svn-id: http://svn.ruby-lang.org/repos/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); |
