Bug 12344 - [hppa] HPPA has invalid _CLOEXEC and _NONBLOCK values in multiple headers
Summary: [hppa] HPPA has invalid _CLOEXEC and _NONBLOCK values in multiple headers
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.15
: P2 normal
Target Milestone: ---
Assignee: Carlos O'Donell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 14:32 UTC by Guy Martin
Modified: 2015-08-17 12:27 UTC (History)
2 users (show)

See Also:
Host: hppa*-*-linux*
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
_CLOEXEC and _NONBLOCK patch (3.81 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.
Comment 3 Mike Frysinger 2015-08-17 12:27:27 UTC
this was committed in 2011 here:
https://sourceware.org/git/?p=glibc.git;a=commit;h=db6a567d0ddd816b1134651ddb66b66dbea2f40d

and was part of the glibc-ports-2.15 release