GNUnet  0.11.x
Macros | Functions
platform.h File Reference
#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 __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 55 of file platform.h.

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   499

For strptime (glibc2 needs this).

Definition at line 61 of file platform.h.

◆ _REENTRANT

#define _REENTRANT

Definition at line 65 of file platform.h.

◆ VERBOSE_STATS

#define VERBOSE_STATS   0

Definition at line 70 of file platform.h.

◆ DIR_SEPARATOR

#define DIR_SEPARATOR   '/'

Definition at line 164 of file platform.h.

◆ DIR_SEPARATOR_STR

#define DIR_SEPARATOR_STR   "/"

Definition at line 165 of file platform.h.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   ':'

Definition at line 166 of file platform.h.

◆ PATH_SEPARATOR_STR

#define PATH_SEPARATOR_STR   ":"

Definition at line 167 of file platform.h.

◆ NEWLINE

#define NEWLINE   "\n"

Definition at line 168 of file platform.h.

◆ _

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

GNU gettext support macro.

Definition at line 177 of file platform.h.

◆ LIBEXTRACTOR_GETTEXT_DOMAIN

#define LIBEXTRACTOR_GETTEXT_DOMAIN   "libextractor"

Definition at line 178 of file platform.h.

◆ SIZE_MAX

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

Definition at line 207 of file platform.h.

◆ O_LARGEFILE

#define O_LARGEFILE   0

Definition at line 211 of file platform.h.

◆ AI_NUMERICSERV

#define AI_NUMERICSERV   0

AI_NUMERICSERV not defined in windows.

Then we just do without.

Definition at line 218 of file platform.h.

◆ MAKE_UNALIGNED

#define MAKE_UNALIGNED (   val)    val

Definition at line 227 of file platform.h.

◆ GNUNET_TERM_SIG

#define GNUNET_TERM_SIG   SIGTERM

The termination signal.

Definition at line 233 of file platform.h.

◆ PATH_MAX

#define PATH_MAX   4096

Assumed maximum path length.

Definition at line 240 of file platform.h.

◆ GNUNET_THREAD_LOCAL

#define GNUNET_THREAD_LOCAL

Definition at line 246 of file platform.h.

◆ EXIT_INVALIDARGUMENT

#define EXIT_INVALIDARGUMENT   2

Definition at line 252 of file platform.h.

◆ EXIT_NOTIMPLEMENTED

#define EXIT_NOTIMPLEMENTED   3

Definition at line 256 of file platform.h.

◆ EXIT_NOPERMISSION

#define EXIT_NOPERMISSION   4

Definition at line 260 of file platform.h.

◆ EXIT_NOTINSTALLED

#define EXIT_NOTINSTALLED   5

Definition at line 264 of file platform.h.

◆ EXIT_NOTCONFIGURED

#define EXIT_NOTCONFIGURED   6

Definition at line 268 of file platform.h.

◆ EXIT_NOTRUNNING

#define EXIT_NOTRUNNING   7

Definition at line 272 of file platform.h.

◆ __nonstring

#define __nonstring

clang et al do not have such an attribute

Definition at line 281 of file platform.h.

Function Documentation

◆ atoll()

long long atoll ( const char *  nptr)