From 642b5fb0007b64c77d186fcb018d571152ee1d47 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 14 Aug 2023 18:51:07 +0200 Subject: reorganization: first steps --- src/libc/include/sys/ioctl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/libc/include/sys/ioctl.h (limited to 'src/libc/include/sys/ioctl.h') diff --git a/src/libc/include/sys/ioctl.h b/src/libc/include/sys/ioctl.h new file mode 100644 index 0000000..708bc3f --- /dev/null +++ b/src/libc/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