From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 9B6F53858D1E; Sun, 12 Feb 2023 19:03:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B6F53858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676228614; bh=C33/7M2nftHOjsSgtCkgkW6e/ilj7NQe3fZnIGZs7tI=; h=From:To:Subject:Date:From; b=T6Y6EM0hn0VI5K4uABEkc9QYIvlrOJqW3vkK9xqKY4qVk7X3h5uJqOs8XwhltoPUI rlHVJCJb2+V36HkqpV5bTL6X8EYdiY3BdVkipQ07NYH6GNcX+XqRFcy6F8k/jJ6w4X j79VUO2xbSNOcaFFq6NRvQORX0U8BGysKcC0ZBVY= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix tcflag_t and speed_t types on 64-bit X-Act-Checkin: glibc X-Git-Author: Sergey Bugaev X-Git-Refname: refs/heads/master X-Git-Oldrev: 23e2c3b25f67ae3f656d476d8bd27a6f4b44d9e4 X-Git-Newrev: 3e35b824a4dc0f6b67a7edaf4962e7492aed9d4f Message-Id: <20230212190334.9B6F53858D1E@sourceware.org> Date: Sun, 12 Feb 2023 19:03:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e35b824a4dc0f6b67a7edaf4962e7492aed9d4f commit 3e35b824a4dc0f6b67a7edaf4962e7492aed9d4f Author: Sergey Bugaev Date: Sun Feb 12 19:08:57 2023 +0300 hurd: Fix tcflag_t and speed_t types on 64-bit These are supposed to stay 32-bit even on 64-bit systems. This matches BSD and Linux, as well as how these types are already defined in tioctl.defs Signed-off-by: Sergey Bugaev Diff: --- bits/termios.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bits/termios.h b/bits/termios.h index 4439c2f14e..6a883cebba 100644 --- a/bits/termios.h +++ b/bits/termios.h @@ -99,13 +99,13 @@ `tcflag_t', `cc_t', `speed_t' and the `TC*' constants appropriately. */ /* Type of terminal control flag masks. */ -typedef unsigned long int tcflag_t; +typedef unsigned int tcflag_t; /* Type of control characters. */ typedef unsigned char cc_t; /* Type of baud rate specifiers. */ -typedef long int speed_t; +typedef int speed_t; /* Terminal control structure. */ struct termios