Deleted Added
full compact
libutil.h (24461) libutil.h (25670)
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

--- 4 unchanged lines hidden (view full) ---

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 *
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

--- 4 unchanged lines hidden (view full) ---

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 * $Id: libutil.h,v 1.5 1997/03/30 12:11:27 brian Exp $
21 * $Id: libutil.h,v 1.6 1997/03/31 22:47:53 brian Exp $
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 */

--- 9 unchanged lines hidden (view full) ---

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));
44char *uu_lockerr __P((int uu_lockresult));
45int uu_lock __P((char *ttyname));
46int uu_unlock __P((char *ttyname));
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 */

--- 9 unchanged lines hidden (view full) ---

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));
44char *uu_lockerr __P((int uu_lockresult));
45int uu_lock __P((char *ttyname));
46int uu_unlock __P((char *ttyname));
47int _secure_path __P((const char *path, uid_t uid, gid_t gid));
47__END_DECLS
48
49#define UU_LOCK_INUSE (1)
50#define UU_LOCK_OK (0)
51#define UU_LOCK_OPEN_ERR (-1)
52#define UU_LOCK_READ_ERR (-2)
53#define UU_LOCK_SEEK_ERR (-3)
54#define UU_LOCK_WRITE_ERR (-4)
55
56#endif /* !_LIBUTIL_H_ */
48__END_DECLS
49
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_SEEK_ERR (-3)
55#define UU_LOCK_WRITE_ERR (-4)
56
57#endif /* !_LIBUTIL_H_ */