Libinfo-173.tar.gz
[apple/libinfo.git] / lookup.subproj / lu_overrides.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * These are routines typically defined in libc
27 * that are replaced by NetInfo.
28 *
29 * Copyright (c) 1995, NeXT Computer Inc.
30 */
31
32 #ifndef _LU_OVERRIDES_H_
33 #define _LU_OVERRIDES_H_
34
35 #include <sys/cdefs.h>
36 #include <sys/types.h>
37
38 __BEGIN_DECLS
39 struct passwd *_old_getpwnam __P((const char *));
40 struct passwd *_old_getpwuid __P((uid_t));
41 struct passwd *_old_getpwent __P((void));
42 int _old_setpwent __P((void));
43 void _old_endpwent __P((void));
44 int _old_putpwpasswd(); /*XXX*/
45
46 struct group *_old_getgrnam __P((const char *));
47 struct group *_old_getgrgid __P((gid_t));
48 int _old_setgrent __P((void));
49 struct group *_old_getgrent __P((void));
50 void _old_endgrent __P((void));
51
52 struct hostent *_old_gethostbyname __P((const char *));
53 struct hostent *_old_gethostbyaddr __P((const char *, int, int));
54 void _old_sethostent __P((int));
55 struct hostent *_old_gethostent __P((void));
56 void _old_endhostent __P((void));
57 void _old_sethostfile __P((const char *));
58
59 struct netent *_old_getnetbyname();
60 struct netent *_old_getnetbyaddr();
61 void _old_setnetent();
62 struct netent *_old_getnetent();
63 void _old_endnetent();
64
65 struct servent *_old_getservbyname __P((const char *, const char *));
66 struct servent *_old_getservbyport __P((int, const char *));
67 void _old_setservent __P((int));
68 struct servent *_old_getservent __P((void));
69 void _old_endservent __P((void));
70
71 struct protoent *_old_getprotobyname __P((const char *));
72 struct protoent *_old_getprotobynumber __P((int));
73 void _old_setprotoent __P((int));
74 struct protoent *_old_getprotoent __P((void));
75 void _old_endprotoent __P((void));;
76
77 struct rpcent *_old_getrpcbyname();
78 struct rpcent *_old_getrpcbynumber();
79 void _old_setrpcent();
80 struct rpcent *_old_getrpcent();
81 void _old_endrpcent();
82
83 struct fstab *_old_getfsent __P((void));
84 struct fstab *_old_getfsspec __P((const char *));
85 struct fstab *_old_getfsfile __P((const char *));
86 int _old_setfsent __P((void));
87 void _old_endfsent __P((void));
88
89 struct prdb_ent *_old_prdb_getbyname __P((const char *));
90 void _old_prdb_set __P((void));
91 struct prdb_ent *_old_prdb_get __P((void));
92 void _old_prdb_end __P((void));
93
94 struct aliasent *_old_alias_getbyname __P((const char *));
95 void _old_alias_setent __P((void));
96 struct aliasent *_old_alias_getent __P((void));
97 void _old_alias_endent __P((void));
98
99 int _old_innetgr __P((const char *,const char *,const char *,const char *));
100 void _old_setnetgrent __P((const char *));
101 struct netgrent *_old_getnetgrent __P((void));
102 void _old_endnetgrent __P((void));
103
104 int _old_initgroups();
105 __END_DECLS
106
107 #endif /* !_LU_OVERRIDES_H_ */