#include #include #include #include #define access _access #define X_OK 0 #ifndef ENOENT #define ENOENT 136 #endif #ifndef EINVAL #define EINVAL 131 #endif int readlink(char *, char *, int); int checkroot(char *path);