From patchwork Mon Oct 15 20:49:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 148886 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4251296lji; Mon, 15 Oct 2018 13:50:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV62PhlVhtI5Ki0Mc6PRJ6E72ZeE6Psli5STfxJVWrymMQ5gJGI8+3zaii33a+NGSVabNQ8D8 X-Received: by 2002:a17:902:7c0b:: with SMTP id x11-v6mr18398474pll.60.1539636615517; Mon, 15 Oct 2018 13:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539636615; cv=none; d=google.com; s=arc-20160816; b=v1b91xrutDuFVnpskIFfvwC4erpUrWL96GUx7hAEaPT28Eo7FfW5BuYhbT8xZ7OMXr Qlunot9syxKHOYCm4TUD9eo6KL4STfyjEqlD3Y2oRPTEYhw8wBPaD63CFvvynEsHegyf lXLBtHNZ1wOM04KNef4F8C4yVIMhvUbUIMKE3Qsi96pjO+zm8GGf2edmQhNhH7V1pI2G CFalIl8RCzPxCbrB+geLftp3E6Oeq2+5GtC7Wazn6M111JYNXwb3NsfDiOlN1xPbLELO 1NnkQbzoU0PevQmkJLMKMs2RXjL+r2orccqrN/tWk/JB6Nb594Mu1amtiMfWT76UWz6/ Sc8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=XmI5DpuNIJheobh6YBPom6nsLX0GsY6et+MfjjKCuK8=; b=XkkAk+TztWR/fFVTWnncZ7hcYXp6vtEZ+g7iNyW18ap8kGBMAoUFMsl9Ht/J845Cr1 7f8t7WhoQOrP3im1UdGIDditzlRqlLYy9UNrDQ/V29D4BytqAL0T9fmLnVeppawD5upA 6JZ3FEZgsGFYBuD9ni2FQ4Ohzi3ud02pQrfpwPmWZRni1PooeseomEuEkUrCGzqjbiNB ugbe7liQ5CVnAcftL6GlqE8RTaiyI1nqA+GsRNuzKFE9iiPJSYp3oEnUuYui/U8cnzAR GBi/xYv4PSmm0qDc5jWsktJ7+tIo0LPRui/6jLN/aYhnjtMyjtM+uDasgzjSsfmobD3h R7Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=EmaJ7zg2; dkim=pass header.i=@linaro.org header.s=google header.b=Ro6CC+bG; spf=pass (google.com: domain of libc-alpha-return-96436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-96436-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id p19-v6si11760164pfi.12.2018.10.15.13.50.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 13:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-96436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=EmaJ7zg2; dkim=pass header.i=@linaro.org header.s=google header.b=Ro6CC+bG; spf=pass (google.com: domain of libc-alpha-return-96436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-96436-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=TVkXSBz75OyqVdprIc+t/emsMDnDVgs0KXbMcu/oRGuTGuEu108XL KiVOLyvBSoG/4pH9hIpIe+UU8LGodldDJelvg0wMjfMazm7riu+MIdcI4Tl+g/WL JWx2FHUhS0rrhf+f0HK4uevNVZwGF+IZgWbLssOxa1TESRmbtapsCk= 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:from:to:cc:subject:date:message-id; s=default; bh=CUlPH6D5sfBPcPQm922POthO+U0=; b=EmaJ7zg2NUZf2DNDnPsb/+IfbRhI W5aCseW60PdzzlXj5bc1bdOFyr4WnB79ZIinFGltjROV6YTCOKf8zgmXo3LAgDAY DO/nluwrLbCENCQKeb/KaTMzMjtJR0yMSqbqYezONAtWNNGc+ma9a02gV7NGcx7t osZJ1TClhXz7uR8= Received: (qmail 13927 invoked by alias); 15 Oct 2018 20:50:06 -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 13899 invoked by uid 89); 15 Oct 2018 20:50:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=1986, Hx-spam-relays-external:209.85.222.194, H*RU:209.85.222.194 X-HELO: mail-qk1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=XmI5DpuNIJheobh6YBPom6nsLX0GsY6et+MfjjKCuK8=; b=Ro6CC+bGouXCoqYLu8Vo7lSoNyXbEP13qqHKZiVkL/5EmVREfzyvoBrMWNhzx/rjws SP6S0FBJkpj6yRbpqGjJc7Z43JANEzwEcVmkud0CHQjvQApSyuPMs/BWpe4baRAtUt2q CFjlzCFeKQl0OiN/WR0fmZeIUo+pZcQYW3Dtk= Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: hpa@zytor.com Subject: [PATCH 01/12] termios: Define TIOCSER_TEMT with __USE_MISC (BZ#17783) Date: Mon, 15 Oct 2018 17:49:45 -0300 Message-Id: <20181015204956.25558-1-adhemerval.zanella@linaro.org> This patch defines TIOCSER_TEMT on all architectures using the __USE_MISC guards similar to BZ#17782 fix. Latest Linux UAPI defines TIOCSER_TEMT with the same value for all architectures, so it is safe to use the value as default for all ABIs. Checked on x86_64linux-gnu and build against sparc64-linux-gnu and powerpc64le-linux-gnu. * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Define. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC] (TEOCSER_TEMT): Likewise. --- sysdeps/unix/sysv/linux/bits/termios.h | 5 +++++ sysdeps/unix/sysv/linux/powerpc/bits/termios.h | 4 +++- sysdeps/unix/sysv/linux/sparc/bits/termios.h | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/sysdeps/unix/sysv/linux/bits/termios.h b/sysdeps/unix/sysv/linux/bits/termios.h index 35efa97576..1e567affc3 100644 --- a/sysdeps/unix/sysv/linux/bits/termios.h +++ b/sysdeps/unix/sysv/linux/bits/termios.h @@ -198,6 +198,11 @@ struct termios # define EXTPROC 0200000 #endif +#ifdef __USE_MISC +/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ +# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ +#endif + /* tcflow() and TCXONC use these */ #define TCOOFF 0 #define TCOON 1 diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h index 1362cce551..afe592d5e4 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h @@ -273,7 +273,9 @@ struct ltchars { #define _VEOL2 8 #define _VSWTC 9 +#ifdef __USE_MISC /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ -#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ +# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ +#endif #endif /* __USE_MISC */ diff --git a/sysdeps/unix/sysv/linux/sparc/bits/termios.h b/sysdeps/unix/sysv/linux/sparc/bits/termios.h index 4489b6c2fd..ffe8483694 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/termios.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/termios.h @@ -203,9 +203,9 @@ struct termios # define EXTPROC 0x00010000 #endif -# if defined __USE_GNU +#ifdef __USE_MISC /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ -#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ +# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ #endif /* tcflow() and TCXONC use these */