diff --git a/contrib/mobile/iOS/Onelab/emulatorFix.c b/contrib/mobile/iOS/Onelab/emulatorFix.c index 4af626ee0fe2cce40e1865e02653aa0c54a34673..2624820c141ea90cd8afee28328e5a516456e4ec 100644 --- a/contrib/mobile/iOS/Onelab/emulatorFix.c +++ b/contrib/mobile/iOS/Onelab/emulatorFix.c @@ -7,6 +7,7 @@ // #include <stdio.h> +#include <stdlib.h> #include <sys/stat.h> #include <sys/resource.h> #include <sys/types.h> @@ -17,6 +18,7 @@ #include <pthread.h> #include <sys/time.h> #include <time.h> +#include <string.h> int getrlimit$UNIX2003( int resource, struct rlimit *rlp) { @@ -140,3 +142,43 @@ clock_t clock$UNIX2003() { return clock(); } + +int creat$UNIX2003(const char *path, mode_t mode) +{ + return creat(path, mode); +} + +int nanosleep$UNIX2003(const struct timespec *rqtp, struct timespec *rmtp) +{ + return nanosleep(rqtp, rmtp); +} + +FILE *popen$UNIX2003(const char *command, const char *mode) +{ + return popen(command, mode); +} + +int setenv$UNIX2003(const char *name, const char *value, int overwrite) +{ + return setenv(name, value, overwrite); +} + +unsigned int sleep$UNIX2003(unsigned int seconds) +{ + return sleep(seconds); +} + +char *strerror$UNIX2003(int errnum) +{ + return strerror(errnum); +} + +double strtod$UNIX2003(const char *restrict nptr, char **restrict endptr) +{ + return strtod(nptr, endptr); +} + +int system$UNIX2003(const char *command) +{ + return system(command); +}