Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
#include <errno.h>
#include <sys/stat.h>
#include <uk/essentials.h>
+#include <uk/print.h>
int isatty(int fd)
{
{
return 0;
}
+
+int grantpt(int fd)
+{
+ WARN_STUBBED();
+ errno = ENOTSUP;
+ return -1;
+}
#include <uk/config.h>
#include <uk/sched.h>
#include <uk/plat/console.h>
+#include <uk/print.h>
#if CONFIG_LWIP_SOCKET
#include <lwip/sockets.h>
#else
}
#endif /* !CONFIG_LWIP_SOCKET */
+int eventfd(unsigned int initval, int flags)
+{
+ WARN_STUBBED();
+ errno = ENOTSUP;
+ return -1;
+}
+
char *realpath(const char *restrict file_name, char *restrict resolved_name)
{
return 0;
#define AT_EMPTY_PATH 0x1000
#endif
+int posix_fadvise(int fd, off_t offset, off_t len, int advice);
+
#endif
int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
+#ifdef _GNU_SOURCE
+int ppoll(struct pollfd *fds, nfds_t nfds,
+ const struct timespec *tmo_p, const sigset_t *sigmask);
+#endif
+
#endif /* _POSIX_SYS_POLL_H_ */
*/
#include <uk/process.h>
+#include <uk/print.h>
#include <errno.h>
#include <signal.h>
errno = ESRCH;
return -1;
}
+
+int sigaltstack(const stack_t *ss, stack_t *old_ss)
+{
+ WARN_STUBBED();
+ errno = ENOTSUP;
+ return -1;
+}