This directory (~jc/src/misc) contains an assortment of useful programs, Most of the tools here are designed to be linked to the V ("verbose") package, so you might want to make first.
There is a Makefile entry to build the $(BIN) directory and fill it with the programs here. You should note that there are a few programs (addr, ping) here that need to be setuid or setgid; to make or install them, you need to be root.
The tar kit for this directory is made relative to this directory, so to unpack it, you should do something like:
mkdir misc cd misc zcat ../misc.tar.gz | tar xf - make test make install
Notes:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # First, before anything here will work, you need to create a # # local.h file. There are a number of *_local.h files here; # # pick one as a prototype and copy it to local.h; then edit # # local.h file to handle the system-dependent stuff. # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #Most of the C code here has been "verbosized" in a way that may not be familiar to many C programmers. The main thing to note is that the "real" sources have .b as a suffix, not .c, and the Makefile builds the .c file from the .b file by running it through the b-c script. This is a rather trivial little script, really just a call of sed, but it's convenient to put it in a scrit. What it does is selects among the source lines with : in column 1. Such lines can be either included in the .c source or blanked out. This is a simpler and cleaner scheme than complex #ifdefs to make multiple versions from the same source. I mostly just use it to enable or disable the debug lines. This way, they take one line rather than three.
Most of the programs here use the V package. If you don't have it, go get it and build it, and then come back here. It should be found wherever you found the tar kit for the misc package. The best place to install it is in ../V/, i.e., next door to the misc package.
Next, edit the Makefile and make sure it's right for your system. Note in particular that it needs a pointer to wherever you have installed the V package.
To build the non-setuid programs, type: make make bin
To build the rest, become super-user and type: make install
There are also some test programs in the test subdirectory. You can run them all by typing make test Of course, you can just use this as the first make command.
Note that most of these use the ../V/libV.a library, which must be present or not much will link. Make sure that you have the V package compiled ...
There are some programs here that the "make all" entry doesn't build. They are typically the ones that are hopelessly system-dependent. You might look around after the make works, and see what odds and ends are of interest.
Name Last modified Size Description
Parent Directory 20-Apr-2004 11:54 -
Abox 28-Sep-2006 23:38 61k
Box 28-Sep-2006 23:38 61k
Bp 28-Sep-2006 23:38 89k
Cbox 28-Sep-2006 23:38 61k
Configure 28-Sep-2006 23:28 8k
Cp 28-Sep-2006 23:38 89k
Darwin_local.h 13-Apr-2004 16:31 1k
FREEBSD_local.h 28-Sep-2006 23:29 1k
Fp 28-Sep-2006 23:38 65k
FreeBSD_local.h 23-Dec-2003 10:28 1k
GPL.txt 11-May-2002 10:03 18k
Hex 28-Sep-2006 23:47 5k
Hex.b 19-Dec-1999 23:08 1k
Hex.c 13-Apr-2004 12:47 1k
Lc 28-Sep-2006 23:38 89k
Lc.sh 24-Mar-2004 14:32 1k
LinkMy 17-Jan-2000 13:11 3k
Linux_local.h 13-Apr-2004 12:43 1k
Ln 28-Sep-2006 23:38 89k
Ln.sh 19-Jan-2004 15:46 94k
Makefile 28-Sep-2006 23:02 54k
Mkdir 28-Sep-2006 23:47 59k
Mkdr 23-Dec-2003 11:34 55k
Mv 28-Sep-2006 23:38 89k
Rm 28-Sep-2006 23:47 64k
Rm.b 06-Dec-1999 12:32 1k
Rm.c 20-Sep-2005 16:30 1k
Rs 28-Sep-2006 23:38 89k
Sbox 28-Sep-2006 23:38 61k
SunOS_local.h 17-Dec-2003 15:08 1k
Test 28-Apr-2003 10:12 10k
Tester 01-Oct-2002 09:20 10k
V.h 23-Dec-2003 10:30 38k
V_A_UC.h 17-Dec-2003 15:08 1k
V_D_UC.h 17-Dec-2003 15:08 1k
V_M_UC.h 06-Dec-1999 12:32 1k
V_S_UC.h 06-Dec-1999 12:32 1k
V_X_UC.h 06-Dec-1999 12:32 1k
V___lc.h 06-Dec-1999 12:32 1k
V_s_lc.h 06-Dec-1999 12:32 1k
V_t_lc.h 06-Dec-1999 12:32 1k
V_x_lc.h 06-Dec-1999 12:32 1k
Which 23-Dec-2003 11:34 57k
abbr.h 17-Dec-2003 15:08 4k
abox 28-Sep-2006 23:38 61k
addr.b 23-Dec-2003 11:42 20k
ae 28-Sep-2006 23:47 5k
ae.b 19-Dec-1999 23:08 1k
ae.c 19-Dec-1999 23:08 1k
aix_errno.h 17-Dec-2003 15:08 8k
aix_local.h 17-Dec-2003 15:08 7k
align 28-Sep-2006 23:47 60k
align.b 05-Jun-2000 00:00 12k
align.c 20-Sep-2005 16:30 12k
args 28-Sep-2006 23:47 5k
args.b 19-Dec-1999 23:08 1k
args.c 19-Dec-1999 23:08 1k
asc 28-Sep-2006 23:47 5k
asc.b 19-Dec-1999 23:08 1k
asc.c 19-Dec-1999 23:08 1k
ascii.h 18-Feb-1993 11:25 3k
b7 28-Sep-2006 23:47 45k
b7.b 06-Dec-1999 12:32 1k
b7.c 20-Sep-2005 16:30 1k
bar 24-Mar-2004 14:30 0k
box 28-Sep-2006 23:38 61k
box.b 17-Dec-2003 16:24 11k
box.c 20-Sep-2005 16:29 11k
bp 28-Sep-2006 23:38 89k
bp.b 06-Dec-1999 12:32 2k
bsplit 28-Sep-2006 23:47 7k
bsplit.b 28-Sep-2006 23:10 2k
bsplit.c 28-Sep-2006 23:10 2k
btags 14-Apr-2004 18:15 41k
byteyears 28-Sep-2006 23:47 59k
byteyears.b 12-Dec-2005 11:32 4k
byteyears.c 12-Dec-2005 11:32 4k
call 28-Sep-2006 23:47 55k
call.b 05-Jun-2000 00:00 2k
call.c 20-Sep-2005 16:30 2k
cbox 28-Sep-2006 23:38 61k
chars 28-Sep-2006 23:47 59k
chars.b 05-Jun-2000 00:00 4k
chars.c 20-Sep-2005 16:30 4k
charset 28-Sep-2006 22:53 11k
charset.b 06-Dec-1999 12:38 1k
charset.c 06-Dec-1999 12:38 1k
clmr 28-Sep-2006 23:38 89k
clmr.b 05-Jun-2000 00:00 32k
clmr.c 20-Sep-2005 16:29 32k
conn 28-Sep-2006 23:47 84k
conn.b 06-Dec-1999 12:32 5k
conn.c 20-Sep-2005 16:30 5k
connsig.b 06-Dec-1999 12:32 14k
connsig.c 06-Dec-1999 12:38 14k
copyright.h 03-Dec-1999 14:20 1k
count 28-Sep-2006 23:47 45k
count.b 23-Dec-2003 11:00 1k
count.c 20-Sep-2005 16:30 1k
cp 28-Sep-2006 23:38 89k
cputype 28-Sep-2006 23:47 4k
cputype.b 06-Dec-1999 12:32 1k
cputype.c 20-Sep-2005 16:30 1k
ctags 14-Apr-2004 18:15 41k
cut 28-Sep-2006 23:47 7k
cut.b 05-Jun-2000 00:00 3k
cut.c 20-Sep-2005 16:30 3k
cv_local.h 08-Dec-1999 18:41 1k
da.h 17-Dec-2003 15:08 1k
dbgA.h 08-Dec-1999 18:41 1k
dbgD.h 08-Dec-1999 18:41 1k
dbgM.h 08-Dec-1999 18:41 1k
dbgS.h 08-Dec-1999 18:41 1k
dbgX.h 08-Dec-1999 18:41 1k
dbg_.h 08-Dec-1999 18:41 1k
dbgs.h 08-Dec-1999 18:41 1k
dbgt.h 08-Dec-1999 18:41 1k
dbgx.h 08-Dec-1999 18:41 1k
detab 28-Sep-2006 23:47 6k
detab.b 06-Dec-1999 12:32 2k
detab.c 20-Sep-2005 16:30 2k
dirnam 28-Sep-2006 23:47 5k
dirnam.b 05-Jun-2000 00:00 1k
dirnam.c 20-Sep-2005 16:30 1k
dmp.h 17-Dec-2003 15:08 3k
dmp_ip.b 17-Mar-2003 09:58 6k
dmp_ip.c 20-Sep-2005 16:29 6k
dump.b 17-Mar-2003 09:58 6k
dump.c 20-Sep-2005 16:29 6k
duplen 28-Sep-2006 23:47 5k
duplen.b 05-Jun-2000 00:00 1k
duplen.c 20-Sep-2005 16:30 1k
env 28-Sep-2006 23:47 5k
env.b 19-Dec-1999 23:08 1k
env.c 19-Dec-1999 23:08 1k
err.c 06-Dec-1999 12:37 4k
err.h 17-Dec-2003 15:08 1k
errnotbl 12-Dec-1995 17:04 5k
exit.h 17-Dec-2003 15:08 1k
extern.h 17-Dec-2003 15:08 3k
factor 28-Sep-2006 23:47 5k
factor.b 19-Dec-1999 23:08 1k
factor.c 19-Dec-1999 23:08 1k
false 20-Sep-2005 16:30 11k
false.b 19-Dec-1999 23:08 1k
false.c 19-Dec-1999 23:08 1k
fc 28-Sep-2006 23:38 65k
fh 28-Sep-2006 23:38 65k
findsb.b 05-Jun-2000 00:00 3k
findsb.c 14-Apr-2004 18:15 3k
finfo 28-Sep-2006 23:47 55k
finfo.b 05-Jun-2000 00:00 4k
finfo.c 20-Sep-2005 16:30 4k
foo 24-Mar-2004 14:30 0k
fp 28-Sep-2006 23:38 65k
fp.b 17-Dec-2003 16:03 22k
fp.c 20-Sep-2005 16:30 21k
fp.h 06-Dec-1999 12:32 1k
gdbm.h 22-Aug-1995 17:09 5k
gdbm/ 24-Oct-2007 17:17 -
gdbmsrvr 28-Sep-2006 23:47 82k
gdbmsrvr.b 17-Dec-2003 16:10 11k
gdbmsrvr.c 20-Sep-2005 16:30 11k
gdbmsrvr.h 06-Dec-1999 12:32 1k
gdbmtest 28-Sep-2006 23:47 73k
gdbmtest.b 05-Jun-2000 00:00 13k
gdbmtest.c 20-Sep-2005 16:30 13k
getdate.c 05-Jun-2000 00:00 40k
getdate.y 01-Apr-1996 18:11 23k
goedel 28-Sep-2006 23:47 5k
goedel.b 19-Dec-1999 23:08 1k
goedel.c 19-Dec-1999 23:08 1k
hd 28-Sep-2006 23:47 59k
hd.b 06-Dec-1999 12:32 3k
hd.c 20-Sep-2005 16:30 3k
hello 20-Sep-2005 16:30 11k
hello.b 06-Dec-1999 12:38 1k
hello.c 06-Dec-1999 12:38 1k
hex 28-Sep-2006 23:47 5k
hex.b 13-Apr-2004 12:47 1k
hex.c 13-Apr-2004 12:47 1k
hexdate.b 17-Apr-1998 15:56 1k
hosttype 28-Sep-2006 23:47 4k
hosttype.b 24-Mar-2004 14:44 1k
hosttype.c 24-Mar-2004 14:44 1k
icmp.b 05-Jun-2000 00:00 13k
icmp.c 14-Apr-2004 18:15 13k
icmp.h 13-Apr-2004 12:16 10k
ifdflt.h 17-Mar-2003 09:57 1k
ip.h 07-Apr-2000 10:21 5k
ip2hex 28-Apr-2001 22:46 5k
ip2hex.b 28-Apr-2001 22:46 1k
ip2hex.c 28-Apr-2001 22:46 1k
ip2hex.pl 28-Apr-2001 23:06 1k
ipad 28-Sep-2006 23:38 73k
ipad.b 23-Dec-2003 11:42 20k
ipad.c 20-Sep-2005 16:30 20k
iphdr.h 18-May-2005 23:16 7k
jabber 28-Sep-2006 23:47 5k
jabber.b 19-Dec-1999 23:08 1k
jabber.c 19-Dec-1999 23:08 1k
kendy_Linux_local.h 22-Feb-2002 21:47 1k
laman.b 08-Dec-1999 19:19 1k
laman.c 14-Apr-2004 18:15 1k
lastarg 28-Sep-2006 23:47 5k
lastarg.b 19-Dec-1999 23:08 1k
lastarg.c 19-Dec-1999 23:08 1k
lastfld.b 06-Dec-1999 12:32 1k
lastfld.c 20-Sep-2005 16:29 1k
lc 28-Sep-2006 23:38 89k
line.b 05-Jun-2000 00:00 1k
line.c 14-Apr-2004 18:15 1k
line100 18-Jun-2002 09:21 1k
line120 16-Sep-2002 14:39 1k
line160 16-Sep-2002 14:39 1k
line64 09-Mar-2003 10:57 1k
line72 09-Mar-2003 10:56 1k
line80 17-Dec-2003 15:47 1k
line99 16-Sep-2002 14:39 1k
linux_local.h 06-Dec-1999 12:32 7k
ln 28-Sep-2006 23:38 89k
local.mk 17-Apr-1998 14:17 1k
machtype 28-Sep-2006 23:47 4k
machtype.b 17-Apr-1998 15:56 1k
machtype.c 17-Apr-1998 15:56 1k
mailfile 28-Sep-2006 23:47 54k
mailfile.b 06-Dec-1999 12:32 2k
mailfile.c 20-Sep-2005 16:30 2k
makeraw.b 28-Sep-2006 23:10 12k
makeraw.c 28-Sep-2006 23:10 11k
makeraw.c.save 24-Mar-2004 13:54 11k
makesane.b 13-Apr-2004 10:29 14k
makesane.b.save 24-Mar-2004 14:12 14k
makesane.c 20-Sep-2005 16:29 14k
man/ 13-Apr-2004 11:49 -
mbox.h 30-Jun-1994 09:48 2k
mem.h 11-Sep-2003 18:48 7k
memchunk.h 23-Dec-2003 11:02 6k
minrand.b 08-Dec-1999 17:39 3k
minrand.c 08-Dec-1999 17:39 3k
minrand.h 17-Dec-2003 15:08 1k
misc.README 31-Mar-2000 10:21 4k
misc.b 05-Jun-2000 00:00 2k
misc.c 20-Sep-2005 16:29 1k
mkdir 19-Jan-2004 15:46 63k
mkdir.b 05-Jun-2000 00:00 5k
mkdir.c 19-Jan-2004 15:40 5k
mkdr 28-Sep-2006 23:47 59k
mkdr.b 23-Dec-2003 11:22 5k
mkdr.c 20-Sep-2005 16:30 5k
mod 28-Sep-2006 23:47 56k
mod.b 06-Dec-1999 12:32 3k
mod.c 20-Sep-2005 16:30 2k
mv 28-Sep-2006 23:38 89k
nbiotest 28-Sep-2006 23:47 54k
nbiotest.b 06-Dec-1999 12:32 1k
nbiotest.c 20-Sep-2005 16:30 1k
newer 28-Sep-2006 23:47 54k
newer.b 05-Jun-2000 00:00 1k
newer.c 20-Sep-2005 16:30 1k
newtype 28-Sep-2006 23:47 64k
newtype.b 05-Jun-2000 00:00 4k
newtype.c 20-Sep-2005 16:30 4k
nonnumeric.b 08-Dec-1999 19:19 1k
nonnumeric.c 14-Apr-2004 18:15 1k
nop 20-Sep-2005 16:30 11k
nop.b 19-Dec-1999 23:08 1k
nop.c 19-Dec-1999 23:08 1k
numtest.b 08-Dec-1999 19:19 1k
numtest.c 08-Dec-1999 19:19 1k
old/ 17-Apr-2004 19:32 -
older 28-Sep-2006 23:47 54k
older.b 05-Jun-2000 00:00 1k
older.c 20-Sep-2005 16:30 1k
open.b 17-Apr-1998 15:57 1k
osf1_local.h 17-Dec-2003 15:08 7k
overwrite 28-Sep-2006 23:47 59k
overwrite.b 05-Jun-2000 00:00 4k
overwrite.c 20-Sep-2005 16:30 4k
p34 28-Sep-2006 23:47 59k
p34.b 06-Dec-1999 12:32 1k
p34.c 20-Sep-2005 16:30 1k
p43 28-Sep-2006 23:47 59k
p43.b 06-Dec-1999 12:32 1k
p43.c 20-Sep-2005 16:30 1k
page 28-Sep-2006 23:47 8k
page.b 05-Jun-2000 00:00 3k
page.c 20-Sep-2005 16:30 3k
pc_local.h 08-Dec-1999 18:41 3k
perror 28-Sep-2006 23:47 54k
perror.b 06-Dec-1999 12:32 1k
perror.c 20-Sep-2005 16:30 1k
ping 31-Aug-2005 11:43 77k
ping.b 17-Mar-2003 09:57 14k
ping.c 31-Aug-2005 11:43 14k
pktime.b 05-Jun-2000 00:00 3k
pktime.c 20-Sep-2005 16:29 3k
pktime.h 06-Dec-1999 12:32 1k
pkunpk.b 23-Dec-2003 11:01 3k
pkunpk.c 20-Sep-2005 16:30 3k
pl/ 13-Apr-2004 11:49 -
proto.b 06-Dec-1999 12:32 1k
proto.c 14-Apr-2004 18:15 1k
proxy 28-Sep-2006 23:47 85k
proxy.b 05-Jun-2000 00:00 22k
proxy.c 20-Sep-2005 16:30 21k
quel 28-Sep-2006 23:47 59k
quel.b 05-Jun-2000 00:00 10k
quel.c 02-Sep-2003 00:13 9k
randline 28-Sep-2006 23:47 55k
randline.b 05-Jun-2000 00:00 1k
randline.c 20-Sep-2005 16:30 1k
relink 28-Sep-2006 23:47 68k
relink.b 28-Sep-2006 23:42 26k
relink.c 28-Sep-2006 23:42 25k
rm 28-Sep-2006 23:38 89k
rowbytesum 28-Sep-2006 23:47 5k
rowbytesum.b 19-Dec-1999 23:09 1k
rowbytesum.c 19-Dec-1999 23:09 1k
rowbytesum.data 24-Jun-1997 19:22 1k
rs 28-Sep-2006 23:38 89k
rs.b 05-Jun-2000 00:00 8k
rs.c 20-Sep-2005 16:30 8k
say 28-Sep-2006 23:47 60k
say.b 05-Jun-2000 00:00 13k
say.c 20-Sep-2005 16:30 13k
saying 28-Sep-2006 23:47 60k
saying.b 05-Jun-2000 00:00 4k
saying.c 20-Sep-2005 16:30 4k
sbox 31-Aug-2005 11:39 65k
sel 28-Sep-2006 23:47 55k
sel.b 17-Dec-2003 15:27 6k
sel.c 20-Sep-2005 16:30 6k
sgtty.h 24-Feb-1993 21:12 1k
sh./ 29-Aug-2007 11:30 -
sh.FREEBSD/ 29-Aug-2007 11:30 -
sh.FreeBSD/ 29-Aug-2007 11:30 -
sh.SunOS/ 06-Mar-2003 22:52 -
sh.aix/ 06-Mar-2003 22:52 -
sh.bsd/ 06-Mar-2003 22:52 -
sh.esix4/ 06-Mar-2003 22:52 -
sh.freebsd/ 29-Aug-2007 11:30 -
sh.i586/ 08-Dec-1999 19:55 -
sh.linux/ 06-Mar-2003 22:52 -
sh.sun4/ 06-Mar-2003 22:52 -
sh.sys5/ 06-Mar-2003 22:52 -
sh.vax4/ 06-Mar-2003 22:52 -
sh/ 29-Aug-2007 11:30 -
slowcopy 28-Sep-2006 23:47 59k
slowcopy.b 05-Jun-2000 00:00 2k
slowcopy.c 20-Sep-2005 16:30 2k
sorthosts 28-Sep-2006 23:47 55k
sorthosts.b 05-Jun-2000 00:00 3k
sorthosts.c 20-Sep-2005 16:30 3k
spin 28-Sep-2006 23:47 6k
spin.b 05-Jun-2000 00:00 1k
spin.c 20-Sep-2005 16:30 1k
split.b 06-Dec-1999 12:32 2k
split.c 20-Sep-2005 16:29 2k
srvr.h 17-Dec-2003 15:08 1k
stGHnGpJ 14-Dec-2002 17:31 0k
stdarg.h 15-Jul-1991 12:34 1k
str.b 17-Dec-2003 15:13 13k
str.c 20-Sep-2005 16:29 13k
str.h 03-Jun-2003 09:47 20k
strcmp 28-Sep-2006 23:47 5k
strcmp.b 05-Jun-2000 00:00 1k
strcmp.c 05-Jun-2000 00:00 1k
stripman 28-Sep-2006 23:47 7k
stripman.b 19-Dec-1999 23:09 1k
stripman.c 19-Dec-1999 23:09 1k
sucmd.b 05-Jun-2000 00:00 1k
sucmd.c 05-Jun-2000 00:00 1k
symtime 28-Sep-2006 23:47 55k
symtime.b 06-Dec-1999 12:32 4k
symtime.c 20-Sep-2005 16:30 4k
synclock 28-Sep-2006 23:47 83k
synclock.b 05-Jun-2000 00:00 15k
synclock.c 20-Sep-2005 16:30 15k
sys.h 11-Sep-2003 18:48 6k
sys_ctype.h 07-Jan-2003 13:00 1k
sys_dir.h 17-Dec-2003 15:08 2k
sys_errno.h 24-Mar-2004 15:00 1k
sys_fcntl.h 17-Dec-2003 15:08 1k
sys_file.h 17-Dec-2003 15:08 1k
sys_fs.h 01-Apr-1996 16:20 1k
sys_if.h 13-Apr-2004 10:02 1k
sys_in.h 13-Apr-2004 15:41 1k
sys_in_systm.h 17-Dec-2003 15:08 1k
sys_ioctl.h 17-Dec-2003 15:16 1k
sys_ip.h 13-Apr-2004 12:16 1k
sys_ip_icmp.h 29-Mar-2000 13:52 1k
sys_ip_imcp.h 19-Jan-1993 15:33 1k
sys_limits.h 19-Jan-1993 15:43 1k
sys_malloc.h 28-Sep-2006 23:05 1k
sys_mount.h 19-Jan-1993 15:40 1k
sys_netdb.h 17-Dec-2003 15:08 1k
sys_param.h 17-Dec-2003 15:08 1k
sys_pcb.h 13-Apr-2004 12:16 1k
sys_poll.h 06-Dec-1999 12:28 1k
sys_pthreads.h 17-Dec-2003 15:08 1k
sys_pwd.h 18-Feb-1993 11:17 1k
sys_resource.h 17-Dec-2003 15:08 1k
sys_route.h 25-Oct-1995 16:05 1k
sys_select.h 28-Sep-2006 23:31 1k
sys_sgtty.h 07-Jun-1993 10:12 1k
sys_signal.h 17-Dec-2003 15:08 1k
sys_socket.h 17-Dec-2003 15:23 1k
sys_stat.h 17-Dec-2003 15:08 1k
sys_stdio.h 28-Sep-2006 10:12 2k
sys_stdlib.h 17-Dec-2003 15:08 1k
sys_stream.h 09-Mar-1995 14:17 1k
sys_string.h 17-Dec-2003 16:07 1k
sys_sys_utime.h.h 12-Dec-1995 21:26 1k
sys_syslog.h 19-Jan-1993 15:20 1k
sys_sysmacros.h 17-Mar-2003 09:57 1k
sys_tcp.h 17-Dec-2003 15:08 1k
sys_termio.h 06-Dec-1999 12:28 1k
sys_termios.h 01-Feb-1999 10:29 1k
sys_time.h 07-Jan-2003 13:00 3k
sys_types.h 24-Mar-2004 14:41 2k
sys_udp.h 17-Dec-2003 15:08 1k
sys_utime.h 07-Apr-2000 10:39 1k
sys_utsname.h 17-Dec-2003 15:08 1k
sys_values.h 28-Sep-2006 23:15 1k
sys_varargs.h 13-Apr-2004 12:38 1k
sys_wait.h 17-Dec-2003 15:08 1k
sys_wait3.h 19-Jan-1993 15:37 1k
syslog.h 04-Dec-1990 13:40 3k
systype 28-Sep-2006 23:47 5k
systype.b 05-Jun-2000 00:00 1k
systype.c 05-Jun-2000 00:00 1k
t_alarm 28-Sep-2006 23:47 5k
t_alarm.b 11-Jun-2004 09:46 1k
t_alarm.c 11-Jun-2004 09:46 1k
taillog 28-Sep-2006 23:47 66k
taillog.b 23-Dec-2003 11:05 9k
taillog.c 20-Sep-2005 16:30 9k
tarkit 10-Feb-1998 07:33 0k
tcpclient 28-Sep-2006 23:47 64k
tcpclient.b 05-Jun-2000 00:00 6k
tcpclient.c 20-Sep-2005 16:30 6k
tcpproxy 28-Sep-2006 23:47 69k
tcpproxy.b 05-Jun-2000 00:00 7k
tcpproxy.c 20-Sep-2005 16:30 7k
tcpserver 28-Sep-2006 23:47 69k
tcpserver.b 05-Jun-2000 00:00 10k
tcpserver.c 20-Sep-2005 16:30 10k
tee 28-Sep-2006 23:47 60k
tee.b 05-Jun-2000 00:00 4k
tee.c 20-Sep-2005 16:30 4k
termio.h 06-Dec-1999 12:28 1k
termios.h 01-Feb-1999 10:29 1k
test/ 17-Dec-2003 15:54 -
testdir.b 05-Jun-2000 00:00 1k
testfloat 28-Sep-2006 23:47 54k
testfloat.b 06-Dec-1999 12:32 1k
testfloat.c 20-Sep-2005 16:30 1k
testrand 28-Sep-2006 23:47 54k
testrand.b 19-Dec-1999 23:09 1k
testrand.c 19-Dec-1999 23:09 1k
tests 28-Sep-2006 23:47 0k
timestamp 28-Sep-2006 23:47 5k
timestamp.b 19-Dec-1999 23:09 1k
timestamp.c 19-Dec-1999 23:09 1k
tmp 17-Dec-2003 15:12 1k
tmp1 01-May-2000 16:06 1k
tmp1a 01-May-2000 16:25 1k
tnd3_local.h 17-Dec-2003 15:08 4k
to 28-Sep-2006 23:47 59k
to.b 05-Jun-2000 00:00 6k
to.c 20-Sep-2005 16:30 6k
trillian_freebsd_loc..> 13-Apr-2004 10:29 7k
trllian_local.h 13-Apr-2004 10:02 1k
true 20-Sep-2005 16:30 11k
true.b 19-Dec-1999 23:09 1k
true.c 19-Dec-1999 23:09 1k
u8dump 28-Sep-2006 23:54 59k
u8dump.b 28-Sep-2006 23:54 7k
u8dump.c 28-Sep-2006 23:54 7k
u8dump1.txt 28-Sep-2006 09:44 1k
u8dump2.txt 28-Sep-2006 09:22 1k
u8dump3.txt 20-Feb-2007 07:07 1k
u8dump4.txt 28-Sep-2006 15:02 2k
udpclient 28-Sep-2006 23:47 65k
udpclient.b 20-Sep-2005 17:07 6k
udpclient.c 28-Sep-2006 22:54 6k
udpserver 28-Sep-2006 23:47 66k
udpserver.b 20-Sep-2005 17:13 6k
udpserver.c 28-Sep-2006 22:54 6k
unixtime 28-Sep-2006 23:47 66k
unixtime.b 06-Dec-1999 12:32 1k
unixtime.c 20-Sep-2005 16:30 1k
unlink 28-Sep-2006 23:47 54k
unlink.b 06-Dec-1999 12:32 1k
unlink.c 20-Sep-2005 16:30 1k
unpackmail.b 06-Dec-1999 12:32 6k
unpackmail.c 14-Apr-2004 18:15 6k
unqp 28-Sep-2006 23:47 54k
unqp.b 31-Aug-2005 11:51 2k
unqp.c 20-Sep-2005 16:30 2k
utsname 28-Sep-2006 23:47 6k
utsname.b 28-Sep-2006 23:33 1k
utsname.c 28-Sep-2006 23:33 1k
uudecode 28-Sep-2006 23:47 7k
uudecode.b 19-Dec-1999 23:09 4k
uudecode.c 19-Dec-1999 23:09 4k
uuencode 28-Sep-2006 23:47 7k
uuencode.b 19-Dec-1999 23:09 3k
uuencode.c 19-Dec-1999 23:09 3k
verbose.h 23-Dec-2003 10:30 38k
which 23-Dec-2003 11:34 57k
which.b 05-Jun-2000 00:00 10k
which.c 02-Sep-2003 00:13 9k
wrapper 28-Sep-2006 23:47 59k
wrapper.b 06-Dec-1999 12:32 1k
wrapper.c 20-Sep-2005 16:30 1k
wrappers.h 08-Feb-1994 20:39 0k
xd 28-Sep-2006 23:47 59k
xd.b 06-Dec-1999 12:32 1k
xd.c 20-Sep-2005 16:30 1k
xenix_local.h 17-Dec-2003 15:08 3k
xor 20-Sep-2005 16:30 15k
xor.b 05-Jun-2000 00:00 4k
xor.c 05-Jun-2000 00:00 4k
#!/bin/sh
# This directory (~jc/misc) contains an assortment of useful programs,
# Most of the programs here were written by John Chambers on an
# assortment of projects, often with a bit of help from friends and
# colleagues. Some of these programs duplicate tools that are found
# on some (but not all) Unix systems; having them here makes it easy
# to install them on a system where they don't exist. Some are clones
# of the standard Unix library programs, but with "improved"
# functionality. For example, see the "rm" command, which is useful
# in scripts because it doesn't harass the user like /bin/rm usually
# does these days. There's also a Rm that renames the files rather
# than unlinking them.
# There is a Makefile entry to build the $(BIN) directory and fill it
# with the programs here. You should note that there are a few
# programs (addr, ping) here that need to be setuid or setgid; to make
# or install them, you need to be root.
# The tar kit for the misc directory is made relative to the parent,
# directory so to unpack it, you should do something like:
gunzip <misc.tar.gz | tar xf -
cd misc
make
make test
make install
# Notes:
# # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# # The V package is used by nearly everything in misc, so you #
# # will want to unpack it first. If V and misc are adjacent #
# # directories, then you can do a make inside misc and it will #
# # cd to ../V and do a make there. #
# # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# # First, before anything here will work, you need to create a #
# # local.h file. There are a number of *_local.h files here; #
# # pick one as a prototype and copy it to local.d; then edit #
# # local.h file to handle the system-dependent stuff. #
# # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Most of the C code here has been "dbgized" in a way that may not be
# familiar to many C programmers. The main thing to note is that the
# "real" sources have .b as a suffix, not .c, and the Makefile builds
# the .c file from the .b file by running it through the b-c script.
# This is a rather trivial little script, really just a call of sed,
# but it's convenient to put it in a scrit. What it does is selects
# among the source lines with : in column 1. Such lines can be either
# included in the .c source or blanked out. This is a simpler and
# cleaner scheme than complex #ifdefs to make multiple versions from
# the same source. I mostly just use it to enable or disable the
# debug lines. This way, they take one line rather than three.
# Most of the programs here use the dbg package. If you don't have it,
# go get it and build it, and then come back here. It should be found
# wherever you found the tar kit for the misc package. The best place
# to install it is in ../dbg, i.e., next door to the misc package.
# Next, edit the Makefile and make sure it's right for your system.
# Note in particular that it needs a pointer to wherever you have
# installed the dbg package.
# To build the non-setuid programs, type:
# make
# make bin
# To build the rest, become super-user and type:
# make install
# There are also some test programs in the test subdirectory. You can
# run them all by typing
# make test
# Of course, you can just use this as the first make command.
# Note that most of these use the ../dbg/libdbg.a library, which must be
# present or not much will link. Make sure that you have the dbg package
# compiled ...
# There are some programs here that the "make all" entry doesn't
# build. They are typically the ones that are hopelessly
# system-dependent. You might look around after the make works, and
# see what odds and ends are of interest.