diff options
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/fparseln.c | 4 | ||||
-rw-r--r-- | lib/libutil/libutil.h | 34 | ||||
-rw-r--r-- | lib/libutil/login_cap.h | 94 |
3 files changed, 66 insertions, 66 deletions
diff --git a/lib/libutil/fparseln.c b/lib/libutil/fparseln.c index ba7c4b4..7d62cf7 100644 --- a/lib/libutil/fparseln.c +++ b/lib/libutil/fparseln.c @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <libutil.h> -static int isescaped __P((const char *, const char *, int)); +static int isescaped(const char *, const char *, int); /* isescaped(): * Return true if the character in *p that belongs to a string @@ -199,7 +199,7 @@ fparseln(fp, size, lineno, str, flags) #ifdef TEST -int main __P((int, char **)); +int main(int, char **); int main(argc, argv) diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index aa82caa..e24f37d 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -48,33 +48,33 @@ struct utmp; struct in_addr; __BEGIN_DECLS -int extattr_namespace_to_string __P((int _attrnamespace, char **_string)); +int extattr_namespace_to_string(int _attrnamespace, char **_string); int extattr_string_to_namespace __P((const char *_string, int *_attrnamespace)); -void login __P((struct utmp *_ut)); -int login_tty __P((int _fd)); -int logout __P((const char *_line)); -void logwtmp __P((const char *_line, const char *_name, const char *_host)); -void trimdomain __P((char *_fullhost, int _hostsize)); +void login(struct utmp *_ut); +int login_tty(int _fd); +int logout(const char *_line); +void logwtmp(const char *_line, const char *_name, const char *_host); +void trimdomain(char *_fullhost, int _hostsize); int openpty __P((int *_amaster, int *_aslave, char *_name, struct termios *_termp, struct winsize *_winp)); int forkpty __P((int *_amaster, char *_name, struct termios *_termp, struct winsize *_winp)); -const char *uu_lockerr __P((int _uu_lockresult)); -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((int fd)); -void properties_free __P((properties list)); -char *property_find __P((properties list, const char *name)); -char *auth_getval __P((const char *name)); -int realhostname __P((char *host, size_t hsize, const struct in_addr *ip)); +const char *uu_lockerr(int _uu_lockresult); +int uu_lock(const char *_ttyname); +int uu_unlock(const char *_ttyname); +int uu_lock_txfr(const char *_ttyname, pid_t _pid); +int _secure_path(const char *_path, uid_t _uid, gid_t _gid); +properties properties_read(int fd); +void properties_free(properties list); +char *property_find(properties list, const char *name); +char *auth_getval(const char *name); +int realhostname(char *host, size_t hsize, const struct in_addr *ip); struct sockaddr; int realhostname_sa __P((char *host, size_t hsize, struct sockaddr *addr, int addrlen)); #ifdef _STDIO_H_ /* avoid adding new includes */ -char *fparseln __P((FILE *, size_t *, size_t *, const char[3], int)); +char *fparseln(FILE *, size_t *, size_t *, const char[3], int); #endif __END_DECLS diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h index 1320278..81983da 100644 --- a/lib/libutil/login_cap.h +++ b/lib/libutil/login_cap.h @@ -96,61 +96,61 @@ typedef struct login_time { __BEGIN_DECLS struct passwd; -void login_close __P((login_cap_t *)); -login_cap_t *login_getclassbyname __P((const char *, const struct passwd *)); -login_cap_t *login_getclass __P((const char *)); -login_cap_t *login_getpwclass __P((const struct passwd *)); -login_cap_t *login_getuserclass __P((const struct passwd *)); - -char *login_getcapstr __P((login_cap_t*, const char *, char *, char *)); -char **login_getcaplist __P((login_cap_t *, const char *, const char *)); -char *login_getstyle __P((login_cap_t *, char *, const char *)); -rlim_t login_getcaptime __P((login_cap_t *, const char *, rlim_t, rlim_t)); -rlim_t login_getcapnum __P((login_cap_t *, const char *, rlim_t, rlim_t)); -rlim_t login_getcapsize __P((login_cap_t *, const char *, rlim_t, rlim_t)); -char *login_getpath __P((login_cap_t *, const char *, char *)); -int login_getcapbool __P((login_cap_t *, const char *, int)); -const char *login_setcryptfmt __P((login_cap_t *, const char *, const char *)); - -int setclasscontext __P((const char*, unsigned int)); -int setusercontext __P((login_cap_t*, const struct passwd*, uid_t, unsigned int)); -void setclassresources __P((login_cap_t *)); -void setclassenvironment __P((login_cap_t *, const struct passwd *, int)); +void login_close(login_cap_t *); +login_cap_t *login_getclassbyname(const char *, const struct passwd *); +login_cap_t *login_getclass(const char *); +login_cap_t *login_getpwclass(const struct passwd *); +login_cap_t *login_getuserclass(const struct passwd *); + +char *login_getcapstr(login_cap_t*, const char *, char *, char *); +char **login_getcaplist(login_cap_t *, const char *, const char *); +char *login_getstyle(login_cap_t *, char *, const char *); +rlim_t login_getcaptime(login_cap_t *, const char *, rlim_t, rlim_t); +rlim_t login_getcapnum(login_cap_t *, const char *, rlim_t, rlim_t); +rlim_t login_getcapsize(login_cap_t *, const char *, rlim_t, rlim_t); +char *login_getpath(login_cap_t *, const char *, char *); +int login_getcapbool(login_cap_t *, const char *, int); +const char *login_setcryptfmt(login_cap_t *, const char *, const char *); + +int setclasscontext(const char*, unsigned int); +int setusercontext(login_cap_t*, const struct passwd*, uid_t, unsigned int); +void setclassresources(login_cap_t *); +void setclassenvironment(login_cap_t *, const struct passwd *, int); /* Most of these functions are deprecated */ -int auth_approve __P((login_cap_t*, const char*, const char*)); -int auth_check __P((const char *, const char *, const char *, const char *, int *)); -void auth_env __P((void)); -char *auth_mkvalue __P((const char *n)); -int auth_response __P((const char *, const char *, const char *, const char *, int *, const char *, const char *)); -void auth_rmfiles __P((void)); -int auth_scan __P((int)); -int auth_script __P((const char*, ...)); -int auth_script_data __P((const char *, int, const char *, ...)); -char *auth_valud __P((const char *)); -int auth_setopt __P((const char *, const char *)); -void auth_clropts __P((void)); - -void auth_checknologin __P((login_cap_t*)); -int auth_cat __P((const char*)); - -int auth_ttyok __P((login_cap_t*, const char *)); -int auth_hostok __P((login_cap_t*, const char *, char const *)); -int auth_timeok __P((login_cap_t*, time_t)); +int auth_approve(login_cap_t*, const char*, const char*); +int auth_check(const char *, const char *, const char *, const char *, int *); +void auth_env(void); +char *auth_mkvalue(const char *n); +int auth_response(const char *, const char *, const char *, const char *, int *, const char *, const char *); +void auth_rmfiles(void); +int auth_scan(int); +int auth_script(const char*, ...); +int auth_script_data(const char *, int, const char *, ...); +char *auth_valud(const char *); +int auth_setopt(const char *, const char *); +void auth_clropts(void); + +void auth_checknologin(login_cap_t*); +int auth_cat(const char*); + +int auth_ttyok(login_cap_t*, const char *); +int auth_hostok(login_cap_t*, const char *, char const *); +int auth_timeok(login_cap_t*, time_t); struct tm; -login_time_t parse_lt __P((const char *)); -int in_ltm __P((const login_time_t *, struct tm *, time_t *)); -int in_ltms __P((const login_time_t *, struct tm *, time_t *)); +login_time_t parse_lt(const char *); +int in_ltm(const login_time_t *, struct tm *, time_t *); +int in_ltms(const login_time_t *, struct tm *, time_t *); /* helper functions */ -int login_strinlist __P((char **, char const *, int)); -int login_str2inlist __P((char **, const char *, const char *, int)); -login_time_t * login_timelist __P((login_cap_t *, char const *, int *, login_time_t **)); -int login_ttyok __P((login_cap_t *, const char *, const char *, const char *)); -int login_hostok __P((login_cap_t *, const char *, const char *, const char *, const char *)); +int login_strinlist(char **, char const *, int); +int login_str2inlist(char **, const char *, const char *, int); +login_time_t * login_timelist(login_cap_t *, char const *, int *, login_time_t **); +int login_ttyok(login_cap_t *, const char *, const char *, const char *); +int login_hostok(login_cap_t *, const char *, const char *, const char *, const char *); __END_DECLS |