blob: ecd250290794bf24945dfe9ca85e0b7e941bb5be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz>
* Copyright (c) 2020 Petr Vorel <pvorel@suse.cz>
*/
#ifndef IOCTL_H__
#define IOCTL_H__
#include "config.h"
#include <sys/ioctl.h>
/* musl not including it in <sys/ioctl.h> */
#include <sys/ttydefaults.h>
#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__ */
|