]>
git.saurik.com Git - apple/libinfo.git/blob - lookup.subproj/lu_overrides.h
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
22 * @APPLE_LICENSE_HEADER_END@
25 * These are routines typically defined in libc
26 * that are replaced by NetInfo.
28 * Copyright (c) 1995, NeXT Computer Inc.
31 #ifndef _LU_OVERRIDES_H_
32 #define _LU_OVERRIDES_H_
34 #include <sys/cdefs.h>
35 #include <sys/types.h>
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*/
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));
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 *));
58 struct netent
*_old_getnetbyname();
59 struct netent
*_old_getnetbyaddr();
60 void _old_setnetent();
61 struct netent
*_old_getnetent();
62 void _old_endnetent();
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));
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));;
76 struct rpcent
*_old_getrpcbyname();
77 struct rpcent
*_old_getrpcbynumber();
78 void _old_setrpcent();
79 struct rpcent
*_old_getrpcent();
80 void _old_endrpcent();
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));
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));
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));
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));
103 int _old_initgroups();
106 #endif /* !_LU_OVERRIDES_H_ */