|
@ -1,4 +1,4 @@ |
|
|
.\" $OpenBSD: uucplock.3,v 1.8 2000/03/28 22:41:42 deraadt Exp $ |
|
|
|
|
|
|
|
|
.\" $OpenBSD: uucplock.3,v 1.9 2000/04/15 02:15:29 aaron Exp $ |
|
|
.\" |
|
|
.\" |
|
|
.\" All rights reserved. |
|
|
.\" All rights reserved. |
|
|
.\" |
|
|
.\" |
|
@ -85,33 +85,33 @@ returns 0 on success and \-1 on failure. |
|
|
.Fn uu_lock |
|
|
.Fn uu_lock |
|
|
may return any of the following values: |
|
|
may return any of the following values: |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_INUSE: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_INUSE : |
|
|
The lock is in use by another process. |
|
|
The lock is in use by another process. |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_OK: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_OK : |
|
|
The lock was successfully created. |
|
|
The lock was successfully created. |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_OPEN_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_OPEN_ERR : |
|
|
The lock file could not be opened via |
|
|
The lock file could not be opened via |
|
|
.Xr open 2 . |
|
|
.Xr open 2 . |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_READ_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_READ_ERR : |
|
|
The lock file could not be read via |
|
|
The lock file could not be read via |
|
|
.Xr read 2 . |
|
|
.Xr read 2 . |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_CREAT_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_CREAT_ERR : |
|
|
Can't create temporary lock file via |
|
|
Can't create temporary lock file via |
|
|
.Xr creat 2 . |
|
|
.Xr creat 2 . |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_WRITE_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_WRITE_ERR : |
|
|
The current process ID could not be written to the lock file via a call to |
|
|
The current process ID could not be written to the lock file via a call to |
|
|
.Xr write 2 . |
|
|
.Xr write 2 . |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_LINK_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_LINK_ERR : |
|
|
Can't link temporary lock file via |
|
|
Can't link temporary lock file via |
|
|
.Xr link 2 . |
|
|
.Xr link 2 . |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_TRY_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_TRY_ERR : |
|
|
Locking attempts are failed after 5 tries. |
|
|
Locking attempts are failed after 5 tries. |
|
|
.Pp |
|
|
.Pp |
|
|
If a value of |
|
|
If a value of |
|
@ -134,14 +134,14 @@ and |
|
|
.Fn uu_lock_txfr |
|
|
.Fn uu_lock_txfr |
|
|
may return any of the following values: |
|
|
may return any of the following values: |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_OK: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_OK : |
|
|
The transfer was successful. The specified process now holds the device |
|
|
The transfer was successful. The specified process now holds the device |
|
|
lock. |
|
|
lock. |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_OWNER_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_OWNER_ERR : |
|
|
The current process does not already own a lock on the specified device. |
|
|
The current process does not already own a lock on the specified device. |
|
|
.Pp |
|
|
.Pp |
|
|
.Dv UU_LOCK_WRITE_ERR: |
|
|
|
|
|
|
|
|
.Dv UU_LOCK_WRITE_ERR : |
|
|
The new process ID could not be written to the lock file via a call to |
|
|
The new process ID could not be written to the lock file via a call to |
|
|
.Xr write 2 . |
|
|
.Xr write 2 . |
|
|
.Sh ERRORS |
|
|
.Sh ERRORS |
|
|