1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/include
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
..
arpa
protocols
rpc Back out 1.15. It caused more harm than good. Something, however, 2000-07-21 14:49:09 +00:00
rpcsvc
_ctype.h There is a problem in that one cannot use ctype.h at the same time as parts 2000-02-08 07:43:26 +00:00
a.out.h
ar.h
assert.h
bitstring.h Cleanup of bitstring.h: 2000-10-09 12:34:51 +00:00
ctype.h There is a problem in that one cannot use ctype.h at the same time as parts 2000-02-08 07:43:26 +00:00
db.h
dirent.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 05:07:58 +00:00
disktab.h
dlfcn.h Add a definition for RTLD_DEFAULT. 2000-09-19 04:24:50 +00:00
elf-hints.h
elf.h
err.h
fnmatch.h Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME 1999-11-21 17:32:45 +00:00
fstab.h
fts.h
glob.h
grp.h
hesiod.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
histedit.h
ieeefp.h Finish moving all IEEE fp types to be the same on all arch's. 2000-05-10 19:41:40 +00:00
ifaddrs.h add getifaddrs(3) from bsdi. this is a magic function which lets you grab 2000-07-05 02:13:17 +00:00
iso646.h
libgen.h Import XPG4-compliant basename(3) and dirname(3) from OpenBSD. 2000-08-31 15:56:15 +00:00
limits.h
link.h Update the prototype for "r_brk" to correspond with the change in 2000-09-18 20:40:32 +00:00
locale.h
Makefile Add netnatm to LDIRS 2000-10-16 07:00:18 +00:00
malloc.h
math.h
memory.h
mpool.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
ndbm.h
netdb.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
nl_types.h
nlist.h
nsswitch.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
objformat.h
paths.h
pthread_np.h
pthread.h Fixed missing consts for function parameters, so that the code matches 2000-05-11 15:57:17 +00:00
pwd.h
ranlib.h
regex.h
regexp.h
resolv.h Getaddrinfo(), getnameinfo(), and etc support in libc/net. 1999-12-28 02:37:14 +00:00
rune.h
runetype.h
search.h fix spelling errors. 2000-07-07 16:52:24 +00:00
setjmp.h
sgtty.h
signal.h
stab.h
stdbool.h Welcome stdbool.h. A header file from the ANSI C99 specification. 2000-09-16 07:28:44 +00:00
stddef.h Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
stdio.h Fixed missing declaration of ctermid_r(3). 1999-12-23 16:33:12 +00:00
stdlib.h Fixed missing declaration of rand_r(3). 1999-12-23 15:58:20 +00:00
strhash.h
string.h
stringlist.h
strings.h
struct.h Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
sysexits.h
tar.h
time.h
timers.h
ttyent.h
unistd.h Move setproctitle() from libutil to libc (after a repo-copy) 2000-09-02 01:51:36 +00:00
utime.h
utmp.h
vis.h Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE. 2000-07-01 15:55:49 +00:00