summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-10-07 17:32:49 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-10-07 17:32:49 +0000
commit4e5407a398a455f2228e248615c16735ca644191 (patch)
tree653f0a793b9631bd47d2962d70a3e5b64c749c0b /libutil
parentcc0899915911f05d7f8bf8293418d747037ade1b (diff)
downloadpw-darwin-4e5407a398a455f2228e248615c16735ca644191.tar.gz
pw-darwin-4e5407a398a455f2228e248615c16735ca644191.tar.zst
pw-darwin-4e5407a398a455f2228e248615c16735ca644191.zip
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 'libutil')
-rw-r--r--libutil/libutil.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index da128d9..f21cbb4 100644
--- a/libutil/libutil.h
+++ b/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)