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)  

str2.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <netdb.h>
#include "pidentd.h"
Include dependency graph for str2.c:

Go to the source code of this file.

Functions

int is_int (const char *p)
 
int str2int (const char *buf, int *out)
 
int str2str (char *buf, char **out)
 
int str2bool (const char *buf, int *out)
 
int str2port (const char *str, int *out)
 
int str2gid (const char *str, gid_t *out)
 
int str2uid (const char *str, uid_t *uid, gid_t *gid)
 

Function Documentation

◆ is_int()

int is_int ( const char *  p)

Definition at line 31 of file str2.c.

Referenced by str2gid(), str2int(), str2port(), and str2uid().

◆ str2bool()

int str2bool ( const char *  buf,
int *  out 
)

Definition at line 105 of file str2.c.

Referenced by conf_parse().

◆ str2gid()

int str2gid ( const char *  str,
gid_t *  out 
)

Definition at line 159 of file str2.c.

References is_int().

Referenced by conf_parse(), and main().

◆ str2int()

int str2int ( const char *  buf,
int *  out 
)

Definition at line 50 of file str2.c.

References is_int().

Referenced by conf_parse(), and main().

◆ str2port()

int str2port ( const char *  str,
int *  out 
)

Definition at line 136 of file str2.c.

References is_int().

Referenced by conf_parse(), and main().

◆ str2str()

int str2str ( char *  buf,
char **  out 
)

Definition at line 62 of file str2.c.

References s_strdup().

Referenced by conf_parse().

◆ str2uid()

int str2uid ( const char *  str,
uid_t *  uid,
gid_t *  gid 
)

Definition at line 180 of file str2.c.

References is_int(), s_getpwnam_r(), and s_getpwuid_r().

Referenced by conf_parse(), drop_root_privs(), and main().