summaryrefslogtreecommitdiffstats
path: root/libutil
diff options
context:
space:
mode:
authorGuy Helmer <ghelmer@FreeBSD.org>2012-01-12 14:40:25 +0000
committerGuy Helmer <ghelmer@FreeBSD.org>2012-01-12 14:40:25 +0000
commit7edffb98b4ef7dad5becb42359a4edf0852ec003 (patch)
tree2a994de16e83dd7eaeaf33cb12417cb11ebc9797 /libutil
parent77bf89c82612a70ca99594d1f52ff803e690ddb0 (diff)
downloadpw-darwin-7edffb98b4ef7dad5becb42359a4edf0852ec003.tar.gz
pw-darwin-7edffb98b4ef7dad5becb42359a4edf0852ec003.tar.zst
pw-darwin-7edffb98b4ef7dad5becb42359a4edf0852ec003.zip
More prototype formatting fixes, struct member formatting fixes,
and namespace fix for property_find() prototype. Provided by bde.
Diffstat (limited to 'libutil')
-rw-r--r--libutil/libutil.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h
index 5e6721d..af29d33 100644
--- a/libutil/libutil.h
+++ b/libutil/libutil.h
@@ -69,8 +69,8 @@ typedef __uid_t uid_t;
/* for properties.c */
typedef struct _property {
struct _property *next;
- char *name;
- char *value;
+ char *name;
+ char *value;
} *properties;
#ifdef _SYS_PARAM_H_
@@ -121,7 +121,7 @@ int openpty(int *_amaster, int *_aslave, char *_name,
void properties_free(properties _list);
char *property_find(properties _list, const char *_name);
properties
- properties_read(int fd);
+ properties_read(int _fd);
int realhostname(char *_host, size_t _hsize, const struct in_addr *_ip);
int realhostname_sa(char *_host, size_t _hsize, struct sockaddr *_addr,
int _addrlen);
@@ -139,8 +139,10 @@ char *fparseln(FILE *_fp, size_t *_len, size_t *_lineno,
#endif
#ifdef _PWD_H_
-int pw_copy(int _ffd, int _tfd, const struct passwd *_pw, struct passwd *_old_pw);
-struct passwd *pw_dup(const struct passwd *_pw);
+int pw_copy(int _ffd, int _tfd, const struct passwd *_pw,
+ struct passwd *_old_pw);
+struct passwd
+ *pw_dup(const struct passwd *_pw);
int pw_edit(int _notsetuid);
int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2);
void pw_fini(void);
@@ -149,21 +151,26 @@ char *pw_make(const struct passwd *_pw);
char *pw_make_v7(const struct passwd *_pw);
int pw_mkdb(const char *_user);
int pw_lock(void);
-struct passwd *pw_scan(const char *_line, int _flags);
-const char *pw_tempname(void);
+struct passwd
+ *pw_scan(const char *_line, int _flags);
+const char
+ *pw_tempname(void);
int pw_tmp(int _mfd);
#endif
#ifdef _GRP_H_
-int gr_copy(int __ffd, int _tfd, const struct group *_gr, struct group *_old_gr);
-struct group *gr_dup(const struct group *_gr);
+int gr_copy(int __ffd, int _tfd, const struct group *_gr,
+ struct group *_old_gr);
+struct group
+ *gr_dup(const struct group *_gr);
int gr_equal(const struct group *_gr1, const struct group *_gr2);
void gr_fini(void);
int gr_init(const char *_dir, const char *_master);
int gr_lock(void);
char *gr_make(const struct group *_gr);
int gr_mkdb(void);
-struct group *gr_scan(const char *_line);
+struct group
+ *gr_scan(const char *_line);
int gr_tmp(int _mdf);
#endif