1 --- _SB/Libc/stdio/FreeBSD/flockfile.3 2003-05-20 15:22:41.000000000 -0700
2 +++ _SB/Libc/stdio/FreeBSD/flockfile.3.edit 2006-06-28 16:55:52.000000000 -0700
7 -.Fn flockfile "FILE *stream"
8 +.Fn flockfile "FILE *file"
10 -.Fn ftrylockfile "FILE *stream"
11 +.Fn ftrylockfile "FILE *file"
13 -.Fn funlockfile "FILE *stream"
14 +.Fn funlockfile "FILE *file"
16 -These functions provide explicit application-level locking of stdio streams.
17 +These functions provide explicit application-level locking
18 +of stdio FILE objects.
19 They can be used to avoid output from multiple threads being interspersed,
20 input being dispersed among multiple readers, and to avoid the overhead
21 -of locking the stream for each operation.
22 +of locking the object for each operation.
26 -function acquires an exclusive lock on the specified stream.
27 -If another thread has already locked the stream,
28 +function acquires an exclusive lock on the specified object.
29 +If another thread has already locked the object,
31 will block until the lock is released.
37 -function releases the lock on a stream acquired by an earlier call to
38 +function releases the lock on an object acquired by an earlier call to
43 These functions behave as if there is a lock count associated
48 -is called on the stream, the count is incremented,
49 +is called on the object, the count is incremented,
52 -is called on the stream, the count is decremented.
53 +is called on the object, the count is decremented.
54 The lock is only actually released when the count reaches zero.
61 -returns zero if the stream was successfully locked,
62 +returns zero if the object was successfully locked,