freebsd-nq/include
David Malone fc39509245 Cleanup of bitstring.h:
1) Add FreeBSD: tag.
2) Add parenthesis around macro args.
3) Add parenthesis around macros which are expressions.
4) Add do { ... } while (0) around macros which are compound statements.
5) Sync bitstr_size and bit_alloc with neater versions from NetBSD.
6) Fix bit_ffs and bit_ffc so that they don't search off the end of the
	bitstirng.
7) Try to avoid rightshifting signed ints.

I didn't take NetBSD's version directly as the macros are significantly
slower for long bitstrings. Bruce reviewed a previous version of
this patch.

PR:		21204
Submitted by:	bob@immure.com
Reviewed by:	bde
2000-10-09 12:34:51 +00:00
..
arpa $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
protocols Zap $Revision$ 1999-09-05 17:43:31 +00:00
rpc Back out 1.15. It caused more harm than good. Something, however, 2000-07-21 14:49:09 +00:00
rpcsvc $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +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
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 $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
elf.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
err.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
fnmatch.h Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME 1999-11-21 17:32:45 +00:00
fstab.h Change to comment for fs_passno to reflect that it applies 1997-01-28 06:11:45 +00:00
fts.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
glob.h Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header. 1998-02-25 02:15:59 +00:00
grp.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
hesiod.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
histedit.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
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 $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
libgen.h Import XPG4-compliant basename(3) and dirname(3) from OpenBSD. 2000-08-31 15:56:15 +00:00
limits.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
link.h Update the prototype for "r_brk" to correspond with the change in 2000-09-18 20:40:32 +00:00
locale.h Basic support for LC_MESSAGES 1998-04-29 22:39:56 +00:00
Makefile Welcome stdbool.h. A header file from the ANSI C99 specification. 2000-09-16 07:28:44 +00:00
malloc.h This file is deprecated not "obsoleted". 1997-04-13 11:33:17 +00:00
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 Add missing declarations. 1999-06-21 17:07:20 +00:00
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 $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
nlist.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
nsswitch.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
objformat.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
paths.h Move nologin from /etc to /var/run. This means one less file that has 1999-01-11 09:07:42 +00:00
pthread_np.h Cleanups to the pthread header files. 1999-07-31 08:36:07 +00:00
pthread.h Fixed missing consts for function parameters, so that the code matches 2000-05-11 15:57:17 +00:00
pwd.h Use the correct type for uid and gid in struct passwd. Document it. 1999-01-18 02:14:20 +00:00
ranlib.h
regex.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
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 Suggested by: bde 1998-01-20 09:09:24 +00:00
sgtty.h
signal.h Remove the inline versions of sigaddset, sigdelset, sigemptyset, 1999-10-02 19:33:23 +00:00
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
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 $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
string.h Add prototypes for strl* functions 1999-08-16 06:53:13 +00:00
stringlist.h Add stringlist functions from NetBSD. (required for the new ftp(1) 1997-06-25 08:04:52 +00:00
strings.h
struct.h
sysexits.h
tar.h
time.h Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc. 1999-01-04 20:45:20 +00:00
timers.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
ttyent.h MF22: prototype fix. 1998-07-16 00:10:14 +00:00
unistd.h Move setproctitle() from libutil to libc (after a repo-copy) 2000-09-02 01:51:36 +00:00
utime.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
utmp.h $Id$ -> $FreeBSD$ 1999-08-27 23:45:13 +00:00
vis.h Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE. 2000-07-01 15:55:49 +00:00