summaryrefslogtreecommitdiff
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-05-10 19:33:07 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-05-10 19:33:07 +0000
commitccd4f86e061e3ecde5461adf9178a1be85124072 (patch)
tree865753fab33c040b0f8c245309729fea5aaf70e8 /lib/libutil/libutil.h
parentd092a4ec4550260927ddc1759fa9e87117530e6f (diff)
Notes
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 3f32d7ac0c06..f6d6e283babe 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$
+ * $Id: libutil.h,v 1.1 1996/01/01 08:27:37 peter Exp $
*/
#ifndef _LIBUTIL_H_
@@ -39,6 +39,19 @@ int logout __P((char *line));
void logwtmp __P((char *line, char *name, char *host));
int openpty __P((int *amaster, int *aslave, char *name,
struct termios *termp, struct winsize *winp));
+int forkpty __P((int *amaster, char *name,
+ struct termios *termp, struct winsize *winp));
+char *uu_lockerr __P((int uu_lockresult));
+int uu_lock __P((char *ttyname));
+int uu_unlock __P((char *ttyname));
+int _secure_path __P((const char *path, uid_t uid, gid_t gid));
__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_SEEK_ERR (-3)
+#define UU_LOCK_WRITE_ERR (-4)
+
#endif /* !_LIBUTIL_H_ */