1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00
freebsd/sys/cam
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
..
scsi Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
cam_ccb.h cam_ccb.h: 2000-07-18 19:47:14 +00:00
cam_debug.h
cam_extend.c Remove unneeded #include <sys/kernel.h> 2000-04-29 15:36:14 +00:00
cam_extend.h
cam_periph.c Change the "Duplicate Wired Device entry" printout in camperiphnextunit to 2000-08-29 22:11:39 +00:00
cam_periph.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
cam_queue.c
cam_queue.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
cam_sim.c
cam_sim.h
cam_xpt_periph.h
cam_xpt_sim.h
cam_xpt.c - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
cam_xpt.h
cam.c
cam.h Various typo's. 2000-03-15 21:55:48 +00:00