Project

General

Profile

Actions

Feature #4464

open

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

Added by normalperson (Eric Wong) about 13 years ago. Updated about 6 years ago.

Status:
Assigned
Target version:
-
[ruby-core:35419]

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


Files

Updated by normalperson (Eric Wong) about 13 years ago

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

Updated by normalperson (Eric Wong) about 13 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: [ruby-core:35428], [ruby-core:35429]

=end

Updated by kosaki (Motohiro KOSAKI) about 13 years ago

  • Status changed from Open to Assigned
  • Assignee set to kosaki (Motohiro KOSAKI)

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

Updated by kosaki (Motohiro KOSAKI) over 12 years ago

  • Target version changed from 1.9.3 to 2.0.0

Updated by kosaki (Motohiro KOSAKI) over 11 years ago

  • Target version changed from 2.0.0 to 2.6
Actions #7

Updated by naruse (Yui NARUSE) about 6 years ago

  • Target version deleted (2.6)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0