freebsd-dev/sys
Poul-Henning Kamp 46aa3347cb Convert all users of fldoff() to offsetof(). fldoff() is bad
because it only takes a struct tag which makes it impossible to
use unions, typedefs etc.

Define __offsetof() in <machine/ansi.h>

Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h>

Remove myriad of local offsetof() definitions.

Remove includes of <stddef.h> in kernel code.

NB: Kernelcode should *never* include from /usr/include !

Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API.

Deprecate <struct.h> with a warning.  The warning turns into an error on
01-12-2000 and the file gets removed entirely on 01-01-2001.

Paritials reviews by:   various.
Significant brucifications by:  bde
2000-10-27 11:45:49 +00:00
..
alpha Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
amd64 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
boot Backout revision 1.7 which was a bad idea since it would force people 2000-10-27 09:36:34 +00:00
cam Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
coda Forward-declare struct mbuf so that this file is less self-insufficient 2000-10-05 11:58:22 +00:00
compat Bring cpuinfo closer to what it looks like in Linux 2.2. 2000-10-25 22:38:23 +00:00
compile
conf Expand on the reasons for and against defining NO_F00F_HACK. This is one of 2000-10-27 10:57:33 +00:00
contrib/dev Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
crypto Fix broken const'ness in declaration of sha1_loop(). 2000-10-09 18:49:14 +00:00
ddb Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
dev Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
fs Rev 1.41 was committed from wrong diff, now do it right. 2000-10-22 16:15:12 +00:00
geom Avoid the modules madness I inadvertently introduced by making the 2000-09-02 19:17:34 +00:00
gnu Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
i4b Add infrastructure for Cologne Chip HFC-S PCI driver. 2000-10-26 07:00:05 +00:00
i386 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
ia64 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
isa Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
isofs/cd9660 Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
kern Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
libkern Fix compilation of profiled kernels by including <machine/lock.h> 2000-10-14 08:34:27 +00:00
miscfs Rev 1.41 was committed from wrong diff, now do it right. 2000-10-22 16:15:12 +00:00
modules As the blocking model has seems to be troublesome for many, disable 2000-10-27 06:06:04 +00:00
msdosfs Update stale comment. 2000-10-22 14:24:30 +00:00
net Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
netatalk Just need to pass the address family to if_simloop(), not the whole sockaddr. 2000-05-24 21:16:56 +00:00
netatm Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
netgraph Since neither archie nor I work at Whistle any more, change our email 2000-10-24 17:32:45 +00:00
netinet Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
netinet6 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
netipx Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
netkey Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
netnatm Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
netncp Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
netns Clean up some loose ends in the network code, including the X.25 and ISO 2000-02-13 03:32:07 +00:00
nfs Eliminate some bitrot (nonexisting member variable names). 2000-10-24 23:33:01 +00:00
nfsclient Eliminate some bitrot (nonexisting member variable names). 2000-10-24 23:33:01 +00:00
nfsserver Problem to avoid processes getting stuck in "vmopar". From Ian's 2000-10-24 10:13:36 +00:00
ntfs Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
nwfs Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
pc98 Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
pccard Change comment from sprintf to snprintf 2000-10-26 19:46:20 +00:00
pci Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
posix4 Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
powerpc - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
rpc
sys Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
tools remove crufty exec stuff, perl is in the base system 2000-06-27 19:09:55 +00:00
ufs o Introduce new VOP_ACCESS() flag VADMIN, allowing file systems to perform 2000-10-19 07:53:59 +00:00
vm - Catch a machine/mutex.h -> sys/mutex.h I somehow missed. 2000-10-25 00:04:16 +00:00
Makefile I should know better than to touch this without testing a 'make release' 2000-08-24 18:53:09 +00:00