[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    Fcntl::Lock
From:       ara.t.howard () noaa ! gov
Date:       2006-02-14 4:34:59
Message-ID: Pine.LNX.4.62.0602132126500.17565 () harp ! ngdc ! noaa ! gov
[Download RAW message or body]


i was thinking about patching io.c and ext/fcntl/fcntl.c so one could do


   require "fcntl"

   include Fcntl

   lock = Lock::new "type" => F_WRLCK, "whence" => SEEK_CUR

   io.fcntl F_SETLK, lock

etc.

Array#pack is not sufficient since the order of a 'struct lock' cannot be
ensured.

thoughts?

-a

-- 
judge your success by what you had to give up in order to get it.
- h.h. the 14th dali lama

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic