Skip to content
Snippets Groups Projects
Commit 228adbee authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix for new xcode

parent 24fd1526
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/resource.h> #include <sys/resource.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
#include <pthread.h> #include <pthread.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <string.h>
int getrlimit$UNIX2003( int resource, struct rlimit *rlp) int getrlimit$UNIX2003( int resource, struct rlimit *rlp)
{ {
...@@ -140,3 +142,43 @@ clock_t clock$UNIX2003() ...@@ -140,3 +142,43 @@ clock_t clock$UNIX2003()
{ {
return clock(); 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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment