Feature #4464

[PATCH] add Fcntl::Flock object for easier use of POSIX file locks

Added by Eric Wong about 3 years ago. Updated over 1 year ago.

[ruby-core:35419]
Status:Assigned
Priority:Normal
Assignee:Motohiro KOSAKI
Category:ext
Target version:next minor

Description

=begin
This is a subclass of String so it is compatible with
IO#fcntl without needing to modify io.c for systems
that don't have POSIX file locks.
=end

0001-add-Fcntl-Flock-object-for-easier-use-of-POSIX-file-.patch Magnifier (7.29 KB) Eric Wong, 03/04/2011 04:42 AM

0001-add-Fcntl-Flock-object-for-easier-use-of-POSIX-file-.patch Magnifier (7.3 KB) Eric Wong, 03/04/2011 07:05 AM

0001-add-Fcntl-Lock-object-for-easier-use-of-POSIX-file-l.patch Magnifier - v3 of the patch (13.1 KB) Eric Wong, 03/15/2011 04:53 AM

History

#1 Updated by Eric Wong about 3 years ago

=begin
updated patch to fix signedness warnings since I fixed warnflags with 4465
=end

#2 Updated by Eric Wong about 3 years ago

=begin
This revised patch makes the API easier to use with the
following changes:

  • renamed Fcntl::Flock -> Fcntl::Lock
  • Fcntl::Lock.synchronize {} and Fcntl::Lock.get helpers
  • ability to specify constants via :symbol (like 1.9.2+ Socket)
  • RDoc + examples

ref: ,

=end

#3 Updated by Eric Wong about 3 years ago

=begin
mis-attached patch in previous comment
=end

#4 Updated by Motohiro KOSAKI about 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Motohiro KOSAKI

=begin
I'd like to review this as soon as I get some time. But sorry, now I don't have.
=end

#5 Updated by Motohiro KOSAKI almost 3 years ago

  • Target version changed from 1.9.3 to 2.0.0

#6 Updated by Motohiro KOSAKI over 1 year ago

  • Target version changed from 2.0.0 to next minor

Also available in: Atom PDF