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