From e6584db26da34572fb13aa236e16e19f71c8e976 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 26 Aug 2022 14:16:16 +0200 Subject: user/libc: prepare for OpenED port --- src/user/lib/include/sys/ioctl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/user/lib/include/sys/ioctl.h (limited to 'src/user/lib/include/sys/ioctl.h') diff --git a/src/user/lib/include/sys/ioctl.h b/src/user/lib/include/sys/ioctl.h new file mode 100644 index 0000000..708bc3f --- /dev/null +++ b/src/user/lib/include/sys/ioctl.h @@ -0,0 +1,13 @@ +#pragma once +#include // only for ENOSYS + +#define TIOCGWINSZ 0 +struct winsize { + int ws_row, ws_col; +}; + +static inline int ioctl(int fd, int req, ...) { + (void)fd; (void)req; + errno = ENOSYS; + return -1; +} -- cgit v1.2.3