diff options
author | Manuel Bentele | 2020-09-11 11:48:48 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-09-16 07:37:56 +0200 |
commit | a4215c3632c13218bb389d1f066549ab783028e3 (patch) | |
tree | 0468836ef5303f6eb94b876189ccaa60a7a2b453 /kernel/tests/include/lapi/ioctl.h | |
parent | Updated README with documentation of general information and build options (diff) | |
download | xloop-a4215c3632c13218bb389d1f066549ab783028e3.tar.gz xloop-a4215c3632c13218bb389d1f066549ab783028e3.tar.xz xloop-a4215c3632c13218bb389d1f066549ab783028e3.zip |
Added testcases from the Linux testing project (LTP)
Diffstat (limited to 'kernel/tests/include/lapi/ioctl.h')
-rw-r--r-- | kernel/tests/include/lapi/ioctl.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/kernel/tests/include/lapi/ioctl.h b/kernel/tests/include/lapi/ioctl.h new file mode 100644 index 0000000..ecd2502 --- /dev/null +++ b/kernel/tests/include/lapi/ioctl.h @@ -0,0 +1,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__ */ |