source: trunk/include/sh_static.h@ 47

Last change on this file since 47 was 1, checked in by katerina, 19 years ago

Initial import

File size: 1001 bytes
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
35
36#define sh_gethostbyaddr gethostbyaddr
37#define sh_gethostbyname gethostbyname
38
39#endif
40
41#endif
42
Note: See TracBrowser for help on using the repository browser.