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
     1 #define _POSIX_C_SOURCE 200809L
     2 
     3 #include <unistd.h>
     4 #include <strings.h>
     5 #include <sys/select.h>
     6 
     7 #ifdef __cplusplus
     8 extern "C" {
     9 #endif
    10 
    11 const char *unix_local_db(void);
    12 const char *android_system_db(void);
    13 #define SYSTEM_DB android_system_db()
    14 
    15 const char *gpg_conf(void);
    16 const char *gpg_home(void);
    17 
    18 #ifdef ANDROID
    19 char *stpcpy(char *dst, const char *src);
    20 long int random(void);
    21 #endif
    22 
    23 #ifdef __cplusplus
    24 }
    25 #endif