From: Ralf Baechle <ralf@linux-mips.org>
To: Ulrich Drepper <drepper@redhat.com>,
Glibc hackers <libc-hacker@sources.redhat.com>,
linux-mips@linux-mips.org
Cc: jsun@mvista.com
Subject: [PATCH] Fix sigevent_t stuff
Date: Sun, 31 Aug 2003 14:59:00 -0000 [thread overview]
Message-ID: <20030831145854.GB23189@linux-mips.org> (raw)
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 <ralf@linux-mips.org>
* 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
};
next reply other threads:[~2003-08-31 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-31 14:59 Ralf Baechle [this message]
2003-08-31 16:12 ` Ralf Baechle
[not found] ` <20030831164812.GB766@bogon.ms20.nix>
2003-09-03 12:57 ` More sigevent Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030831145854.GB23189@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=drepper@redhat.com \
--cc=jsun@mvista.com \
--cc=libc-hacker@sources.redhat.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).