diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-05-28 23:17:09 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-05-28 23:17:09 +0000 |
commit | 7d4c57970ebf24fd93485cff39e31d2e3b245fd3 (patch) | |
tree | c5876f483535cf4a54fa4990b807790607eb7a24 /libutil | |
parent | cead63eb2b14f40478825861024295c9c9c5fa80 (diff) | |
download | pw-darwin-7d4c57970ebf24fd93485cff39e31d2e3b245fd3.tar.gz pw-darwin-7d4c57970ebf24fd93485cff39e31d2e3b245fd3.tar.zst pw-darwin-7d4c57970ebf24fd93485cff39e31d2e3b245fd3.zip |
Add uu_lock_txfr() to transfer ownership of a successful
uu_lock() to another process.
Diffstat (limited to 'libutil')
-rw-r--r-- | libutil/libutil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index 8a96284..513acee 100644 --- a/libutil/libutil.h +++ b/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_ */ |