diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-07 03:24:11 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-07 03:24:11 +0000 |
| commit | d9bf7c3bd1583e4fef7bac6f8a7eb8f787308f2e (patch) | |
| tree | 0253d3b8be9d4d49071dc164c45479209def2f2e /ext/fcntl | |
| parent | 9a3705a623e477727cfd23bd0920730db28c5594 (diff) | |
| download | ruby-d9bf7c3bd1583e4fef7bac6f8a7eb8f787308f2e.tar.gz ruby-d9bf7c3bd1583e4fef7bac6f8a7eb8f787308f2e.tar.xz ruby-d9bf7c3bd1583e4fef7bac6f8a7eb8f787308f2e.zip | |
* ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::ACCMODE.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fcntl')
| -rw-r--r-- | ext/fcntl/fcntl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c index de0b284b3..ca7b12bde 100644 --- a/ext/fcntl/fcntl.c +++ b/ext/fcntl/fcntl.c @@ -104,4 +104,9 @@ Init_fcntl() #ifdef O_WRONLY rb_define_const(mFcntl, "O_WRONLY", INT2NUM(O_WRONLY)); #endif +#ifdef O_ACCMODE + rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_ACCMODE)); +#else + rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR)); +#endif } |
