freebsd-dev/sys/compat/linux
Peter Wemm f41325db5f With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something
a little more flexible.  <sys/linker_set.h> now provides macros for
accessing elements and completely hides the implementation.

The linker_set.h macros have been on the back burner in various
forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()),
John Polstra (ELF clue) and myself (cleaned up API and the conversion
of the rest of the kernel to use it).

The macros declare a strongly typed set.  They return elements with the
type that you declare the set with, rather than a generic void *.

For ELF, we use the magic ld symbols (__start_<setname> and
__stop_<setname>).  Thanks to Richard Henderson <rth@redhat.com> for the
trick about how to force ld to provide them for kld's.

For a.out, we use the old linker_set struct.

NOTE: the item lists are no longer null terminated.  This is why
the code impact is high in certain areas.

The runtime linker has a new method to find the linker set
boundaries depending on which backend format is in use.

linker sets are still module/kld unfriendly and should never be used
for anything that may be modular one day.

Reviewed by:	eivind
2001-06-13 10:58:39 +00:00
..
linux_file.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
linux_ioctl.c With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
linux_ioctl.h Fix typo in license. 2000-08-25 07:32:24 +00:00
linux_ipc.c Don't auto-generate the syscalls. 2000-12-03 01:30:31 +00:00
linux_ipc.h fix a comment that was inadvertantly changed by a cvs merge 2000-11-02 15:04:19 +00:00
linux_mib.c o Move per-process jail pointer (p->pr_prison) to inside of the subject 2001-02-21 06:39:57 +00:00
linux_mib.h Fix typo in license. 2000-08-25 07:32:24 +00:00
linux_misc.c o Merge contents of struct pcred into struct ucred. Specifically, add the 2001-05-25 16:59:11 +00:00
linux_signal.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
linux_signal.h The MI/MD split wasn't perfect and the MI files need hacks for the 2000-11-01 19:48:35 +00:00
linux_socket.c Only pick up so_error the first time through with EISCONN, as advertised. 2001-03-02 19:29:53 +00:00
linux_socket.h translate the flags in recvfrom and recvmsg from linux to bsd ones 2000-12-19 00:24:25 +00:00
linux_stats.c S_IFCHR is not a bit mask, it's just a value in a field. The correct 2001-06-04 03:39:14 +00:00
linux_util.c Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
linux_util.h The MI/MD split wasn't perfect and the MI files need hacks for the 2000-11-01 19:48:35 +00:00