summaryrefslogtreecommitdiff
path: root/lib/libutil/util.h
diff options
context:
space:
mode:
authorbri <bri@cvs.openbsd.org>1997-11-09 00:29:16 +0000
committerbri <bri@cvs.openbsd.org>1997-11-09 00:29:16 +0000
commit017805af52492bcb67d5fb900fdc9cd1f82fffda (patch)
tree8c5a9b6d0f4807689a09fc23b697321e7d132727 /lib/libutil/util.h
parent9ac9fd20d2445835cd50e8395cc74d7dfe6bba37 (diff)
Introduce uu_lock(), uu_unlock() and uu_lockerr()
into libutil. Obtained from: FreeBSD Reviewed by: Theo
Diffstat (limited to 'lib/libutil/util.h')
-rw-r--r--lib/libutil/util.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libutil/util.h b/lib/libutil/util.h
index acadd530050..9fd98e23862 100644
--- a/lib/libutil/util.h
+++ b/lib/libutil/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.6 1997/06/17 10:10:43 niklas Exp $ */
+/* $OpenBSD: util.h,v 1.7 1997/11/09 00:29:14 bri Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@@ -76,6 +76,18 @@ int getmaxpartitions __P((void));
int getrawpartition __P((void));
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_unlock __P((const char *_ttyname));
__END_DECLS
+#define UU_LOCK_INUSE (1)
+#define UU_LOCK_OK (0)
+#define UU_LOCK_OPEN_ERR (-1)
+#define UU_LOCK_READ_ERR (-2)
+#define UU_LOCK_CREAT_ERR (-3)
+#define UU_LOCK_WRITE_ERR (-4)
+#define UU_LOCK_LINK_ERR (-5)
+#define UU_LOCK_TRY_ERR (-6)
+
#endif /* !_UTIL_H_ */