]> pd.if.org Git - pdclib/blobdiff - man3/flockfile.3
dos2unix
[pdclib] / man3 / flockfile.3
index 8473fa9cf0e392228672f08e390f5135bbf13f36..bfc9adcf4b9e5c54dc7cd94c531d4b43d04ec9b2 100644 (file)
@@ -1,56 +1,56 @@
-.\" This file is part of the Public Domain C Library (PDCLib).\r
-.\" Permission is granted to use, modify, and / or redistribute at will.\r
-.\"\r
-.Dd\r
-.Dt flockfile 3\r
-.Os\r
-.\"\r
-.Sh NAME\r
-.Nm flockfile, ftrylockfile, funlockfile\r
-.Nd stdio file locking\r
-.\"\r
-.Sh SYNOPSIS\r
-.Sy #define _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || _SVID_SOURCE || _BSD_SOURCE\r
-.\"\r
-.In stdio.h\r
-.Fn "void flockfile" "FILE *file"\r
-.Fn "int ftrylockfile" "FILE *file"\r
-.Fn "void funlockfile" "FILE *file"\r
-.\"\r
-.Sh DESCRIPTION\r
-.Fn flockfile\r
-locks the passed FILE stream for access by the calling thread, potentially \r
-blocking. \r
-.Fn ftrylockfile\r
-attempts to lock the file for the calling thread, but will return failure if\r
-another thread has already locked the file.\r
-.Fn funlockfile\r
-releases the lock on the stream, allowing another thread in the process to \r
-access it.\r
-.\"\r
-.Pp\r
-The same stream may be locked multiple times by the calling thread; the number \r
-of calls to \r
-.Fn flockfile \r
-and \r
-.Fn ftrylockfile\r
-on a file must be equal to the number of calls to\r
-.Fn funlockfile .\r
-.\"\r
-.Pp\r
-No other thread may do I/O through the locked file while it is locked.\r
-.\"\r
-.Sh IMPLEMENTATION NOTES\r
-PDCLib implements the file locking on top of the Mutex primitives added by C11\r
-.\"\r
-.Sh SEE ALSO\r
-.Xr fopen 3\r
-.Xr fclose 3\r
-.Xr unlocked_stdio 3\r
-.Xr mtx_t 3\r
-.\"\r
-.Sh STANDARDS\r
-The locked I/O routines were initially introduced in \r
-.St -svid4 ,\r
-and incorporated into POSIX in \r
+.\" This file is part of the Public Domain C Library (PDCLib).
+.\" Permission is granted to use, modify, and / or redistribute at will.
+.\"
+.Dd
+.Dt flockfile 3
+.Os
+.\"
+.Sh NAME
+.Nm flockfile, ftrylockfile, funlockfile
+.Nd stdio file locking
+.\"
+.Sh SYNOPSIS
+.Sy #define _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || _SVID_SOURCE || _BSD_SOURCE
+.\"
+.In stdio.h
+.Fn "void flockfile" "FILE *file"
+.Fn "int ftrylockfile" "FILE *file"
+.Fn "void funlockfile" "FILE *file"
+.\"
+.Sh DESCRIPTION
+.Fn flockfile
+locks the passed FILE stream for access by the calling thread, potentially 
+blocking. 
+.Fn ftrylockfile
+attempts to lock the file for the calling thread, but will return failure if
+another thread has already locked the file.
+.Fn funlockfile
+releases the lock on the stream, allowing another thread in the process to 
+access it.
+.\"
+.Pp
+The same stream may be locked multiple times by the calling thread; the number 
+of calls to 
+.Fn flockfile 
+and 
+.Fn ftrylockfile
+on a file must be equal to the number of calls to
+.Fn funlockfile .
+.\"
+.Pp
+No other thread may do I/O through the locked file while it is locked.
+.\"
+.Sh IMPLEMENTATION NOTES
+PDCLib implements the file locking on top of the Mutex primitives added by C11
+.\"
+.Sh SEE ALSO
+.Xr fopen 3
+.Xr fclose 3
+.Xr unlocked_stdio 3
+.Xr mtx_t 3
+.\"
+.Sh STANDARDS
+The locked I/O routines were initially introduced in 
+.St -svid4 ,
+and incorporated into POSIX in 
 .St -p1003.1-2001 .
\ No newline at end of file