syslog-ng source
getent-generic.c File Reference
#include "compat/getent-generic.h"
#include <glib.h>
#include <errno.h>
Include dependency graph for getent-generic.c:

Functions

 G_LOCK_DEFINE_STATIC (getproto)
 
int _compat_generic__getprotobynumber_r (int proto, struct protoent *result_buf, char *buf, size_t buflen, struct protoent **result)
 
int _compat_generic__getprotobyname_r (const char *name, struct protoent *result_buf, char *buf, size_t buflen, struct protoent **result)
 
 G_LOCK_DEFINE_STATIC (getserv)
 
int _compat_generic__getservbyport_r (int port, const char *proto, struct servent *result_buf, char *buf, size_t buflen, struct servent **result)
 
int _compat_generic__getservbyname_r (const char *name, const char *proto, struct servent *result_buf, char *buf, size_t buflen, struct servent **result)
 

Function Documentation

◆ _compat_generic__getprotobyname_r()

int _compat_generic__getprotobyname_r ( const char *  name,
struct protoent *  result_buf,
char *  buf,
size_t  buflen,
struct protoent **  result 
)

◆ _compat_generic__getprotobynumber_r()

int _compat_generic__getprotobynumber_r ( int  proto,
struct protoent *  result_buf,
char *  buf,
size_t  buflen,
struct protoent **  result 
)

◆ _compat_generic__getservbyname_r()

int _compat_generic__getservbyname_r ( const char *  name,
const char *  proto,
struct servent *  result_buf,
char *  buf,
size_t  buflen,
struct servent **  result 
)

◆ _compat_generic__getservbyport_r()

int _compat_generic__getservbyport_r ( int  port,
const char *  proto,
struct servent *  result_buf,
char *  buf,
size_t  buflen,
struct servent **  result 
)

◆ G_LOCK_DEFINE_STATIC() [1/2]

G_LOCK_DEFINE_STATIC ( getproto  )

◆ G_LOCK_DEFINE_STATIC() [2/2]

G_LOCK_DEFINE_STATIC ( getserv  )