public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Fix signalfd_siginfo on 32-bit
@ 2008-01-11 10:02 Andreas Jaeger
  2008-01-11 20:30 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Jaeger @ 2008-01-11 10:02 UTC (permalink / raw)
  To: GNU libc hackers

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]


Bug 5600 states that on 32-bit struct signalfd_siginfo is wrong.  The
resolution is wrong IMO but I agree that we have a problem:

The linux kernel header has:
       __u64 ssi_ptr;

while glibc uses
  uintptr_t ssi_ptr;

This should result on 32-bit in differences for the following members
and for the size of the structure.

I suggest the following patch.  Ok to commit?

Andreas

2008-01-11  Andreas Jaeger  <aj@suse.de>

	[BZ #5600]
	* sysdeps/unix/sysv/linux/sys/signalfd.h (struct
	signalfd_siginfo): Use 64-bit type for ssi_ptr to sync with Linux
	kernel header.

============================================================
Index: sysdeps/unix/sysv/linux/sys/signalfd.h
--- sysdeps/unix/sysv/linux/sys/signalfd.h	3 Dec 2007 06:16:54 -0000	1.3
+++ sysdeps/unix/sysv/linux/sys/signalfd.h	11 Jan 2008 10:01:03 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2007, 2008 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,7 +38,7 @@ struct signalfd_siginfo
   uint32_t ssi_trapno;
   int32_t ssi_status;
   int32_t ssi_int;
-  uintptr_t ssi_ptr;
+  uint64_t ssi_ptr;
   uint64_t ssi_utime;
   uint64_t ssi_stime;
   uint64_t ssi_addr;

-- 
 Andreas Jaeger, Director Platform/openSUSE, aj@suse.de
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix signalfd_siginfo on 32-bit
  2008-01-11 10:02 Fix signalfd_siginfo on 32-bit Andreas Jaeger
@ 2008-01-11 20:30 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2008-01-11 20:30 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: GNU libc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Jaeger wrote:
> I suggest the following patch.  Ok to commit?

Yes.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHh9Hg2ijCOnn/RHQRAkY0AJ9rEAyE8DHqD2ziSoGHiTiFcDzClgCfcF7O
b0OstOUMSofTRzTJxfxKpmM=
=4b30
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-11 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-11 10:02 Fix signalfd_siginfo on 32-bit Andreas Jaeger
2008-01-11 20:30 ` Ulrich Drepper

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).