mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	Linux 6.0 adds a constant ADDRB, a termios c_cflag bit, to its include/uapi/asm-generic/termbits-common.h. Add it accordingly to glibc's bits/termios-c_cflag.h headers. As other constants in these headers are generally in octal, I converted the value to octal to match. As ADDRB isn't in a POSIX-reserved namespace, I made it conditional on __USE_MISC. Tested for x86_64.
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* termios control mode definitions.  Linux/powerpc version.
 | 
						|
   Copyright (C) 2019-2022 Free Software Foundation, Inc.
 | 
						|
   This file is part of the GNU C Library.
 | 
						|
 | 
						|
   The GNU C Library is free software; you can redistribute it and/or
 | 
						|
   modify it under the terms of the GNU Lesser General Public
 | 
						|
   License as published by the Free Software Foundation; either
 | 
						|
   version 2.1 of the License, or (at your option) any later version.
 | 
						|
 | 
						|
   The GNU C Library is distributed in the hope that it will be useful,
 | 
						|
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | 
						|
   Lesser General Public License for more details.
 | 
						|
 | 
						|
   You should have received a copy of the GNU Lesser General Public
 | 
						|
   License along with the GNU C Library.  If not, see
 | 
						|
   <https://www.gnu.org/licenses/>.  */
 | 
						|
 | 
						|
#ifndef _TERMIOS_H
 | 
						|
# error "Never include <bits/termios-c_cflag.h> directly; use <termios.h> instead."
 | 
						|
#endif
 | 
						|
 | 
						|
#define CSIZE	00001400
 | 
						|
#define   CS5	00000000
 | 
						|
#define   CS6	00000400
 | 
						|
#define   CS7	00001000
 | 
						|
#define   CS8	00001400
 | 
						|
 | 
						|
#define CSTOPB	00002000
 | 
						|
#define CREAD	00004000
 | 
						|
#define PARENB	00010000
 | 
						|
#define PARODD	00020000
 | 
						|
#define HUPCL	00040000
 | 
						|
 | 
						|
#define CLOCAL	00100000
 | 
						|
 | 
						|
#ifdef __USE_MISC
 | 
						|
# define ADDRB 04000000000
 | 
						|
#endif
 |