From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15758 invoked by alias); 31 Aug 2003 14:59:06 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 15742 invoked from network); 31 Aug 2003 14:59:05 -0000 Received: from unknown (HELO dea.linux-mips.net) (80.139.102.133) by sources.redhat.com with SMTP; 31 Aug 2003 14:59:05 -0000 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by dea.linux-mips.net (8.12.8/8.12.8) with ESMTP id h7VEwu1p009996; Sun, 31 Aug 2003 16:58:56 +0200 Received: (from ralf@localhost) by dea.linux-mips.net (8.12.8/8.12.8/Submit) id h7VEwt1N009995; Sun, 31 Aug 2003 16:58:55 +0200 Date: Sun, 31 Aug 2003 14:59:00 -0000 From: Ralf Baechle To: Ulrich Drepper , Glibc hackers , linux-mips@linux-mips.org Cc: jsun@mvista.com Subject: [PATCH] Fix sigevent_t stuff Message-ID: <20030831145854.GB23189@linux-mips.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-SW-Source: 2003-08/txt/msg00045.txt.bz2 Uli, below patch fixes a mismatch between glibc and the kernel header's definition on MIPS. Please apply. Thanks, Ralf 2003-08-31 Ralf Baechle * sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Delete comment obsoleted by this patch. (__SIGEV_PAD_SIZE: Change the definition such that it'll keep the size of sigevent_t at SIGEV_MAX_SIZE bytes for 64-bit also. (SIGEV_MAX_SIZE): Remove unused definition making this match the kernel definition. Index: sysdeps/unix/sysv/linux/mips/bits/siginfo.h =================================================================== RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/mips/bits/siginfo.h,v retrieving revision 1.10 diff -u -r1.10 siginfo.h --- sysdeps/unix/sysv/linux/mips/bits/siginfo.h 22 May 2003 02:26:29 -0000 1.10 +++ sysdeps/unix/sysv/linux/mips/bits/siginfo.h 31 Aug 2003 14:31:00 -0000 @@ -255,12 +255,13 @@ /* Structure to transport application-defined values with signals. */ # define __SIGEV_MAX_SIZE 64 -# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) +# define __SIGEV_HEAD_SIZE (sizeof(long) + 2*sizeof(int)) +# define __SIGEV_PAD_SIZE \ + ((__SIGEV_MAX_SIZE-__SIGEV_HEAD_SIZE) / sizeof(int)) /* Forward declaration of the `pthread_attr_t' type. */ struct __pthread_attr_s; -/* XXX This one might need to change!!! */ typedef struct sigevent { sigval_t sigev_value; @@ -290,8 +291,6 @@ # define SIGEV_SIGNAL SIGEV_SIGNAL SIGEV_NONE, /* Other notification: meaningless. */ # define SIGEV_NONE SIGEV_NONE - SIGEV_CALLBACK, /* Deliver via thread creation. */ -# define SIGEV_CALLBACK SIGEV_CALLBACK SIGEV_THREAD /* Deliver via thread creation. */ # define SIGEV_THREAD SIGEV_THREAD };