pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

support.h
Go to the documentation of this file.
1 /*
2 ** support.h - Miscellaneous support functions.
3 **
4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
5 **
6 ** This program is free software; you can redistribute it and/or
7 ** modify it as you wish - as long as you don't claim that you wrote
8 ** it.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 #ifndef PIDENTD_SUPPORT_H
16 #define PIDENTD_SUPPORT_H
17 
18 extern char osinfo_build[];
19 extern char *osinfo_get(char *buf);
20 
21 
22 #define SOCKTYPE_NOTSOCKET 0
23 #define SOCKTYPE_LISTEN 1
24 #define SOCKTYPE_CONNECTED 2
25 
26 extern int socktype(int fd);
27 
28 extern char *s_strtok_r(char *b, const char *s, char **bp);
29 
30 extern int s_strcasecmp(const char *s1, const char *s2);
31 
32 struct passwd;
33 extern int s_getpwnam_r(const char *name,
34  struct passwd *pwd,
35  char *buffer, size_t bufsize,
36  struct passwd **result);
37 
38 extern int s_getpwuid_r(uid_t uid,
39  struct passwd *pwd,
40  char *buffer, size_t bufsize,
41  struct passwd **result);
42 
43 extern void s_openlog(const char *ident, int logopt, int facility);
44 
45 extern int syslog_str2fac(const char *name);
46 extern int syslog_str2lev(const char *name);
47 
48 extern const char *s_inet_ntox(struct sockaddr_gen *ia, char *buf,
49  size_t bufsize);
50 
51 #endif
s_getpwuid_r
int s_getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
Definition: support.c:254
socktype
int socktype(int fd)
Definition: support.c:64
s_openlog
void s_openlog(const char *ident, int logopt, int facility)
Definition: support.c:348
syslog_str2fac
int syslog_str2fac(const char *name)
Definition: support.c:411
sockaddr_gen
#define sockaddr_gen
Definition: sockaddr.h:53
osinfo_get
char * osinfo_get(char *buf)
Definition: support.c:39
s_getpwnam_r
int s_getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
Definition: support.c:176
s_strtok_r
char * s_strtok_r(char *b, const char *s, char **bp)
Definition: support.c:106
syslog_str2lev
int syslog_str2lev(const char *name)
s_strcasecmp
int s_strcasecmp(const char *s1, const char *s2)
Definition: support.c:332
osinfo_build
char osinfo_build[]
s_inet_ntox
const char * s_inet_ntox(struct sockaddr_gen *ia, char *buf, size_t bufsize)