Deleted Added
full compact
login_cap.h (184084) login_cap.h (184088)
1/*-
2 * Copyright (c) 1996 by
3 * Sean Eric Fagan <sef@kithrup.com>
4 * David Nugent <davidn@blaze.net.au>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, is permitted provided that the following conditions

--- 8 unchanged lines hidden (view full) ---

17 * is permitted provided this notation is included.
18 * 4. Absolutely no warranty of function or purpose is made by the authors.
19 * 5. Modifications may be freely made to this file providing the above
20 * conditions are met.
21 *
22 * Low-level routines relating to the user capabilities database
23 *
24 * Was login_cap.h,v 1.9 1997/05/07 20:00:01 eivind Exp
1/*-
2 * Copyright (c) 1996 by
3 * Sean Eric Fagan <sef@kithrup.com>
4 * David Nugent <davidn@blaze.net.au>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, is permitted provided that the following conditions

--- 8 unchanged lines hidden (view full) ---

17 * is permitted provided this notation is included.
18 * 4. Absolutely no warranty of function or purpose is made by the authors.
19 * 5. Modifications may be freely made to this file providing the above
20 * conditions are met.
21 *
22 * Low-level routines relating to the user capabilities database
23 *
24 * Was login_cap.h,v 1.9 1997/05/07 20:00:01 eivind Exp
25 * $FreeBSD: head/lib/libutil/login_cap.h 184084 2008-10-20 17:03:05Z des $
25 * $FreeBSD: head/lib/libutil/login_cap.h 184088 2008-10-20 17:17:58Z des $
26 */
27
28#ifndef _LOGIN_CAP_H_
29#define _LOGIN_CAP_H_
30
31#define LOGIN_DEFCLASS "default"
32#define LOGIN_DEFROOTCLASS "root"
33#define LOGIN_MECLASS "me"

--- 107 unchanged lines hidden (view full) ---

141
142int auth_ttyok(login_cap_t *, const char *);
143int auth_hostok(login_cap_t *, const char *, char const *);
144int auth_timeok(login_cap_t *, time_t);
145
146struct tm;
147
148login_time_t parse_lt(const char *);
26 */
27
28#ifndef _LOGIN_CAP_H_
29#define _LOGIN_CAP_H_
30
31#define LOGIN_DEFCLASS "default"
32#define LOGIN_DEFROOTCLASS "root"
33#define LOGIN_MECLASS "me"

--- 107 unchanged lines hidden (view full) ---

141
142int auth_ttyok(login_cap_t *, const char *);
143int auth_hostok(login_cap_t *, const char *, char const *);
144int auth_timeok(login_cap_t *, time_t);
145
146struct tm;
147
148login_time_t parse_lt(const char *);
149int in_lt(const login_time_t *, time_t *);
149int in_ltm(const login_time_t *, struct tm *, time_t *);
150int in_ltms(const login_time_t *, struct tm *, time_t *);
150int in_ltm(const login_time_t *, struct tm *, time_t *);
151int in_ltms(const login_time_t *, struct tm *, time_t *);
152int in_lts(const login_time_t *, time_t *);
151
152/* helper functions */
153
154int login_strinlist(const char **, char const *, int);
155int login_str2inlist(const char **, const char *, const char *, int);
156login_time_t * login_timelist(login_cap_t *, char const *, int *,
157 login_time_t **);
158int login_ttyok(login_cap_t *, const char *, const char *, const char *);
159int login_hostok(login_cap_t *, const char *, const char *, const char *,
160 const char *);
161
162__END_DECLS
163
164#endif /* _LOGIN_CAP_H_ */
153
154/* helper functions */
155
156int login_strinlist(const char **, char const *, int);
157int login_str2inlist(const char **, const char *, const char *, int);
158login_time_t * login_timelist(login_cap_t *, char const *, int *,
159 login_time_t **);
160int login_ttyok(login_cap_t *, const char *, const char *, const char *);
161int login_hostok(login_cap_t *, const char *, const char *, const char *,
162 const char *);
163
164__END_DECLS
165
166#endif /* _LOGIN_CAP_H_ */