summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-10-07 17:32:49 +0000
committerjkh <jkh@FreeBSD.org>1998-10-07 17:32:49 +0000
commit9734dc69e1a92b5862e7e7d3410dad1432024046 (patch)
tree6fb75f6d8a008b5217ae0141e9142a649c507186 /lib/libutil/libutil.h
parent8f4fb55b8275d59a76998478e5bf4d5d79074835 (diff)
downloadFreeBSD-src-9734dc69e1a92b5862e7e7d3410dad1432024046.zip
FreeBSD-src-9734dc69e1a92b5862e7e7d3410dad1432024046.tar.gz
Add a simple mechanism for reading property lists from files (which
I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index da128d9..f21cbb4 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -18,14 +18,25 @@
* 5. Modifications may be freely made to this file providing the above
* conditions are met.
*
- * $Id: libutil.h,v 1.15 1998/06/01 08:46:52 amurai Exp $
+ * $Id: libutil.h,v 1.16 1998/06/05 08:21:33 ache Exp $
*/
#ifndef _LIBUTIL_H_
#define _LIBUTIL_H_
+#include <stdio.h>
#include <sys/cdefs.h>
+/* for properties.c */
+typedef struct _property {
+ struct _property *next;
+ char *name;
+ char *value;
+} *properties;
+
+/* for auth.c */
+#define _PATH_AUTHCONF "/etc/auth.conf"
+
/* Avoid pulling in all the include files for no need */
struct termios;
struct winsize;
@@ -47,6 +58,10 @@ int uu_lock __P((const char *_ttyname));
int uu_unlock __P((const char *_ttyname));
int uu_lock_txfr __P((const char *_ttyname, pid_t _pid));
int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
+properties properties_read __P((FILE *fp));
+void properties_free __P((properties list));
+char *property_find __P((properties list, const char *name));
+char *auth_getval __P((const char *name));
__END_DECLS
#define UU_LOCK_INUSE (1)
OpenPOWER on IntegriCloud