src/platform_unix.h
author Edouard Tisserant
Fri, 04 Sep 2015 21:41:11 +0200
changeset 347 098632924bd2
parent 338 962f6656d2c8
child 348 878bbf6a42c5
permissions -rw-r--r--
Locate system.db given by android, using SAFEWORDS env var
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
const char *android_system_db(void);
Edouard@347
    13
#define SYSTEM_DB android_system_db()
Edouard@347
    14
vb@1
    15
const char *gpg_conf(void);
Edouard@175
    16
const char *gpg_home(void);
vb@130
    17
Edouard@338
    18
#ifdef ANDROID
Edouard@338
    19
char *stpcpy(char *dst, const char *src);
Edouard@338
    20
long int random(void);
Edouard@338
    21
#endif
Edouard@338
    22
vb@130
    23
#ifdef __cplusplus
vb@130
    24
}
vb@130
    25
#endif