libutil.h (36660) | libutil.h (40040) |
---|---|
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.15 1998/06/01 08:46:52 amurai Exp $ | 21 * $Id: libutil.h,v 1.16 1998/06/05 08:21:33 ache Exp $ |
22 */ 23 24#ifndef _LIBUTIL_H_ 25#define _LIBUTIL_H_ 26 | 22 */ 23 24#ifndef _LIBUTIL_H_ 25#define _LIBUTIL_H_ 26 |
27#include <stdio.h> |
|
27#include <sys/cdefs.h> 28 | 28#include <sys/cdefs.h> 29 |
30/* for properties.c */ 31typedef struct _property { 32 struct _property *next; 33 char *name; 34 char *value; 35} *properties; 36 37/* for auth.c */ 38#define _PATH_AUTHCONF "/etc/auth.conf" 39 |
|
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)); --- 5 unchanged lines hidden (view full) --- 42 struct termios *_termp, struct winsize *_winp)); 43int forkpty __P((int *_amaster, char *_name, 44 struct termios *_termp, struct winsize *_winp)); 45const char *uu_lockerr __P((int _uu_lockresult)); 46int uu_lock __P((const char *_ttyname)); 47int uu_unlock __P((const char *_ttyname)); 48int uu_lock_txfr __P((const char *_ttyname, pid_t _pid)); 49int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid)); | 40/* Avoid pulling in all the include files for no need */ 41struct termios; 42struct winsize; 43struct utmp; 44 45__BEGIN_DECLS 46void setproctitle __P((const char *_fmt, ...)); 47void login __P((struct utmp *_ut)); --- 5 unchanged lines hidden (view full) --- 53 struct termios *_termp, struct winsize *_winp)); 54int forkpty __P((int *_amaster, char *_name, 55 struct termios *_termp, struct winsize *_winp)); 56const char *uu_lockerr __P((int _uu_lockresult)); 57int uu_lock __P((const char *_ttyname)); 58int uu_unlock __P((const char *_ttyname)); 59int uu_lock_txfr __P((const char *_ttyname, pid_t _pid)); 60int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid)); |
61properties properties_read __P((FILE *fp)); 62void properties_free __P((properties list)); 63char *property_find __P((properties list, const char *name)); 64char *auth_getval __P((const char *name)); |
|
50__END_DECLS 51 52#define UU_LOCK_INUSE (1) 53#define UU_LOCK_OK (0) 54#define UU_LOCK_OPEN_ERR (-1) 55#define UU_LOCK_READ_ERR (-2) 56#define UU_LOCK_CREAT_ERR (-3) 57#define UU_LOCK_WRITE_ERR (-4) 58#define UU_LOCK_LINK_ERR (-5) 59#define UU_LOCK_TRY_ERR (-6) 60#define UU_LOCK_OWNER_ERR (-7) 61 62#endif /* !_LIBUTIL_H_ */ | 65__END_DECLS 66 67#define UU_LOCK_INUSE (1) 68#define UU_LOCK_OK (0) 69#define UU_LOCK_OPEN_ERR (-1) 70#define UU_LOCK_READ_ERR (-2) 71#define UU_LOCK_CREAT_ERR (-3) 72#define UU_LOCK_WRITE_ERR (-4) 73#define UU_LOCK_LINK_ERR (-5) 74#define UU_LOCK_TRY_ERR (-6) 75#define UU_LOCK_OWNER_ERR (-7) 76 77#endif /* !_LIBUTIL_H_ */ |