mini-os: adding some missing posix function declarations
PATCH 1/1 mini-os: adding some missing posix function declarations
Adding some missing posix function declarations, to get rid of some qemu-remote compile time warnings.
Signed-off-by Stefano Stabellini <[email protected]>
---
extras/mini-os/include/posix/time.h +1 -0
@@ -6,5 +6,6 @@#include_next <time.h>int nanosleep (const struct timespec *req,struct timespec *rem); +int clock_gettime (clockid_t clock_id,struct timespec *tp);#endif /* _POSIX_TIME_H */
extras/mini-os/include/posix/unistd.h +1 -0
@@ -5,5 +5,6 @@size_t getpagesize (void );int ftruncate (int fd,off_t length); +int lockf (int fd,int cmd,off_t len);#endif /* _POSIX_UNISTD_H */
extras/mini-os/include/x86/os.h +1 -0
@@ -11,6 +11,7 @@#define __builtin_expect (x, expected_value) (x)#endif #define unlikely (x) __builtin_expect((x),0) +#define likely (x) __builtin_expect((x),1)#define smp_processor_id () 0
extras/mini-os/lib/sys.c +1 -0
@@ -1322,6 +1322,7 @@ unsupported_function_crash(sysconf);unsupported_function_crash (sysconf);unsupported_function (int, tcsetattr,-1 );unsupported_function (int, tcgetattr,0 ); +unsupported_function (int, poll,-1 );/* Linuxish abi for the Caml runtime, don't support */ unsupported_function_log(struct dirent *, readdir64, NULL);
extras/mini-os/include/posix/arpa/inet.h new file +7 -0
@@ -0,0 +1,7 @@ +#ifndef _POSIX_ARPA_INET_H_ +#define _POSIX_ARPA_INET_H_ + +#include <lwip/inet.h> + +#endif /* _POSIX_ARPA_INET_H_ */ +
extras/mini-os/include/posix/signal.h new file +10 -0
@@ -0,0 +1,10 @@ +#ifndef _POSIX_SIGNAL_H +#define _POSIX_SIGNAL_H + +#include_next <signal.h> + +int sigaction (int signum,const struct sigaction * __restrict, +struct sigaction * __restrict); + +#endif +
extras/mini-os/include/posix/sys/poll.h new file +79 -0
79 lines not on this page · raw message