requires=
classes=Fcntl
methods=
sublibraries=
is_sublibrary=false

եǥץ򰷤 Unix Υƥॳ [[m:IO#fcntl]] (Ĥޤ
[[man:fcntl(2)]]) ǻѤǤ򽸤᤿⥸塼Ǥ


:
    require "fcntl"
    m = s.fcntl(Fcntl::F_GETFL, 0)
    f.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK|m)
    
    require 'fcntl'
    
    fd = IO::sysopen('/tmp/tempfile', 
         Fcntl::O_WRONLY | Fcntl::O_EXCL | Fcntl::O_CREAT)
    f = IO.open(fd)
    f.syswrite("TEMP DATA")
    
    f.close
