Bug 12344 - HPPA has invalid _CLOEXEC and _NONBLOCK values in multiple headers
HPPA has invalid _CLOEXEC and _NONBLOCK values in multiple headers
Status: ASSIGNED
Product: glibc
Classification: Unclassified
Component: ports
unspecified
: P2 normal
: ---
Assigned To: Carlos O'Donell
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-23 14:32 UTC by Guy Martin
Modified: 2012-02-19 02:10 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
_CLOEXEC and _NONBLOCK patch (15.90 KB, patch)
2010-12-23 14:32 UTC, Guy Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Martin 2010-12-23 14:32:18 UTC
Created attachment 5163 [details]
_CLOEXEC and _NONBLOCK patch

The attached patch is just a copy of the common headers with the _CLOEXEC and _NONBLOCK values updated.

This causes run time failure with lots of applications such as udev, apr, ...


2011-12-23  Guy Martin <gmsoft@tuxicoman.be>

	* ports/sysdeps/unix/sysv/linux/hppa/sys/epoll.h
	Fix EPOLL_CLOEXEC and EPOLL_NONBLOCK to match kernel definition.
	* ports/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
	Fix EFD_CLOEXEC and EFD_NONBLOCK to match kernel definition.
	* ports/sysdeps/unix/sysv/linux/hppa/sys/inotify.h
	Fix IN_CLOEXEC and IN_NONBLOCK to match kernel definition.
	* ports/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
	Fix SFD_CLOEXEC and SFD_NONBLOCK to match kernel definition.
	* ports/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
	Fix TFD_CLOEXEC and TFD_NONBLOCK to match kernel definition.
Comment 1 Carlos O'Donell 2010-12-23 14:36:20 UTC
Guy,

Thank you for submitting this bug. I will look into this and get it checked into upstream.

Notes:
Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=331119
Comment 2 Joseph Myers 2012-02-19 02:10:17 UTC
Carlos, ping.  This has been ASSIGNED since 2010.  It looks like ports *does* now have headers like this (I haven't checked the values) although some now need replacing with bits/*.h headers in line with my recent libc changes.