summaryrefslogtreecommitdiff
path: root/fml/lib/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-01-13 15:46:52 +0000
committerfukachan <fukachan>2002-01-13 15:46:52 +0000
commitadce1812dc06d743a8c4b357ea618bd94bc2476c (patch)
tree807db733f8b2492240fd28ffb6549fd199554fbd /fml/lib/File
parent4fc7f2150a42e9ee40c87a74a06d56360a7e2668 (diff)
downloadfml8-adce1812dc06d743a8c4b357ea618bd94bc2476c.tar.gz
fml8-adce1812dc06d743a8c4b357ea618bd94bc2476c.tar.bz2
fml8-adce1812dc06d743a8c4b357ea618bd94bc2476c.zip
use Fcntl qw(:DEFAULT :flock), remove LOCK_XX() definitions.
Diffstat (limited to 'fml/lib/File')
-rw-r--r--fml/lib/File/SimpleLock.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/fml/lib/File/SimpleLock.pm b/fml/lib/File/SimpleLock.pm
index 07952f43..4dbc1d04 100644
--- a/fml/lib/File/SimpleLock.pm
+++ b/fml/lib/File/SimpleLock.pm
@@ -2,7 +2,7 @@
#
# Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi
#
-# $FML: SimpleLock.pm,v 1.10 2002/01/13 05:57:41 fukachan Exp $
+# $FML: SimpleLock.pm,v 1.11 2002/01/13 06:59:50 fukachan Exp $
#
package File::SimpleLock;
@@ -43,12 +43,7 @@ unlock flock(2) for $args->{ file };
=cut
-# constants
-use POSIX qw(EAGAIN ENOENT EEXIST O_EXCL O_CREAT O_RDONLY O_WRONLY);
-sub LOCK_SH {1;}
-sub LOCK_EX {2;}
-sub LOCK_NB {4;}
-sub LOCK_UN {8;}
+use Fcntl qw(:DEFAULT :flock);
# Descriptions: standard constructor.