diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-24 00:17:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-24 00:17:11 +0000 |
commit | 13a935b0baf3990eed76486e0f47c1d574f2f916 (patch) | |
tree | b1e4d0de5ae56c17dfcd3c6e76bc356d6564d6dd /file.c | |
parent | f7847ecb7233402d499febd6414ac34400d7b65c (diff) |
Drop support for BeOS
* beos: Drop support for BeOS now that Haiku is stable.
[Fix GH-1112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -120,33 +120,6 @@ int flock(int, int); #define STAT(p, s) stat((p), (s)) #endif -#if defined(__BEOS__) /* should not change ID if -1 */ -static int -be_chown(const char *path, uid_t owner, gid_t group) -{ - if (owner == (uid_t)-1 || group == (gid_t)-1) { - struct stat st; - if (STAT(path, &st) < 0) return -1; - if (owner == (uid_t)-1) owner = st.st_uid; - if (group == (gid_t)-1) group = st.st_gid; - } - return chown(path, owner, group); -} -#define chown be_chown -static int -be_fchown(int fd, uid_t owner, gid_t group) -{ - if (owner == (uid_t)-1 || group == (gid_t)-1) { - struct stat st; - if (fstat(fd, &st) < 0) return -1; - if (owner == (uid_t)-1) owner = st.st_uid; - if (group == (gid_t)-1) group = st.st_gid; - } - return fchown(fd, owner, group); -} -#define fchown be_fchown -#endif /* __BEOS__ */ - VALUE rb_cFile; VALUE rb_mFileTest; VALUE rb_cStat; |