From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16923 invoked by alias); 19 Nov 2005 13:51:15 -0000 Received: (qmail 16895 invoked by uid 22791); 19 Nov 2005 13:51:15 -0000 Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 19 Nov 2005 13:51:14 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id jAJDp4mO015933; Sat, 19 Nov 2005 14:51:04 +0100 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id jAJDp4q2015932; Sat, 19 Nov 2005 14:51:04 +0100 Date: Sat, 19 Nov 2005 13:51:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Define shmatt_t type on ia64 Message-ID: <20051119135104.GQ16723@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00017.txt.bz2 Hi! All arches but ia64 define this type, mandated by POSIX. 2005-11-19 Jakub Jelinek * sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type. (struct shmid_ds): Use it for shm_nattch field. --- libc/sysdeps/unix/sysv/linux/ia64/bits/shm.h.jj 2005-11-18 20:48:37.000000000 +0100 +++ libc/sysdeps/unix/sysv/linux/ia64/bits/shm.h 2005-11-19 14:36:14.000000000 +0100 @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2002 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2002, 2005 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 @@ -38,6 +38,8 @@ /* Segment low boundary address multiple. */ #define SHMLBA (1024 * 1024) +/* Type to count number of attaches. */ +typedef unsigned long int shmatt_t; /* Data structure describing a set of semaphores. */ struct shmid_ds @@ -49,7 +51,7 @@ struct shmid_ds __time_t shm_ctime; /* time of last change by shmctl() */ __pid_t shm_cpid; /* pid of creator */ __pid_t shm_lpid; /* pid of last shmop */ - unsigned long int shm_nattch; /* number of current attaches */ + shmatt_t shm_nattch; /* number of current attaches */ unsigned long int __unused1; unsigned long int __unused2; }; Jakub