// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2020 Cyril Hrubis * Copyright (c) 2020 Petr Vorel */ #ifndef IOCTL_H__ #define IOCTL_H__ #include "config.h" #include /* musl not including it in */ #include #ifndef TIOCVHANGUP # define TIOCVHANGUP 0x5437 #endif #ifndef HAVE_STRUCT_TERMIO # ifndef NCC # ifdef __powerpc__ # define NCC 10 # else # define NCC 8 # endif # endif /* NCC */ struct termio { unsigned short int c_iflag; /* input mode flags */ unsigned short int c_oflag; /* output mode flags */ unsigned short int c_cflag; /* control mode flags */ unsigned short int c_lflag; /* local mode flags */ unsigned char c_line; /* line discipline */ unsigned char c_cc[NCC]; /* control characters */ }; #endif /* HAVE_STRUCT_TERMIO */ #endif /* IOCTL_H__ */