source: trunk/include/sh_static.h@ 115

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
RevLine 
[1]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
9int sh_initgroups(const char *user, gid_t gid);
10struct group * sh_getgrent(void);
11struct passwd * sh_getpwent(void);
12void sh_endgrent(void);
13void sh_setgrent(void);
14void sh_endpwent(void);
15void sh_setpwent(void);
16struct group * sh_getgrnam(const char *name);
17struct passwd * sh_getpwnam(const char *name);
18struct group * sh_getgrgid(gid_t gid);
19struct passwd * sh_getpwuid(uid_t uid);
20#endif
21
22#ifdef SH_NEED_GETHOSTBYXXX
23struct hostent * sh_gethostbyaddr (const void *addr, socklen_t len, int type);
24struct 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
[111]35#define sh_setpwent setpwent
[1]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.