From patchwork Wed May 7 12:17:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 827 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx20.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 7BD43360079 for ; Wed, 7 May 2014 05:17:13 -0700 (PDT) Received: by homiemail-mx20.g.dreamhost.com (Postfix, from userid 14307373) id 33A9B41854531; Wed, 7 May 2014 05:17:13 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx20.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx20.g.dreamhost.com (Postfix) with ESMTPS id EE55241852CA0 for ; Wed, 7 May 2014 05:17:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=XxI hXDgBNlrovPPrFDRylpPqAyboKZ25dNQsmFE7+KQH+S8E+XhUiTz3E/ZrU/fk9gb znv2cgSs1RD25hKhYClTSmzbW33sycbEv5o/5Wi0kp4uB3c/e7CRfo22pcElWviM jx5jqR9Z/Lq09qYdaghbBQIHWwd3m5+7lqq44S1M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=Sdi+XadlP ZjdN9BsHvx2dyam0xM=; b=x7mFaNC5T6Ei2EREvnEjs+7BEj9TNop5c1X1z9htp ETUpsRNHTni7MOmjK971D+XT6KU0bmPbzRB7bxFpok3OtlUKlijqDAcRWVHQ0LRf puwIr5vtZspY9ptouuIMMOR9Zh31mktVvcRoSMwDdO3DpN9TBxvjQ74aTsKmmSkS f4= Received: (qmail 9115 invoked by alias); 7 May 2014 12:17:11 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9095 invoked by uid 89); 7 May 2014 12:17:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp03.br.ibm.com Message-ID: <536A243D.1050905@linux.vnet.ibm.com> Date: Wed, 07 May 2014 09:17:01 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] PowerPC: clean BSD Terminal Modes expectation in termios.h X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14050712-9564-0000-0000-000000BF4DA2 X-DH-Original-To: glibc@patchwork.siddhesh.in This patch guard the BSD definition for terminal modes in PowerPC specific header fixing the following conformance failures: FAIL: conform/POSIX/termios.h/conform FAIL: conform/POSIX2008/termios.h/conform FAIL: conform/UNIX98/termios.h/conform --- * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard BSD terminal modes definitions. --- diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h index de57249..c300f65 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h @@ -95,8 +95,10 @@ struct termios { # define NLDLY 00001400 # define NL0 00000000 # define NL1 00000400 +#if defined __USE_MISC # define NL2 00001000 # define NL3 00001400 +#endif # define TABDLY 00006000 # define TAB0 00000000 # define TAB1 00002000 @@ -222,6 +224,8 @@ struct termios { #define TCSADRAIN 1 #define TCSAFLUSH 2 +#ifdef __USE_MISC + struct sgttyb { char sg_ispeed; char sg_ospeed; @@ -257,6 +261,7 @@ struct ltchars { #define TIOCPKT_NOSTOP 16 #define TIOCPKT_DOSTOP 32 + struct winsize { unsigned short ws_row; unsigned short ws_col; @@ -319,3 +324,5 @@ struct termio { #define N_HDLC 13 /* synchronous HDLC */ #define N_SYNC_PPP 14 /* synchronous PPP */ #define N_HCI 15 /* Bluetooth HCI UART */ + +#endif /* __USE_MISC */