Libinfo-278.0.3.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 group *_old_getgrnam __P((const char *));
39 struct group *_old_getgrgid __P((gid_t));
40 int _old_setgrent __P((void));
41 struct group *_old_getgrent __P((void));
42 void _old_endgrent __P((void));
43
44 struct netent *_old_getnetbyname();
45 struct netent *_old_getnetbyaddr();
46 void _old_setnetent();
47 struct netent *_old_getnetent();
48 void _old_endnetent();
49
50 struct servent *_old_getservbyname __P((const char *, const char *));
51 struct servent *_old_getservbyport __P((int, const char *));
52 void _old_setservent __P((int));
53 struct servent *_old_getservent __P((void));
54 void _old_endservent __P((void));
55
56 struct protoent *_old_getprotobyname __P((const char *));
57 struct protoent *_old_getprotobynumber __P((int));
58 void _old_setprotoent __P((int));
59 struct protoent *_old_getprotoent __P((void));
60 void _old_endprotoent __P((void));;
61
62 struct rpcent *_old_getrpcbyname();
63 struct rpcent *_old_getrpcbynumber();
64 void _old_setrpcent();
65 struct rpcent *_old_getrpcent();
66 void _old_endrpcent();
67
68 struct fstab *_old_getfsent __P((void));
69 struct fstab *_old_getfsspec __P((const char *));
70 struct fstab *_old_getfsfile __P((const char *));
71 int _old_setfsent __P((void));
72 void _old_endfsent __P((void));
73
74 struct prdb_ent *_old_prdb_getbyname __P((const char *));
75 void _old_prdb_set __P((void));
76 struct prdb_ent *_old_prdb_get __P((void));
77 void _old_prdb_end __P((void));
78
79 struct aliasent *_old_alias_getbyname __P((const char *));
80 void _old_alias_setent __P((void));
81 struct aliasent *_old_alias_getent __P((void));
82 void _old_alias_endent __P((void));
83
84 int _old_innetgr __P((const char *,const char *,const char *,const char *));
85 void _old_setnetgrent __P((const char *));
86 struct netgrent *_old_getnetgrent __P((void));
87 void _old_endnetgrent __P((void));
88
89 int _old_initgroups();
90 __END_DECLS
91
92 #endif /* !_LU_OVERRIDES_H_ */