From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94529 invoked by alias); 7 Jun 2017 09:08:24 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 94510 invoked by uid 89); 7 Jun 2017 09:08:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 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= X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Jun 2017 09:08:21 +0000 Received: from [88.198.220.131] (helo=sslproxy02.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1dIWwx-00022i-TB for newlib@sourceware.org; Wed, 07 Jun 2017 11:08:23 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dIWwx-0006o3-Jk for newlib@sourceware.org; Wed, 07 Jun 2017 11:08:23 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 7C8FA2A004F for ; Wed, 7 Jun 2017 11:08:24 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XXjiYR9LXSI0 for ; Wed, 7 Jun 2017 11:08:23 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 7F31A2A160A for ; Wed, 7 Jun 2017 11:08:23 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Jo9VRhFXP7-L for ; Wed, 7 Jun 2017 11:08:23 +0200 (CEST) Received: from huber-linux.eb.localhost (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id 4C3CE2A004F for ; Wed, 7 Jun 2017 11:08:23 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH] Fix RTEMS ioctl() declaration Date: Wed, 07 Jun 2017 09:08:00 -0000 Message-Id: <20170607090821.14403-1-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00385.txt.bz2 Using uint32_t for ioctl_command_t does not work well on 64-bit targets. Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/sys/ioccom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newlib/libc/sys/rtems/include/sys/ioccom.h b/newlib/libc/sys/rtems/include/sys/ioccom.h index 9c5350d1e..2c0e9ee71 100644 --- a/newlib/libc/sys/rtems/include/sys/ioccom.h +++ b/newlib/libc/sys/rtems/include/sys/ioccom.h @@ -36,7 +36,7 @@ #include #include -typedef uint32_t ioctl_command_t; +typedef unsigned long ioctl_command_t; /* * Ioctl's have the command encoded in the lower word, and the size of @@ -79,7 +79,7 @@ typedef uint32_t ioctl_command_t; #include __BEGIN_DECLS -int ioctl(int, unsigned long, ...); +int ioctl(int, ioctl_command_t, ...); __END_DECLS #endif -- 2.12.3