diff options
author | 1998-06-08 20:28:23 +0000 | |
---|---|---|
committer | 1998-06-08 20:28:23 +0000 | |
commit | 709dd3e49f8b667c62f9522c65e9392b50567962 (patch) | |
tree | 2949a410f068cd45aa3e8a6a75e9352e69be717b /lib/libutil/util.h | |
parent | use endptr in a strtl() (diff) | |
download | wireguard-openbsd-709dd3e49f8b667c62f9522c65e9392b50567962.tar.xz wireguard-openbsd-709dd3e49f8b667c62f9522c65e9392b50567962.zip |
Add uu_lock_txfr() for donating locks to another process.
Reviewed by: Theo
Diffstat (limited to 'lib/libutil/util.h')
-rw-r--r-- | lib/libutil/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libutil/util.h b/lib/libutil/util.h index 9fd98e23862..3f40ce91d0f 100644 --- a/lib/libutil/util.h +++ b/lib/libutil/util.h @@ -1,4 +1,4 @@ -/* $OpenBSD: util.h,v 1.7 1997/11/09 00:29:14 bri Exp $ */ +/* $OpenBSD: util.h,v 1.8 1998/06/08 20:28:28 brian Exp $ */ /* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */ /*- @@ -78,6 +78,7 @@ void login_fbtab __P((char *, uid_t, gid_t)); char *readlabelfs __P((char *, int)); 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)); __END_DECLS @@ -89,5 +90,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 /* !_UTIL_H_ */ |