Defines | Typedefs

include/common.h File Reference

#include <unistd.h>
#include <limits.h>
#include <time.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <pwd.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <syslog.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <dirent.h>
#include <sched.h>
#include <stddef.h>
#include <stdbool.h>
#include <assert.h>
#include <libintl.h>
#include <locale.h>
#include <sys/mman.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _POSIX_C_SOURCE   200809L
#define _XOPEN_SOURCE   700
#define UNIX_PATH_MAX   108
#define _BSD_SOURCE
#define _GNU_SOURCE
#define _MC3
#define PIPE_READ   0
#define PIPE_WRITE   1
#define logdbg(...)
#define loginfo(...)   pam_syslog(pam_netns_options.pamh, LOG_INFO, __VA_ARGS__)
#define logerr(...)   pam_syslog(pam_netns_options.pamh, LOG_ERR, __VA_ARGS__ )
#define UNUSED

Typedefs

typedef struct ucred ucred_t

Detailed Description

Common header.

Author:
Wilhelm Meier
Julian Thome
Date:
2010-06-28

Define Documentation

#define _BSD_SOURCE
#define _GNU_SOURCE
#define _MC3
#define _POSIX_C_SOURCE   200809L
#define _XOPEN_SOURCE   700
#define logdbg (   ...  ) 
Value:
if ( pam_netns_options.debug != 0 ) \
                                                 pam_syslog(pam_netns_options.pamh, LOG_DEBUG, __VA_ARGS__)

define logerr(...) printf("ERR:");printf(__VA_ARGS__);printf("\n");

define logdbg(...) printf("DBG:");printf(__VA_ARGS__);printf("\n");

define loginfo(...) printf("INF:");printf(__VA_ARGS__);printf("\n");

#define logerr (   ...  )     pam_syslog(pam_netns_options.pamh, LOG_ERR, __VA_ARGS__ )
#define loginfo (   ...  )     pam_syslog(pam_netns_options.pamh, LOG_INFO, __VA_ARGS__)
#define PIPE_READ   0
#define PIPE_WRITE   1
#define UNIX_PATH_MAX   108
#define UNUSED

Typedef Documentation

typedef struct ucred ucred_t