GNUnet 0.22.0
platform.h File Reference
#include <inttypes.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netinet/tcp.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <grp.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <errno.h>
#include <signal.h>
#include <libgen.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <limits.h>
#include <ctype.h>
#include "compat.h"
#include <locale.h>
#include "gettext.h"
#include <sys/mman.h>
Include dependency graph for platform.h:

Go to the source code of this file.

Macros

#define HAVE_USED_CONFIG_H
 
#define BREAKPOINT
 
#define GNUNET_SIGCHLD   SIGCHLD
 
#define ALLOW_EXTRA_CHECKS   GNUNET_YES
 These may be expensive, but good for debugging... More...
 
#define _XOPEN_SOURCE   499
 For strptime (glibc2 needs this). More...
 
#define _REENTRANT
 
#define VERBOSE_STATS   0
 
#define DIR_SEPARATOR   '/'
 
#define DIR_SEPARATOR_STR   "/"
 
#define PATH_SEPARATOR   ':'
 
#define PATH_SEPARATOR_STR   ":"
 
#define NEWLINE   "\n"
 
#define _(String)   dgettext (PACKAGE, String)
 GNU gettext support macro. More...
 
#define LIBEXTRACTOR_GETTEXT_DOMAIN   "libextractor"
 
#define SIZE_MAX   ((size_t) (-1))
 
#define O_LARGEFILE   0
 
#define AI_NUMERICSERV   0
 AI_NUMERICSERV not defined in windows. More...
 
#define MAKE_UNALIGNED(val)   val
 
#define GNUNET_TERM_SIG   SIGTERM
 The termination signal. More...
 
#define PATH_MAX   4096
 Assumed maximum path length. More...
 
#define GNUNET_THREAD_LOCAL
 
#define EXIT_INVALIDARGUMENT   2
 
#define EXIT_NOTIMPLEMENTED   3
 
#define EXIT_NOPERMISSION   4
 
#define EXIT_NOTINSTALLED   5
 
#define EXIT_NOTCONFIGURED   6
 
#define EXIT_NOTRUNNING   7
 
#define EXIT_NO_RESTART   9
 
#define __nonstring
 clang et al do not have such an attribute More...
 

Functions

long long atoll (const char *nptr)
 

Macro Definition Documentation

◆ HAVE_USED_CONFIG_H

#define HAVE_USED_CONFIG_H

Definition at line 35 of file platform.h.

◆ BREAKPOINT

#define BREAKPOINT

Definition at line 41 of file platform.h.

◆ GNUNET_SIGCHLD

#define GNUNET_SIGCHLD   SIGCHLD

Definition at line 42 of file platform.h.

◆ ALLOW_EXTRA_CHECKS

#define ALLOW_EXTRA_CHECKS   GNUNET_YES

These may be expensive, but good for debugging...

Definition at line 56 of file platform.h.

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   499

For strptime (glibc2 needs this).

Definition at line 62 of file platform.h.

◆ _REENTRANT

#define _REENTRANT

Definition at line 66 of file platform.h.

◆ VERBOSE_STATS

#define VERBOSE_STATS   0

Definition at line 71 of file platform.h.

◆ DIR_SEPARATOR

#define DIR_SEPARATOR   '/'

Definition at line 165 of file platform.h.

◆ DIR_SEPARATOR_STR

#define DIR_SEPARATOR_STR   "/"

Definition at line 166 of file platform.h.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   ':'

Definition at line 167 of file platform.h.

◆ PATH_SEPARATOR_STR

#define PATH_SEPARATOR_STR   ":"

Definition at line 168 of file platform.h.

◆ NEWLINE

#define NEWLINE   "\n"

Definition at line 169 of file platform.h.

◆ _

#define _ (   String)    dgettext (PACKAGE, String)

GNU gettext support macro.

Definition at line 178 of file platform.h.

◆ LIBEXTRACTOR_GETTEXT_DOMAIN

#define LIBEXTRACTOR_GETTEXT_DOMAIN   "libextractor"

Definition at line 179 of file platform.h.

◆ SIZE_MAX

#define SIZE_MAX   ((size_t) (-1))

Definition at line 208 of file platform.h.

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 212 of file platform.h.

◆ AI_NUMERICSERV

#define AI_NUMERICSERV   0

AI_NUMERICSERV not defined in windows.

Then we just do without.

Definition at line 219 of file platform.h.

◆ MAKE_UNALIGNED

#define MAKE_UNALIGNED (   val)    val

Definition at line 228 of file platform.h.

◆ GNUNET_TERM_SIG

#define GNUNET_TERM_SIG   SIGTERM

The termination signal.

Definition at line 234 of file platform.h.

◆ PATH_MAX

#define PATH_MAX   4096

Assumed maximum path length.

Definition at line 241 of file platform.h.

◆ GNUNET_THREAD_LOCAL

#define GNUNET_THREAD_LOCAL

Definition at line 247 of file platform.h.

◆ EXIT_INVALIDARGUMENT

#define EXIT_INVALIDARGUMENT   2

Definition at line 253 of file platform.h.

◆ EXIT_NOTIMPLEMENTED

#define EXIT_NOTIMPLEMENTED   3

Definition at line 257 of file platform.h.

◆ EXIT_NOPERMISSION

#define EXIT_NOPERMISSION   4

Definition at line 261 of file platform.h.

◆ EXIT_NOTINSTALLED

#define EXIT_NOTINSTALLED   5

Definition at line 265 of file platform.h.

◆ EXIT_NOTCONFIGURED

#define EXIT_NOTCONFIGURED   6

Definition at line 269 of file platform.h.

◆ EXIT_NOTRUNNING

#define EXIT_NOTRUNNING   7

Definition at line 273 of file platform.h.

◆ EXIT_NO_RESTART

#define EXIT_NO_RESTART   9

Definition at line 277 of file platform.h.

◆ __nonstring

#define __nonstring

clang et al do not have such an attribute

Definition at line 286 of file platform.h.

Function Documentation

◆ atoll()

long long atoll ( const char *  nptr)