Skip to content
Newer
Older
100644 64 lines (50 sloc) 1.74 KB
74d5670 @gstrauss porting from GNU Linux/glibc to other platforms
authored Nov 6, 2011
1 /*
2 * nss_mcdb_authn - query mcdb of shadow nsswitch.conf database
3 *
4 * Copyright (c) 2011, Glue Logic LLC. All rights reserved. code()gluelogic.com
5 *
6 * This file is part of mcdb.
7 *
8 * mcdb is free software: you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 2.1 of the License, or
11 * (at your option) any later version.
12 *
13 * mcdb is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with mcdb. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef INCLUDED_NSS_MCDB_AUTHN_H
23 #define INCLUDED_NSS_MCDB_AUTHN_H
24
25 #include "nss_mcdb.h"
26 #include "code_attributes.h"
27
28
29 void _nss_mcdb_setspent(void);
30 void _nss_mcdb_endspent(void);
31
32 enum {
33 NSS_SP_LSTCHG = 0,
34 NSS_SP_MIN = 4,
35 NSS_SP_MAX = 8,
36 NSS_SP_WARN = 12,
37 NSS_SP_INACT = 16,
38 NSS_SP_EXPIRE = 20,
39 NSS_SP_FLAG = 24,
40 NSS_SP_PWDP = 28,
41 NSS_SP_HDRSZ = 32 /*(must be multiple of 4; round up)*/
42 };
43
3842388 @gstrauss porting from GNU Linux/glibc to other platforms
authored Nov 7, 2011
44
45 #ifndef _AIX
46
47 #include <shadow.h> /* (struct spwd) */
48
74d5670 @gstrauss porting from GNU Linux/glibc to other platforms
authored Nov 6, 2011
49 nss_status_t
50 _nss_mcdb_getspent_r(struct spwd * restrict, char * restrict, size_t,
51 int * restrict)
52 __attribute_nonnull__ __attribute_warn_unused_result__;
53
54 nss_status_t
55 _nss_mcdb_getspnam_r(const char * restrict,
56 struct spwd * restrict, char * restrict, size_t,
57 int * restrict)
58 __attribute_nonnull__ __attribute_warn_unused_result__;
59
60 #endif /* !_AIX */
61
62
63 #endif
Something went wrong with that request. Please try again.