diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-25 21:49:53 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-25 21:49:53 -0400 |
commit | d94dd2ace5a9965763a16e21c94b2c6815ae2110 (patch) | |
tree | aa0967d053b84d1cafe7b479eb26aa9ab2dad6c4 /sys/include | |
parent | 67b09432145a43571ff29de2a8b0d6766ec8e1c9 (diff) |
kernel: termios: Add compatibility flags
Adds compatibility flags for c_iflag as well as improved documentation
for the defines.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/termios.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/include/sys/termios.h b/sys/include/sys/termios.h index 27339f1..eac9de2 100644 --- a/sys/include/sys/termios.h +++ b/sys/include/sys/termios.h @@ -33,8 +33,18 @@ /* * c_iflag: Input flags */ -#define ISTRIP 0x00000000 -#define ICRNL 0x00000001 +#define ISTRIP 0x00000001 /* Strip char */ +#define ICRNL 0x00000002 /* Map CR to NL */ +#define BRKINT 0x00000004 /* Signal interrupt on break */ +#define IGNBRK 0x00000008 /* Ignore break condition */ +#define IGNCR 0x00000010 /* Ignore CR */ +#define IGNPAR 0x00000020 /* Ignore chars with parity errors */ +#define INCLR 0x00000040 /* Map NL to CR */ +#define INPCK 0x00000080 /* Enable input parity check */ +#define IXANY 0x00000100 /* Enable any char to restart output */ +#define IXOFF 0x00000200 /* Enable start/stop control */ +#define PARMRK 0x00000400 /* Mark parity errors */ + #define NCCS 20 |