|
|
|
@ -1,14 +1,19 @@ |
|
|
|
|
#define _GNU_SOURCE 1 |
|
|
|
|
#ifdef HAVE_CONFIG_H |
|
|
|
|
# include <config.h> |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define _POSIX_ |
|
|
|
|
#include <limits.h> |
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <stdlib.h> |
|
|
|
|
#include <getopt.h> |
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
|
|
#include <sys/types.h> |
|
|
|
|
#include <sys/sysinfo.h> |
|
|
|
|
#include <dlfcn.h> |
|
|
|
|
#ifdef HAVE_SYS_SYSINFO_H |
|
|
|
|
# include <sys/sysinfo.h> |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
|
#ifndef EFL_EO_API_SUPPORT |
|
|
|
|
#define EFL_EO_API_SUPPORT |
|
|
|
|
#endif |
|
|
|
@ -24,7 +29,7 @@ |
|
|
|
|
|
|
|
|
|
#include "exactness_private.h" |
|
|
|
|
|
|
|
|
|
#define MAX_PATH 1024 |
|
|
|
|
#define PATH_ 1024 |
|
|
|
|
#define IMAGE_FILENAME_EXT ".png" |
|
|
|
|
|
|
|
|
|
typedef struct |
|
|
|
@ -60,7 +65,7 @@ foo(Eina_Debug_Session *session, int srcid, void *buffer, int size) \ |
|
|
|
|
return EINA_TRUE; \
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN |
|
|
|
|
#ifndef WORDS_BIGENDIAN |
|
|
|
|
#define SWAP_64(x) x |
|
|
|
|
#define SWAP_32(x) x |
|
|
|
|
#define SWAP_16(x) x |
|
|
|
@ -851,7 +856,7 @@ _prg_invoke(const char *full_path, int argc, char **argv) |
|
|
|
|
static Eina_Stringshare * |
|
|
|
|
_prg_full_path_guess(const char *prg) |
|
|
|
|
{ |
|
|
|
|
char full_path[MAX_PATH]; |
|
|
|
|
char full_path[PATH_]; |
|
|
|
|
if (strchr(prg, '/')) return eina_stringshare_add(prg); |
|
|
|
|
char *paths = strdup(getenv("PATH")); |
|
|
|
|
Eina_Stringshare *ret = NULL; |
|
|
|
@ -1079,7 +1084,8 @@ int main(int argc, char **argv) |
|
|
|
|
memcpy(argv[0], argv[opt_args], len); |
|
|
|
|
memset(argv[0] + len, 0, _POSIX_PATH_MAX - len); |
|
|
|
|
|
|
|
|
|
for (int i = opt_args; i < argc; i++) |
|
|
|
|
int i; |
|
|
|
|
for (i = opt_args; i < argc; i++) |
|
|
|
|
{ |
|
|
|
|
if (i != opt_args) |
|
|
|
|
{ |
|
|
|
|