diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-15 01:53:08 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-15 01:53:08 +0000 |
| commit | 78685c1b067964a016c2938bf825f4e2b9d504a7 (patch) | |
| tree | 079fc0c321ed4bd793f10b9113a5a6ee96d95c48 /io.c | |
| parent | 0609ef3713d5c0eb296e98001a5eb9aaff6a0c82 (diff) | |
| download | ruby-78685c1b067964a016c2938bf825f4e2b9d504a7.tar.gz ruby-78685c1b067964a016c2938bf825f4e2b9d504a7.tar.xz ruby-78685c1b067964a016c2938bf825f4e2b9d504a7.zip | |
* symbian/README.SYMBIAN: symbian support added. great appreciate
to <alexandre.zavorine at symbian.com>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -4479,9 +4479,12 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, int status; struct popen_arg arg; char errmsg[80] = { '\0' }; -#elif defined(_WIN32) - volatile VALUE argbuf; - char **args = NULL; +#else +#if defined(_WIN32) + int openmode = rb_io_modestr_oflags(modestr); + const char *exename = NULL; + volatile VALUE cmdbuf; +#endif struct rb_exec_arg sarg; int pair[2], write_pair[2]; #endif @@ -6245,7 +6248,11 @@ argf_next_argv(VALUE argf) chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { +#ifdef __SYMBIAN32__ + chown(fn, st.st_uid, st.st_gid); +#else fchown(fw, st.st_uid, st.st_gid); +#endif } #endif rb_stdout = prep_io(fw, FMODE_WRITABLE, rb_cFile, fn); |
