libutil.h revision 21673
1/*
2 * Copyright (c) 1995 Peter Wemm <peter@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, is permitted provided that the following conditions
7 * are met:
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
17 *    Peter Wemm.
18 * 5. Modifications may be freely made to this file providing the above
19 *    conditions are met.
20 *
21 * $FreeBSD: head/lib/libutil/libutil.h 21673 1997-01-14 07:20:47Z jkh $
22 */
23
24#ifndef _LIBUTIL_H_
25#define	_LIBUTIL_H_
26
27#include <sys/cdefs.h>
28
29/* Avoid pulling in all the include files for no need */
30struct termios;
31struct winsize;
32struct utmp;
33
34__BEGIN_DECLS
35void	setproctitle __P((const char *fmt, ...));
36void	login __P((struct utmp *ut));
37int	login_tty __P((int fd));
38int	logout __P((char *line));
39void	logwtmp __P((char *line, char *name, char *host));
40int	openpty __P((int *amaster, int *aslave, char *name,
41		     struct termios *termp, struct winsize *winp));
42int	forkpty __P((int *amaster, char *name,
43		     struct termios *termp, struct winsize *winp));
44__END_DECLS
45
46#endif /* !_LIBUTIL_H_ */
47