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 File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SOCKTYPE_NOTSOCKET   0
 
#define SOCKTYPE_LISTEN   1
 
#define SOCKTYPE_CONNECTED   2
 

Functions

char * osinfo_get (char *buf)
 
int socktype (int fd)
 
char * s_strtok_r (char *b, const char *s, char **bp)
 
int s_strcasecmp (const char *s1, const char *s2)
 
int s_getpwnam_r (const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
 
int s_getpwuid_r (uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result)
 
void s_openlog (const char *ident, int logopt, int facility)
 
int syslog_str2fac (const char *name)
 
int syslog_str2lev (const char *name)
 
const char * s_inet_ntox (struct sockaddr_gen *ia, char *buf, size_t bufsize)
 

Variables

char osinfo_build []
 

Macro Definition Documentation

◆ SOCKTYPE_CONNECTED

#define SOCKTYPE_CONNECTED   2

Definition at line 24 of file support.h.

◆ SOCKTYPE_LISTEN

#define SOCKTYPE_LISTEN   1

Definition at line 23 of file support.h.

◆ SOCKTYPE_NOTSOCKET

#define SOCKTYPE_NOTSOCKET   0

Definition at line 22 of file support.h.

Function Documentation

◆ osinfo_get()

char* osinfo_get ( char *  buf)

Definition at line 39 of file support.c.

Referenced by ka_init(), and main().

◆ s_getpwnam_r()

int s_getpwnam_r ( const char *  name,
struct passwd *  pwd,
char *  buffer,
size_t  bufsize,
struct passwd **  result 
)

◆ s_getpwuid_r()

int s_getpwuid_r ( uid_t  uid,
struct passwd *  pwd,
char *  buffer,
size_t  bufsize,
struct passwd **  result 
)

◆ s_inet_ntox()

const char* s_inet_ntox ( struct sockaddr_gen ia,
char *  buf,
size_t  bufsize 
)

◆ s_openlog()

void s_openlog ( const char *  ident,
int  logopt,
int  facility 
)

Definition at line 348 of file support.c.

Referenced by conf_parse(), and main().

◆ s_strcasecmp()

int s_strcasecmp ( const char *  s1,
const char *  s2 
)

Definition at line 332 of file support.c.

◆ s_strtok_r()

char* s_strtok_r ( char *  b,
const char *  s,
char **  bp 
)

Definition at line 106 of file support.c.

Referenced by conf_parse(), and handle_request().

◆ socktype()

int socktype ( int  fd)

Definition at line 64 of file support.c.

References errno, SOCKTYPE_CONNECTED, SOCKTYPE_LISTEN, and SOCKTYPE_NOTSOCKET.

Referenced by main().

◆ syslog_str2fac()

int syslog_str2fac ( const char *  name)

Definition at line 411 of file support.c.

Referenced by conf_parse(), and main().

◆ syslog_str2lev()

int syslog_str2lev ( const char *  name)

Referenced by conf_parse().

Variable Documentation

◆ osinfo_build

char osinfo_build[]