diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:52:33 +0000 |
commit | 2c3307fb903f427be3d021c5780b75cac9af2ce8 (patch) | |
tree | 65cf431f40b7481d81ae2dfce9576342686448f7 /upstream/opensuse-tumbleweed/man3/lockf.3 | |
parent | Releasing progress-linux version 4.22.0-1~progress7.99u1. (diff) | |
download | manpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.tar.xz manpages-l10n-2c3307fb903f427be3d021c5780b75cac9af2ce8.zip |
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/lockf.3')
-rw-r--r-- | upstream/opensuse-tumbleweed/man3/lockf.3 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/lockf.3 b/upstream/opensuse-tumbleweed/man3/lockf.3 index a4043ba5..c86895a4 100644 --- a/upstream/opensuse-tumbleweed/man3/lockf.3 +++ b/upstream/opensuse-tumbleweed/man3/lockf.3 @@ -7,7 +7,7 @@ .\" Added section stuff, aeb, 2002-04-22. .\" Corrected include file, drepper, 2003-06-15. .\" -.TH lockf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lockf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lockf \- apply, test or remove a POSIX lock on an open file .SH LIBRARY @@ -16,15 +16,15 @@ Standard C library .SH SYNOPSIS .nf .B #include <unistd.h> -.PP -.BI "int lockf(int " fd ", int " cmd ", off_t " len ); +.P +.BI "int lockf(int " fd ", int " op ", off_t " len ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR lockf (): .nf _XOPEN_SOURCE >= 500 @@ -37,7 +37,7 @@ Apply, test, or remove a POSIX lock on a section of an open file. The file is specified by .IR fd , a file descriptor open for writing, the action by -.IR cmd , +.IR op , and the section consists of byte positions .IR pos .. pos + len \-1 if @@ -53,7 +53,7 @@ is the current file position, and if is zero, the section extends from the current file position to infinity, encompassing the present and future end-of-file positions. In all cases, the section may extend past current end-of-file. -.PP +.P On Linux, .BR lockf () is just an interface on top of @@ -68,7 +68,7 @@ and locks unspecified. A portable application should probably avoid mixing calls to these interfaces. -.PP +.P Valid operations are given below: .TP .B F_LOCK @@ -118,7 +118,7 @@ been memory-mapped by another process. .B EBADF .I fd is not an open file descriptor; or -.I cmd +.I op is .B F_LOCK or @@ -128,7 +128,8 @@ and is not a writable file descriptor. .TP .B EDEADLK -The command was +.I op +was .B F_LOCK and this lock operation would cause a deadlock. .TP @@ -139,7 +140,7 @@ delivery of a signal caught by a handler; see .TP .B EINVAL An invalid operation was specified in -.IR cmd . +.IR op . .TP .B ENOLCK Too many segment locks open, lock table is full. @@ -157,7 +158,6 @@ T{ .BR lockf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -165,7 +165,7 @@ POSIX.1-2001, SVr4. .SH SEE ALSO .BR fcntl (2), .BR flock (2) -.PP +.P .I locks.txt and .I mandatory\-locking.txt |