This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2210
  [PATCH] Move sys/io.h to sysdeps/{i386,x86_64}/ Last modified: 2006-02-03 22:16
     Query page      Enter new bug
Bug#: 2210   Hardware:   Reporter: Robert Millan <rmh@aybabtu.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: WONTFIX   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
sys_io_h.diff move sys/io.h to sysdeps/{i386,x86_64} patch 2006-01-26 08:00 Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2210 depends on: Show dependency tree
Show dependency graph
Bug 2210 blocks:

Additional Comments:


Leave as RESOLVED WONTFIX
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-01-26 07:58
Former discussion in libc-alpha (see
http://sources.redhat.com/ml/libc-alpha/2002-09/msg00153.html) suggests that it
is not a problem if sys/io.h declares iopl() when the system doesn't have it. 
Besides, iopl() can be implemented in userland when kernel offers an interface
with similar functionality (for kFreeBSD, we implemented it as a wrapper to
/dev/io).

If we count i386-pc-kfreebsd-gnu and x86_64-pc-kfreebsd-gnu, that'll be at least
5 platforms using a copy of the same sys/io.h file (only with cosmetical
differences).  I think it makes sense to move to sysdeps/i386 and sysdeps/x86_64
so that the file can be shared between them.

Please consider the attached patch.

------- Additional Comment #1 From Robert Millan 2006-01-26 08:00 -------
Created an attachment (id=848)
move sys/io.h to sysdeps/{i386,x86_64}

2006-01-26  Robert Millan  <robertmh@gnu.org>

	* sysdeps/unix/sysv/linux/i386/sys/io.h:  Move to ...
	* sysdeps/i386/sys/io.h:  ... here.
	* sysdeps/mach/hurd/i386/sys/io.h:  Remove.

	* sysdeps/i386/Dist:  Add sys/io.h.
	* sysdeps/i386/Makefile:  Ditto.
	* sysdeps/mach/hurd/i386/Dist:	Remove sys/io.h.
	* sysdeps/mach/hurd/i386/Makefile:  Ditto.
	* sysdeps/unix/sysv/linux/i386/Dist:  Ditto.
	* sysdeps/unix/sysv/linux/i386/Makefile:  Ditto.

	* sysdeps/unix/sysv/linux/x86_64/sys/io.h:  Move to ...
	* sysdeps/x86_64/sys/io.h:  ... here.

	* sysdeps/x86_64/Dist:	Add sys/io.h.
	* sysdeps/x86_64/Makefile:  Ditto.
	* sysdeps/unix/sysv/linux/x86_64/Dist:	Remove sys/io.h.
	* sysdeps/unix/sysv/linux/x86_64/Makefile:  Ditto.

------- Additional Comment #2 From Ulrich Drepper 2006-02-03 22:16 -------
And use comments mentioning Linux on Hurd etc?  Right...

Beside, for these kind of system specific headers I have no interest in handling
the fallout of changes just because some platforms wants to be slightly different.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In