Last change
on this file since 115 was 111, checked in by rainer, 17 years ago |
Fix for ticket #69 (wrappers for name service routines not used everywhere).
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef SH_STATIC_H
|
---|
2 | #define SH_STATIC_H
|
---|
3 |
|
---|
4 | #include "config_xor.h"
|
---|
5 |
|
---|
6 | #if defined(SH_COMPILE_STATIC) && defined(__linux__)
|
---|
7 |
|
---|
8 | #ifdef SH_NEED_PWD_GRP
|
---|
9 | int sh_initgroups(const char *user, gid_t gid);
|
---|
10 | struct group * sh_getgrent(void);
|
---|
11 | struct passwd * sh_getpwent(void);
|
---|
12 | void sh_endgrent(void);
|
---|
13 | void sh_setgrent(void);
|
---|
14 | void sh_endpwent(void);
|
---|
15 | void sh_setpwent(void);
|
---|
16 | struct group * sh_getgrnam(const char *name);
|
---|
17 | struct passwd * sh_getpwnam(const char *name);
|
---|
18 | struct group * sh_getgrgid(gid_t gid);
|
---|
19 | struct passwd * sh_getpwuid(uid_t uid);
|
---|
20 | #endif
|
---|
21 |
|
---|
22 | #ifdef SH_NEED_GETHOSTBYXXX
|
---|
23 | struct hostent * sh_gethostbyaddr (const void *addr, socklen_t len, int type);
|
---|
24 | struct hostent * sh_gethostbyname(const char *name);
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | #else
|
---|
28 |
|
---|
29 | #define sh_initgroups initgroups
|
---|
30 | #define sh_getgrgid getgrgid
|
---|
31 | #define sh_getpwent getpwent
|
---|
32 | #define sh_getpwnam getpwnam
|
---|
33 | #define sh_getpwuid getpwuid
|
---|
34 | #define sh_endpwent endpwent
|
---|
35 | #define sh_setpwent setpwent
|
---|
36 |
|
---|
37 | #define sh_gethostbyaddr gethostbyaddr
|
---|
38 | #define sh_gethostbyname gethostbyname
|
---|
39 |
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | #endif
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.