From: Jos Backus Date: 2004-12-09T13:00:28+09:00 Subject: Re: [patch] Obtaining mode information on an IO object On Thu, Dec 09, 2004 at 10:47:48AM +0900, nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 9 Dec 2004 10:01:53 +0900, > James Britt wrote in [ruby-core:03925]: > > What is "accmode" suppose to be indicate? "Access mode?" If that's the > > case, can it just be called "access_mode" ? > > > > Or is there a requirement for consistency with some historical Unix > > terseness? > > Yes, it came from O_ACCMODE. > cf. http://www.opengroup.org/onlinepubs/007908799/xsh/fcntl.h.html > > And ruby also has it. > $ ruby -rfcntl -e 'p Fcntl::O_ACCMODE' > 3 Hm, then again that in turn is a good argument for sticking with `accmode', as it conforms to a known standard at least. Plus it's not too cryptic, is it? Either way, I'm happy :) -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at catnook.com _/_/ _/_/_/ require 'std/disclaimer'