NetBSD/usr.sbin
apb 09ba0a6ca8 Replace local swap16, swap32, and swap64 inline functions with the
NetBSD conventional bswap16, bswap32, and bswap64 functions or macros.

In a non-tools build, include <sys/types.h> and <machine/bswap.h> to
get definitions of these functions.  In a tools build, rely on the
functions or macros being provided by nbtool_config.h, but don't incluce
<machine/bswap.h> (which might not exist in a cross build).

This should address a problem building on OpenBSD, which has swap16,
swap32, and swap64 macros that conflicted with the local definitions.
The problem was reported by Alexander Bluhm, but this patch is quite
different from the one he suggested.
2009-03-06 19:05:11 +00:00
..
ac
accton Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
acpitools Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
altq Add support for source address hashhing in ALTQs WFQ. This allows to 2008-09-11 17:58:59 +00:00
apm Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
apmd Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
arp Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
bad144 Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
bind Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
bootp Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
btattach Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btconfig Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btdevctl Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
bthcid Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
btpand use some size_t instead of int 2009-02-04 19:24:18 +00:00
catman WARNS=4 love. 2008-05-02 19:59:19 +00:00
chown Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
chroot Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
chrtbl Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
cnwctl WARNS=4 love. 2008-05-02 19:59:19 +00:00
cpuctl cpuctl list: map hardware id after getting state. avoids screwed up display 2009-01-28 22:37:09 +00:00
cron Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
dev_mkdb fix suseconds_t format. 2008-12-28 21:39:35 +00:00
dhcp Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
diskpart Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
dumpfs Since we're printing loc2 and loc3, make the headings match what we print. 2008-08-07 22:26:14 +00:00
dumplfs Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
edquota Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
eeprom Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
envstat New sentence, new line. Bump date for previous. 2009-02-15 00:01:19 +00:00
eshconfig WARNS=4 love. 2008-05-02 19:59:19 +00:00
etcupdate Output (when verbose) when storing checksum files. 2008-11-08 02:11:54 +00:00
extattrctl
faithd include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
fssconfig Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
fusermount Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
fwctl WARNS=4 love. 2008-05-02 19:59:19 +00:00
gpioctl Staticify fully now. 2008-01-09 16:08:33 +00:00
grfconfig Fix less-than-or-equal to just less-than. 2008-09-27 04:16:15 +00:00
grfinfo Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
gspa Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
hilinfo
hprop Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
ifmcstat
ifwatchd Just ignore a bunch of well-known routing socket messages ifwatchd 2008-05-24 17:45:14 +00:00
inetd - when we close an se_fd, set it to -1 2009-01-08 21:37:20 +00:00
installboot CID 4393: plug memory leak. 2009-02-18 20:06:27 +00:00
iopctl Use le16toh() instead of le32toh() on a 16 bit value. Fixes display of 2008-09-17 16:03:28 +00:00
iostat Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
ipf Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
iprop-log Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
ipwctl Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
irdaattach Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
iscsi -D_FILE_OFFSET_BITS=64 is not needed on NetBSD. 2007-10-26 19:04:21 +00:00
isdn Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
iteconfig
iwictl convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
kadmin Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kcm Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kdc Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kdigest Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kgmon fix -Wsign-compare issues 2009-01-18 09:46:59 +00:00
kimpersonate Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kstash Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
ktutil Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
kvm_mkdb Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
lastlogin
link Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
lmcconfig
lockstat Report LB_MISC events, for one-off instrumentation. 2009-02-22 15:08:58 +00:00
lpr fix -Wsign-compare issues 2009-01-18 09:57:26 +00:00
lptctl Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
mailwrapper
makefs Bump date for last change. 2009-01-20 20:47:25 +00:00
map-mbone include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
mdconfig
mdsetimage Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
memswitch Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
mld6query Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mlxctl Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
mmcformat Remove idd `tag' left over from importing this file into NetBSD. 2009-02-16 06:46:54 +00:00
mopd Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
mountd No empty structure initialisation. 2008-08-29 00:50:45 +00:00
moused Replace gcc initialisers with c99 initialisers. 2008-07-21 12:44:25 +00:00
mrinfo Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mrouted - Clean up warnings / errors. 2008-08-26 17:38:21 +00:00
mscdlabel Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
mtrace Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
mtree New sentence, new line. 2009-02-02 03:27:37 +00:00
ndbootd Enable gcc optimization on m68000 (sun2) again with minimum hacks. 2008-04-27 03:06:46 +00:00
ndiscvt Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
ndp Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
netgroup_mkdb convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
nfsd Silly-rename child to worker (no pun intended .. maybe). 2008-11-21 07:48:35 +00:00
ntp merge ntp 4.2.4p6 2009-01-08 20:09:03 +00:00
ofctl Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
paxctl fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
pcictl Make the output of 'list -n' aligned by always printing 8 hex digits. 2007-02-08 23:27:07 +00:00
pf Install /etc/pf.os with 444 permissions. 2008-06-20 17:04:45 +00:00
postinstall As long as we don't yet have a working TOOL_GREP, 2009-02-26 10:32:43 +00:00
powerd Note addition of hotkey_button scripts. 2007-12-22 18:40:21 +00:00
pppd remove genmask completely and correctly. 2008-10-25 22:12:20 +00:00
psrset fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
pstat consistently print dev_t's 2008-12-28 23:02:28 +00:00
puffs Make "sftp" a link. 2009-02-26 07:14:36 +00:00
pvcsif * Don't include headers twice 2007-01-16 17:32:04 +00:00
pvctxctl * Don't include headers twice 2007-01-16 17:32:04 +00:00
pwd_mkdb Replace local swap16, swap32, and swap64 inline functions with the 2009-03-06 19:05:11 +00:00
quot Eliminate MFSNAMELEN 2007-07-17 22:00:46 +00:00
quotacheck PR/39719: Edgar Fu: block/inode typo in quotacheck(8) 2008-10-09 14:56:35 +00:00
quotaon Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
racoon Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
racoonctl Disable debug. 2009-02-13 16:16:26 +00:00
rarpd Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
rbootd Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
rdate Remove unused ctype.h 2007-03-10 01:16:17 +00:00
repquota Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
rip6query Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the 2007-05-28 12:06:17 +00:00
rmt Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
route6d #include <stdbool.h> for bool. 2008-01-21 20:46:58 +00:00
rpc.bootparamd Be consistent (like the other rpc* manual pages) and have the 2008-11-08 02:08:39 +00:00
rpc.lockd fix dev_t format. 2008-12-29 03:38:26 +00:00
rpc.pcnfsd Refine previous: can put the main -> mymain thing in the .x file, which is 2008-09-30 06:25:22 +00:00
rpc.statd convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
rpc.yppasswdd This file requires errno.h 2008-02-24 21:10:02 +00:00
rpcbind fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
rtadvd fix format of time_t 2008-12-29 04:01:21 +00:00
rtsold Avoid zooming off the end of a malloced region. Makes rtsol{,d} -a work. 2008-06-23 04:55:27 +00:00
rwhod Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sa Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
schedctl fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
screenblank Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
sdpd use msg_flags field to determine 2009-01-15 23:17:00 +00:00
sendmail
services_mkdb Comment out CFLAGS+=-g. 2009-02-13 16:02:05 +00:00
sesd * Don't include headers twice 2007-01-16 17:32:04 +00:00
sliplogin Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
sntp merge ntp 4.2.4p6 2009-01-08 20:09:03 +00:00
spray
srtconfig From Zafer Aydogan: Fix a typo: s/distination/destination/ 2007-08-05 09:31:24 +00:00
sti Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
sunlabel Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
sup fix horrible memory trashing. 2009-03-04 18:22:14 +00:00
syslogd PR/40563: Takahiro Hayashi: syslogd(8) refers freed pointer on exiting 2009-02-06 21:09:46 +00:00
tadpolectl Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
tcpdchk
tcpdmatch
tcpdrop Set the mib appropriately depending on the socket address family. 2007-06-28 18:47:17 +00:00
tcpdump Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
timed Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
tpctl do WSMOUSEIO_SETVERSION when WSMOUSEIO_SETVERSION is defined. 2009-03-03 18:43:15 +00:00
tprof fix an error message. 2009-01-26 05:53:10 +00:00
traceroute Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
traceroute6 synchronize error flags with own comment and with traceroute, as discussed 2009-02-16 20:36:11 +00:00
trpt Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
unlink Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
usbdevs Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
user Improve -G documentation. It may be repeated. 2009-01-14 02:18:28 +00:00
veriexecgen Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
videomode Avoid casting an uisigned to a signed value, thereby invoking formally 2009-01-17 22:01:32 +00:00
vipw Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-21 13:36:57 +00:00
vnconfig fix dev_t format. 2008-12-29 03:49:17 +00:00
wiconfig Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
wlanctl Use __arraycount(). Do not needlessly import net80211/ieee80211_node.h. 2007-12-22 00:58:15 +00:00
wpa don't need this anymore. 2008-12-12 21:41:04 +00:00
wsconscfg kill license clauses 3 and 4 2008-05-26 12:15:42 +00:00
wsfontload kill license clauses 3 and 4 2008-05-26 12:15:42 +00:00
wsmoused fix version ioctl 2009-01-19 00:53:15 +00:00
wsmuxctl Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ypbind fix -Wsign-compare issues 2009-01-18 10:39:17 +00:00
yppoll Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ypserv Disable hostname lookup for ypserv(8) libwrap access control, 2008-05-16 16:41:42 +00:00
ypset Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
zdump
zic
Makefile Now that MKPUFFS is default, kill it as advertised. 2008-11-12 13:17:27 +00:00
Makefile.inc