src/platform_unix.h
author Edouard Tisserant
Mon, 07 Sep 2015 10:49:52 +0200
changeset 348 878bbf6a42c5
parent 347 098632924bd2
child 380 2e4c5a2e752c
permissions -rw-r--r--
Cleanup in android's platform defs + fix crash when setlocal returns NULL
vb@130
     1
#define _POSIX_C_SOURCE 200809L
vb@130
     2
vb@130
     3
#include <unistd.h>
vb@130
     4
#include <strings.h>
vb@130
     5
#include <sys/select.h>
vb@130
     6
vb@130
     7
#ifdef __cplusplus
vb@130
     8
extern "C" {
vb@130
     9
#endif
vb@130
    10
vb@1
    11
const char *unix_local_db(void);
Edouard@347
    12
vb@1
    13
const char *gpg_conf(void);
Edouard@175
    14
const char *gpg_home(void);
vb@130
    15
Edouard@338
    16
#ifdef ANDROID
Edouard@348
    17
char *stpncpy(char *, const char *, size_t);
Edouard@348
    18
char *stpcpy(char *, const char *);
Edouard@338
    19
long int random(void);
Edouard@348
    20
const char *android_system_db(void);
Edouard@348
    21
#define SYSTEM_DB android_system_db()
Edouard@348
    22
#define LIBGPGME "libgpgme.so"
Edouard@338
    23
#endif
Edouard@338
    24
vb@130
    25
#ifdef __cplusplus
vb@130
    26
}
vb@130
    27
#endif