]>
git.cameronkatri.com Git - pw-darwin.git/blob - libutil/libutil.h
2 * Copyright (c) 1995 Peter Wemm <peter@freebsd.org>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, is permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. This work was done expressly for inclusion into FreeBSD. Other use
15 * is permitted provided this notation is included.
16 * 4. Absolutely no warranty of function or purpose is made by the author
18 * 5. Modifications may be freely made to this file providing the above
21 * $Id: libutil.h,v 1.11 1997/08/27 20:06:19 brian Exp $
27 #include <sys/cdefs.h>
29 /* Avoid pulling in all the include files for no need */
35 void setproctitle
__P((const char *_fmt
, ...));
36 void login
__P((struct utmp
*_ut
));
37 int login_tty
__P((int _fd
));
38 int logout
__P((char *_line
));
39 void logwtmp
__P((char *_line
, char *_name
, char *_host
));
40 int openpty
__P((int *_amaster
, int *_aslave
, char *_name
,
41 struct termios
*_termp
, struct winsize
*_winp
));
42 int forkpty
__P((int *_amaster
, char *_name
,
43 struct termios
*_termp
, struct winsize
*_winp
));
44 const char *uu_lockerr
__P((int _uu_lockresult
));
45 int uu_lock
__P((const char *_ttyname
));
46 int uu_unlock
__P((const char *_ttyname
));
47 int _secure_path
__P((const char *_path
, uid_t _uid
, gid_t _gid
));
50 #define UU_LOCK_INUSE (1)
51 #define UU_LOCK_OK (0)
52 #define UU_LOCK_OPEN_ERR (-1)
53 #define UU_LOCK_READ_ERR (-2)
54 #define UU_LOCK_CREAT_ERR (-3)
55 #define UU_LOCK_WRITE_ERR (-4)
56 #define UU_LOCK_LINK_ERR (-5)
57 #define UU_LOCK_TRY_ERR (-6)
59 #endif /* !_LIBUTIL_H_ */