summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-05-28 23:17:09 +0000
committerbrian <brian@FreeBSD.org>1998-05-28 23:17:09 +0000
commitf320a1dcb71e3195a3a9ab924dd4f60db4c3ac53 (patch)
tree1d26f17a62e7ee5f285608c48bd75d5c87092973 /lib/libutil/libutil.h
parentf0bbc1adc545f86776a2ecc51a460599ad4bbc9a (diff)
downloadFreeBSD-src-f320a1dcb71e3195a3a9ab924dd4f60db4c3ac53.zip
FreeBSD-src-f320a1dcb71e3195a3a9ab924dd4f60db4c3ac53.tar.gz
Add uu_lock_txfr() to transfer ownership of a successful
uu_lock() to another process.
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 8a96284..513acee 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file providing the above
* conditions are met.
*
- * $Id: libutil.h,v 1.12 1997/08/31 20:09:38 brian Exp $
+ * $Id: libutil.h,v 1.13 1997/09/04 22:38:58 pst Exp $
*/
#ifndef _LIBUTIL_H_
@@ -43,6 +43,7 @@ int forkpty __P((int *_amaster, char *_name,
struct termios *_termp, struct winsize *_winp));
const char *uu_lockerr __P((int _uu_lockresult));
int uu_lock __P((const char *_ttyname));
+int uu_lock_txfr __P((const char *_ttyname, pid_t _pid));
int uu_unlock __P((const char *_ttyname));
int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
__END_DECLS
@@ -55,5 +56,6 @@ __END_DECLS
#define UU_LOCK_WRITE_ERR (-4)
#define UU_LOCK_LINK_ERR (-5)
#define UU_LOCK_TRY_ERR (-6)
+#define UU_LOCK_OWNER_ERR (-7)
#endif /* !_LIBUTIL_H_ */
OpenPOWER on IntegriCloud