uucplock.3 (84dc22996da39f0d729487f9223011ec189d020f) uucplock.3 (bf5cbf35513d811c5829f8756a46eeb017a0a39b)
1.\"
2.\" Copyright (c) 1996 Brian Somers <brian@awfulhak.demon.co.uk>
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
1.\"
2.\" Copyright (c) 1996 Brian Somers <brian@awfulhak.demon.co.uk>
3.\"
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:

--- 9 unchanged lines hidden (view full) ---

18.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $Id: uucplock.3,v 1.7 1997/05/12 10:36:14 brian Exp $
26.\" $Id: uucplock.3,v 1.8 1997/08/10 18:42:38 ache Exp $
27.\" "
28.Dd March 30, 1997
29.Os
30.Dt uucplock 3
31.Sh NAME
32.Nm uu_lock ,
33.Nm uu_unlock ,
34.Nm uu_lockerr

--- 106 unchanged lines hidden (view full) ---

141.Fn uu_unlock
142will set the global variable
143.Va errno
144to reflect the reason that the lock file could not be removed.
145Refer to the description of
146.Xr unlink 2
147for further details.
148.Sh SEE ALSO
27.\" "
28.Dd March 30, 1997
29.Os
30.Dt uucplock 3
31.Sh NAME
32.Nm uu_lock ,
33.Nm uu_unlock ,
34.Nm uu_lockerr

--- 106 unchanged lines hidden (view full) ---

141.Fn uu_unlock
142will set the global variable
143.Va errno
144to reflect the reason that the lock file could not be removed.
145Refer to the description of
146.Xr unlink 2
147for further details.
148.Sh SEE ALSO
149.Xr lseek 2 ,
149.Xr open 2 ,
150.Xr read 2 ,
150.Xr open 2 ,
151.Xr read 2 ,
151.Xr lseek 2 ,
152.Xr write 2
153.Sh BUGS
154Locking is not atomic. Should a race condition occur, it's
155possible that the
156.Dq losing
157process fails to identify the
158.Dq winning
159process. If this happens,

--- 15 unchanged lines hidden ---
152.Xr write 2
153.Sh BUGS
154Locking is not atomic. Should a race condition occur, it's
155possible that the
156.Dq losing
157process fails to identify the
158.Dq winning
159process. If this happens,

--- 15 unchanged lines hidden ---