/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1995, 96, 99, 2001, 06 Ralf Baechle * Copyright (C) 1999 Silicon Graphics, Inc. * Copyright (C) 2001 MIPS Technologies, Inc.
*/ #ifndef _ASM_TERMBITS_H #define _ASM_TERMBITS_H
#include <asm-generic/termbits-common.h>
typedefunsignedint tcflag_t;
/* * The ABI says nothing about NCC but seems to use NCCS as * replacement for it in struct termio
*/ #define NCCS 23 struct termios {
tcflag_t c_iflag; /* input mode flags */
tcflag_t c_oflag; /* output mode flags */
tcflag_t c_cflag; /* control mode flags */
tcflag_t c_lflag; /* local mode flags */
cc_t c_line; /* line discipline */
cc_t c_cc[NCCS]; /* control characters */
};
/* c_cc characters */ #define VINTR 0/* Interrupt character [ISIG] */ #define VQUIT 1/* Quit character [ISIG] */ #define VERASE 2/* Erase character [ICANON] */ #define VKILL 3/* Kill-line character [ICANON] */ #define VMIN 4/* Minimum number of bytes read at once [!ICANON] */ #define VTIME 5/* Time-out value (tenths of a second) [!ICANON] */ #define VEOL2 6/* Second EOL character [ICANON] */ #define VSWTC 7/* ??? */ #define VSWTCH VSWTC #define VSTART 8/* Start (X-ON) character [IXON, IXOFF] */ #define VSTOP 9/* Stop (X-OFF) character [IXON, IXOFF] */ #define VSUSP 10/* Suspend character [ISIG] */ #if0 /* * VDSUSP is not supported
*/ #define VDSUSP 11/* Delayed suspend character [ISIG] */ #endif #define VREPRINT 12/* Reprint-line character [ICANON] */ #define VDISCARD 13/* Discard character [IEXTEN] */ #define VWERASE 14/* Word-erase character [ICANON] */ #define VLNEXT 15/* Literal-next character [IEXTEN] */ #define VEOF 16/* End-of-file character [ICANON] */ #define VEOL 17/* End-of-line character [ICANON] */
/* c_iflag bits */ #define IUCLC 0x0200 /* Map upper case to lower case on input */ #define IXON 0x0400 /* Enable start/stop output control */ #define IXOFF 0x1000 /* Enable start/stop input control */ #define IMAXBEL 0x2000 /* Ring bell when input queue is full */ #define IUTF8 0x4000 /* Input is UTF-8 */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.