From 0e2d2e6a794d3e9e6a55be37b9b640c902bc501b Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 23 Oct 2017 05:56:25 +0000 Subject: Drop to support NaCl platform. Because NaCl and PNaCl are already sunset status. see https://bugs.chromium.org/p/chromium/issues/detail?id=239656#c160 configure.ac: Patch for this file was provided by @nobu. [Feature #14041][ruby-core:83497][fix GH-1726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index ee2e87cfbc..735f22e584 100644 --- a/file.c +++ b/file.c @@ -72,16 +72,6 @@ int flock(int, int); #include #include -#if defined(__native_client__) -# if defined(NACL_NEWLIB) -# include "nacl/utime.h" -# include "nacl/stat.h" -# include "nacl/unistd.h" -# else -# undef HAVE_UTIMENSAT -# endif -#endif - #ifdef HAVE_SYS_MKDEV_H #include #endif @@ -1322,15 +1312,6 @@ rb_group_member(GETGROUPS_T gid) #define USE_GETEUID 1 #endif -#ifdef __native_client__ -// Although the NaCl toolchain contain eaccess() is it not yet -// overridden by nacl_io. -// TODO(sbc): Remove this once eaccess() is wired up correctly -// in NaCl. -# undef HAVE_EACCESS -# undef USE_GETEUID -#endif - #ifndef HAVE_EACCESS int eaccess(const char *path, int mode) @@ -3846,19 +3827,6 @@ rb_file_s_absolute_path(int argc, const VALUE *argv) return rb_file_absolute_path(argv[0], argc > 1 ? argv[1] : Qnil); } -#ifdef __native_client__ -VALUE -rb_realpath_internal(VALUE basedir, VALUE path, int strict) -{ - return path; -} - -VALUE -rb_check_realpath(VALUE basedir, VALUE path) -{ - return path; -} -#else enum rb_realpath_mode { RB_REALPATH_CHECK, RB_REALPATH_DIR, @@ -3922,11 +3890,7 @@ realpath_rec(long *prefixlenp, VALUE *resolvedp, const char *unresolved, else { struct stat sbuf; int ret; -#ifdef __native_client__ - ret = stat(RSTRING_PTR(testpath), &sbuf); -#else ret = lstat_without_gvl(RSTRING_PTR(testpath), &sbuf); -#endif if (ret == -1) { int e = errno; if (mode == RB_REALPATH_CHECK) return -1; @@ -4087,7 +4051,6 @@ rb_check_realpath(VALUE basedir, VALUE path) { return rb_check_realpath_internal(basedir, path, RB_REALPATH_CHECK); } -#endif /* * call-seq: -- cgit v1.2.3