24#if (defined(sun) || defined(__sun) || defined(__sun__)) && defined(__SVR4)
27#define SYMLINK_PATH "/proc/self/path/a.out"
30#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
33#define SYMLINK_PATH "/proc/curproc/file"
36#if defined(__linux__) || defined(__linux)|| defined(linux)
39#define SYMLINK_PATH "/proc/self/exe"
42#if defined(HAVE_PROC_PIDPATH)
68#ifdef HAVE_PROC_PIDPATH
EXPORT char * getexecpath()
GLenum GLuint GLenum GLsizei const GLchar * buf
int readlink(const char *path, char *buf, size_t size)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)