home *** CD-ROM | disk | FTP | other *** search
Wrap
Newsgroups: comp.sources.misc From: amber@engin.umich.edu (Lee Liming) Subject: v34i104: netuse - A Network Host Usage Monitoring System, Part06/06 Message-ID: <1993Jan11.023854.25662@sparky.imd.sterling.com> X-Md4-Signature: e4b71b644768fac344c5e351fe690ed0 Date: Mon, 11 Jan 1993 02:38:54 GMT Approved: kent@sparky.imd.sterling.com Submitted-by: amber@engin.umich.edu (Lee Liming) Posting-number: Volume 34, Issue 104 Archive-name: netuse/part06 Environment: UNIX, MS-DOS, OS/2, INET, MSC #! /bin/sh # This is a shell archive. Remove anything before this line, then feed it # into a shell via "sh file" or similar. To overwrite existing files, # type "sh file -c". # Contents: netuse/COPYRIGHT netuse/Makefile netuse/VERSION # netuse/clients/Makefile netuse/clients/libresp1.dos # netuse/clients/libresp1.os2 netuse/clients/libresp2.dos # netuse/clients/libresp2.os2 netuse/clients/libresp3.dos # netuse/clients/makefile.dos netuse/clients/makefile.os2 # netuse/daemons/Makefile netuse/daemons/caenlab.h netuse/doc/README # netuse/lib/Makefile netuse/lib/libresp netuse/lib/makefile.dos # netuse/lib/makefile.os2 netuse/lib/network.h netuse/lib/parser.h # Wrapped by kent@sparky on Sun Jan 10 20:28:38 1993 PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH echo If this archive is complete, you will see the following message: echo ' "shar: End of archive 6 (of 6)."' if test -f 'netuse/COPYRIGHT' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/COPYRIGHT'\" else echo shar: Extracting \"'netuse/COPYRIGHT'\" \(1309 characters\) sed "s/^X//" >'netuse/COPYRIGHT' <<'END_OF_FILE' X/****************************************************************************** X Copyright (C) 1992 by the Regents of the University of Michigan. X X User agrees to reproduce said copyright notice on all copies of the software X made by the recipient. X X All Rights Reserved. Permission is hereby granted for the recipient to make X copies and use this software for its own internal purposes only. Recipient of X this software may re-distribute this software outside of their own X institution. Permission to market this software commercially, to include this X product as part of a commercial product, or to make a derivative work for X commercial purposes, is explicitly prohibited. All other uses are also X prohibited unless authorized in writing by the Regents of the University of X Michigan. X X This software is offered without warranty. The Regents of the University of X Michigan disclaim all warranties, express or implied, including but not X limited to the implied warranties of merchantability and fitness for any X particular purpose. In no event shall the Regents of the University of X Michigan be liable for loss or damage of any kind, including but not limited X to incidental, indirect, consequential, or special damages. X******************************************************************************/ END_OF_FILE if test 1309 -ne `wc -c <'netuse/COPYRIGHT'`; then echo shar: \"'netuse/COPYRIGHT'\" unpacked with wrong size! fi # end of 'netuse/COPYRIGHT' fi if test -f 'netuse/Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/Makefile'\" else echo shar: Extracting \"'netuse/Makefile'\" \(2395 characters\) sed "s/^X//" >'netuse/Makefile' <<'END_OF_FILE' X# X# Top-level Makefile for NETUSE. X# X# Lee Liming, Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X X X############################################################################### X# Customizable parameters X X# NOTE: If you change the relationships between DESTDIR, PKGDEST, and the X# rest of these paths, you're on your own WRT making sure they exist. X XDESTDIR = /afs/.engin.umich.edu/system/@sys/usr/caen XPKGDEST = $(DESTDIR)/netuse XLIBDEST = $(PKGDEST)/lib XINCDEST = $(PKGDEST)/include XBINDEST = $(PKGDEST)/bin XETCDEST = $(PKGDEST)/etc XMANDEST = $(PKGDEST)/man X XCC = "cc -g" X XINSTLIB = "cp" XINSTINC = "cp" XINSTBIN = "cp" XINSTETC = "cp" XINSTMAN = "cp" X XDAEMONS = "netuse netused" X X# NOTE: Uncomment one of the following two lines. X X# Everything except SunOS X#NETUSED_LINK = X# Uncomment only for SunOS XNETUSED_LINK = "-lkvm" X X X############################################################################### X# You probably don't want to change anything below this point... X XDELIVERABLES = build_library build_clients build_daemons XLIBRARY = lib/libNetuse.a XCLIENTS = clients/hostinfo clients/getmach clients/netuseadmin XDDAEMONS = daemons/netuse X X Xall: $(DELIVERABLES) X Xbuild_library: X cd lib; make all CC=$(CC) X Xbuild_clients: $(LIBRARY) X cd clients; make all CC=$(CC) X Xbuild_daemons: $(LIBRARY) X cd daemons; make all CC=$(CC) DAEMONS=$(DAEMONS) NETUSED_LINK=$(NETUSED_LINK) X Xinstall: $(DELIVERABLES) install_library install_clients install_daemons X Xinstall_library: $(LIBRARY) X cd lib; make install DESTDIR=$(DESTDIR) INSTLIB=$(INSTLIB) INSTINC=$(INSTINC) PKGDEST=$(PKGDEST) LIBDEST=$(LIBDEST) INCDEST=$(INCDEST) MANDEST=$(MANDEST) X Xinstall_clients: $(CLIENTS) X cd clients; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST) X Xinstall_daemons: $(DDAEMONS) X cd daemons; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST) DAEMONS=$(DAEMONS) X Xclean: clean_library clean_clients clean_daemons X Xclean_library: X cd lib; make clean X Xclean_clients: X cd clients; make clean X Xclean_daemons: X cd daemons; make clean END_OF_FILE if test 2395 -ne `wc -c <'netuse/Makefile'`; then echo shar: \"'netuse/Makefile'\" unpacked with wrong size! fi # end of 'netuse/Makefile' fi if test -f 'netuse/VERSION' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/VERSION'\" else echo shar: Extracting \"'netuse/VERSION'\" \(33 characters\) sed "s/^X//" >'netuse/VERSION' <<'END_OF_FILE' X1.1 Sat Dec 19 14:38:56 EST 1992 END_OF_FILE if test 33 -ne `wc -c <'netuse/VERSION'`; then echo shar: \"'netuse/VERSION'\" unpacked with wrong size! fi # end of 'netuse/VERSION' fi if test -f 'netuse/clients/Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/Makefile'\" else echo shar: Extracting \"'netuse/clients/Makefile'\" \(1782 characters\) sed "s/^X//" >'netuse/clients/Makefile' <<'END_OF_FILE' X# X# Makefile for NETUSE clients. X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1990, 1991, 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cc -g X XDESTDIR = /tmp XPKGDEST = $(DESTDIR)/netuse XBINDEST = $(PKGDEST)/bin XETCDEST = $(PKGDEST)/etc XMANDEST = $(PKGDEST)/man X XINSTBIN = cp XINSTETC = cp XINSTMAN = cp X XBINARY1 = hostinfo XLIB1 = -L../lib -lNetuse XINCLUDE1 = -I../lib XBINARY2 = getmach XLIB2 = -L../lib -lNetuse XINCLUDE2 = -I../lib XBINARY3 = netuseadmin XLIB3 = -L../lib -lNetuse XINCLUDE3 = -I../lib X X Xall: $(BINARY1) $(BINARY2) $(BINARY3) X X$(BINARY1): hostinfo.c ../lib/netuse.h ../lib/libNetuse.a X $(CC) -o $(BINARY1) hostinfo.c $(LIB1) $(INCLUDE1) X X$(BINARY2): getmach.c ../lib/netuse.h ../lib/libNetuse.a X $(CC) -o $(BINARY2) getmach.c $(LIB2) $(INCLUDE2) X X$(BINARY3): netuseadmin.c ../lib/netuse.h ../lib/libNetuse.a X $(CC) -o $(BINARY3) netuseadmin.c $(LIB3) $(INCLUDE3) X Xinstall: $(BINDEST) $(MANDEST)/man1 $(BINARY1) $(BINARY2) $(BINARY3) \ X hostinfo.1 getmach.1 netuseadmin.1 X $(INSTBIN) $(BINARY1) $(BINDEST)/$(BINARY1) X $(INSTBIN) $(BINARY2) $(BINDEST)/$(BINARY2) X $(INSTBIN) $(BINARY3) $(BINDEST)/$(BINARY3) X $(INSTMAN) hostinfo.1 $(MANDEST)/man1/hostinfo.1 X $(INSTMAN) getmach.1 $(MANDEST)/man1/getmach.1 X $(INSTMAN) netuseadmin.1 $(MANDEST)/man1/netuseadmin.1 X X$(BINDEST): $(PKGDEST) X - mkdir $(BINDEST); chmod 755 $(BINDEST) X X$(MANDEST)/man1: $(MANDEST) X - mkdir $(MANDEST)/man1; chmod 755 $(MANDEST)/man1 X X$(MANDEST): $(PKGDEST) X - mkdir $(MANDEST); chmod 755 $(MANDEST) X X$(PKGDEST): $(DESTDIR) X - mkdir $(PKGDEST); chmod 755 $(PKGDEST) X X$(DESTDIR): X - mkdir $(DESTDIR); chmod 755 $(DESTDIR) X Xclean: X \rm -f *.o *.bak $(BINARY1) $(BINARY2) $(BINARY3) END_OF_FILE if test 1782 -ne `wc -c <'netuse/clients/Makefile'`; then echo shar: \"'netuse/clients/Makefile'\" unpacked with wrong size! fi # end of 'netuse/clients/Makefile' fi if test -f 'netuse/clients/libresp1.dos' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/libresp1.dos'\" else echo shar: Extracting \"'netuse/clients/libresp1.dos'\" \(91 characters\) sed "s/^X//" >'netuse/clients/libresp1.dos' <<'END_OF_FILE' X/st:6000 /NOE /packcode /f /co hostinfo X Xhostinfo X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib END_OF_FILE if test 91 -ne `wc -c <'netuse/clients/libresp1.dos'`; then echo shar: \"'netuse/clients/libresp1.dos'\" unpacked with wrong size! fi # end of 'netuse/clients/libresp1.dos' fi if test -f 'netuse/clients/libresp1.os2' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/libresp1.os2'\" else echo shar: Extracting \"'netuse/clients/libresp1.os2'\" \(100 characters\) sed "s/^X//" >'netuse/clients/libresp1.os2' <<'END_OF_FILE' X/st:6000 /NOE /packcode /f /co hostinfo X Xhostinfo X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib END_OF_FILE if test 100 -ne `wc -c <'netuse/clients/libresp1.os2'`; then echo shar: \"'netuse/clients/libresp1.os2'\" unpacked with wrong size! fi # end of 'netuse/clients/libresp1.os2' fi if test -f 'netuse/clients/libresp2.dos' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/libresp2.dos'\" else echo shar: Extracting \"'netuse/clients/libresp2.dos'\" \(89 characters\) sed "s/^X//" >'netuse/clients/libresp2.dos' <<'END_OF_FILE' X/st:6000 /NOE /packcode /f /co getmach X Xgetmach X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib END_OF_FILE if test 89 -ne `wc -c <'netuse/clients/libresp2.dos'`; then echo shar: \"'netuse/clients/libresp2.dos'\" unpacked with wrong size! fi # end of 'netuse/clients/libresp2.dos' fi if test -f 'netuse/clients/libresp2.os2' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/libresp2.os2'\" else echo shar: Extracting \"'netuse/clients/libresp2.os2'\" \(98 characters\) sed "s/^X//" >'netuse/clients/libresp2.os2' <<'END_OF_FILE' X/st:6000 /NOE /packcode /f /co getmach X Xgetmach X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib END_OF_FILE if test 98 -ne `wc -c <'netuse/clients/libresp2.os2'`; then echo shar: \"'netuse/clients/libresp2.os2'\" unpacked with wrong size! fi # end of 'netuse/clients/libresp2.os2' fi if test -f 'netuse/clients/libresp3.dos' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/libresp3.dos'\" else echo shar: Extracting \"'netuse/clients/libresp3.dos'\" \(91 characters\) sed "s/^X//" >'netuse/clients/libresp3.dos' <<'END_OF_FILE' X/st:6000 /NOE /packcode /f /co netusead X Xnetusead X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib END_OF_FILE if test 91 -ne `wc -c <'netuse/clients/libresp3.dos'`; then echo shar: \"'netuse/clients/libresp3.dos'\" unpacked with wrong size! fi # end of 'netuse/clients/libresp3.dos' fi if test -f 'netuse/clients/makefile.dos' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/makefile.dos'\" else echo shar: Extracting \"'netuse/clients/makefile.dos'\" \(689 characters\) sed "s/^X//" >'netuse/clients/makefile.dos' <<'END_OF_FILE' X# X# Makefile for NETUSE clients (MS-DOS, Microsoft C) X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1990, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cl /AS -DNOVELL X XBINARY1 = hostinfo.exe XLIB1 = @libresp1.dos XINCLUDE = -I..\lib XBINARY2 = getmach.exe XLIB2 = @libresp2.dos XBINARY3 = netusead.exe XLIB3 = @libresp3.dos X X.c.obj: X $(CC) -c $(INCLUDE) $*.c X Xhostinfo.obj: hostinfo.c ../lib/netuse.h X Xgetmach.obj: getmach.c ../lib/netuse.h X Xnetusead.obj: netusead.c ../lib/netuse.h X X$(BINARY1): hostinfo.obj X link $(LIB1) X X$(BINARY2): getmach.obj X link $(LIB2) X X$(BINARY3): netusead.obj X LINK $(LIB3) X END_OF_FILE if test 689 -ne `wc -c <'netuse/clients/makefile.dos'`; then echo shar: \"'netuse/clients/makefile.dos'\" unpacked with wrong size! fi # end of 'netuse/clients/makefile.dos' fi if test -f 'netuse/clients/makefile.os2' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/clients/makefile.os2'\" else echo shar: Extracting \"'netuse/clients/makefile.os2'\" \(689 characters\) sed "s/^X//" >'netuse/clients/makefile.os2' <<'END_OF_FILE' X# X# Makefile for NETUSE clients (OS/2, Microsoft C) X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1990, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cl /AL -DIBMTCPIP X XBINARY1 = hostinfo.exe XLIB1 = @libresp1.os2 XINCLUDE = -I..\lib XBINARY2 = getmach.exe XLIB2 = @libresp2.os2 XBINARY3 = netusead.exe XLIB3 = @libresp3.os2 X X.c.obj: X $(CC) -c $(INCLUDE) $*.c X Xhostinfo.obj: hostinfo.c ../lib/netuse.h X Xgetmach.obj: getmach.c ../lib/netuse.h X Xnetusead.obj: netusead.c ../lib/netuse.h X X$(BINARY1): hostinfo.obj X link $(LIB1) X X$(BINARY2): getmach.obj X link $(LIB2) X X$(BINARY3): netusead.obj X LINK $(LIB3) X END_OF_FILE if test 689 -ne `wc -c <'netuse/clients/makefile.os2'`; then echo shar: \"'netuse/clients/makefile.os2'\" unpacked with wrong size! fi # end of 'netuse/clients/makefile.os2' fi if test -f 'netuse/daemons/Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/daemons/Makefile'\" else echo shar: Extracting \"'netuse/daemons/Makefile'\" \(1817 characters\) sed "s/^X//" >'netuse/daemons/Makefile' <<'END_OF_FILE' X# X# Makefile for NETUSE daemons. X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cc -g X XDESTDIR = /tmp XPKGDEST = $(DESTDIR)/netuse XBINDEST = $(PKGDEST)/bin XETCDEST = $(PKGDEST)/etc XMANDEST = $(PKGDEST)/man X XINSTBIN = cp XINSTETC = cp XINSTMAN = cp X XDAEMONS = netuse netused XNETUSED_LINK = X XBINARY1 = netused XOBJS1 = netused.o getload.o getusers.o getdisk.o getmodel.o caenlab.o XLINKER1 = -lm $(NETUSED_LINK) -L../lib -lNetuse XBINARY2 = netuse XOBJS2 = netuse.o XLINKER2 = -L../lib -lNetuse XBADFILES = $(DAEMONS) wakeup X Xall: $(DAEMONS) wakeup X X$(BINARY1): $(OBJS1) X $(CC) -o $(BINARY1) $(OBJS1) $(LINKER1) X X$(BINARY2): $(OBJS2) X $(CC) -o $(BINARY2) $(OBJS2) $(LINKER2) X Xwakeup: wakeup.o X $(CC) -o wakeup wakeup.o -L../lib -lNetuse X X.c.o: X $(CC) -c $< X Xnetused.o: netused.c ../lib/protocol.h Xnetuse.o: netuse.c ../lib/variable.h ../lib/protocol.h ../lib/netuse.h Xwakeup.o: wakeup.c ../lib/protocol.h ../lib/netuse.h X Xinstall: $(ETCDEST) $(MANDEST)/man8 $(DAEMONS) wakeup X for f in $(DAEMONS); \ X do \ X $(INSTETC) $$f $(ETCDEST)/$$f; \ X done X $(INSTETC) wakeup $(ETCDEST)/wakeup X $(INSTMAN) netuse.8 $(MANDEST)/man8/netuse.8 X $(INSTMAN) netused.8 $(MANDEST)/man8/netused.8 X X X$(MANDEST)/man8: $(MANDEST) X - mkdir $(MANDEST)/man8; chmod 755 $(MANDEST)/man8 X X$(MANDEST): $(PKGDEST) X - mkdir $(MANDEST); chmod 755 $(MANDEST) X X$(ETCDEST): $(PKGDEST) X - mkdir $(ETCDEST); chmod 755 $(ETCDEST) X X$(PKGDEST): $(DESTDIR) X - mkdir $(PKGDEST); chmod 755 $(PKGDEST) X X$(DESTDIR): X - mkdir $(DESTDIR); chmod 755 $(DESTDIR) X Xclean: X \rm -f *.o *.bak $(BADFILES) END_OF_FILE if test 1817 -ne `wc -c <'netuse/daemons/Makefile'`; then echo shar: \"'netuse/daemons/Makefile'\" unpacked with wrong size! fi # end of 'netuse/daemons/Makefile' fi if test -f 'netuse/daemons/caenlab.h' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/daemons/caenlab.h'\" else echo shar: Extracting \"'netuse/daemons/caenlab.h'\" \(1623 characters\) sed "s/^X//" >'netuse/daemons/caenlab.h' <<'END_OF_FILE' X/****************************************************************************** X CAENLAB.H - Header file for CAEN-specific NETUSE code X X Copyright (C) 1992 by the Regents of the University of Michigan. X X User agrees to reproduce said copyright notice on all copies of the software X made by the recipient. X X All Rights Reserved. Permission is hereby granted for the recipient to make X copies and use this software for its own internal purposes only. Recipient of X this software may re-distribute this software outside of their own X institution. Permission to market this software commercially, to include this X product as part of a commercial product, or to make a derivative work for X commercial purposes, is explicitly prohibited. All other uses are also X prohibited unless authorized in writing by the Regents of the University of X Michigan. X X This software is offered without warranty. The Regents of the University of X Michigan disclaim all warranties, express or implied, including but not X limited to the implied warranties of merchantability and fitness for any X particular purpose. In no event shall the Regents of the University of X Michigan be liable for loss or damage of any kind, including but not limited X to incidental, indirect, consequential, or special damages. X******************************************************************************/ X X#ifndef _CAENLAB_INCLUDED_ X#define _CAENLAB_INCLUDED_ X X X#ifdef __STDC__ X Xint apolloShouldRun(void); Xint hostconfigShouldRun(void); Xint netusedShouldRun(void); X X#else X Xint apolloShouldRun(); Xint hostconfigShouldRun(); Xint netusedShouldRun(); X X#endif X X X#endif END_OF_FILE if test 1623 -ne `wc -c <'netuse/daemons/caenlab.h'`; then echo shar: \"'netuse/daemons/caenlab.h'\" unpacked with wrong size! fi # end of 'netuse/daemons/caenlab.h' fi if test -f 'netuse/doc/README' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/doc/README'\" else echo shar: Extracting \"'netuse/doc/README'\" \(537 characters\) sed "s/^X//" >'netuse/doc/README' <<'END_OF_FILE' X XNETUSE DOCUMENTATION FORMATS X XThe NETUSE documentation is provided in three formats for your convenience. X XNETUSE.fm is a FrameMaker 3.0 document NETUSE.ps is the same document in XPostScript form. NETUSE.txt is the same document in plain-Jane ASCII text Xformat (generated through a complex process of uglification). X XNOTE: The USENET-posted distribution contains only the ASCII documentation. X The FrameMaker and PostScript forms can be obtained from the anonymous X FTP distribution described in the documentation. X END_OF_FILE if test 537 -ne `wc -c <'netuse/doc/README'`; then echo shar: \"'netuse/doc/README'\" unpacked with wrong size! fi # end of 'netuse/doc/README' fi if test -f 'netuse/lib/Makefile' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/Makefile'\" else echo shar: Extracting \"'netuse/lib/Makefile'\" \(1338 characters\) sed "s/^X//" >'netuse/lib/Makefile' <<'END_OF_FILE' X# X# Makefile for NETUSE library directory X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cc -g X XDESTDIR = /tmp XPKGDEST = $(DESTDIR)/netuse XLIBDEST = $(PKGDEST)/lib XINCDEST = $(PKGDEST)/include XMANDEST = $(PKGDEST)/man X XINSTLIB = cp XINSTINC = cp XINSTMAN = cp X XLIBFILE = libNetuse.a XMODULES = network.o gethost.o getlist.o netadmin.o parser.o variable.o X X Xall: $(LIBFILE) X X$(LIBFILE): $(MODULES) X \rm -f $(LIBFILE); ar cq $(LIBFILE) $(MODULES) ; ranlib $(LIBFILE) X X.c.o: X $(CC) -c $< X Xnetwork.o: protocol.h network.h netuse.h Xgethost.o: protocol.h network.h netuse.h Xgetlist.o: protocol.h network.h netuse.h Xnetadmin.o: protocol.h network.h netuse.h Xparser.o: parser.h Xvariable.o: protocol.h netuse.h parser.h variable.h X Xinstall: $(LIBDEST) $(INCDEST) $(LIBFILE) protocol.h netuse.h X $(INSTLIB) $(LIBFILE) $(LIBDEST)/$(LIBFILE) X $(INSTINC) protocol.h $(INCDEST)/protocol.h X $(INSTINC) netuse.h $(INCDEST)/netuse.h X X$(LIBDEST): $(PKGDEST) X - mkdir $(LIBDEST); chmod 755 $(LIBDEST) X X$(INCDEST): $(PKGDEST) X - mkdir $(INCDEST); chmod 755 $(INCDEST) X X$(PKGDEST): $(DESTDIR) X - mkdir $(PKGDEST); chmod 755 $(PKGDEST) X X$(DESTDIR): X - mkdir $(DESTDIR); chmod 755 $(DESTDIR) X Xclean: X \rm -f *.o *.bak $(LIBFILE) END_OF_FILE if test 1338 -ne `wc -c <'netuse/lib/Makefile'`; then echo shar: \"'netuse/lib/Makefile'\" unpacked with wrong size! fi # end of 'netuse/lib/Makefile' fi if test -f 'netuse/lib/libresp' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/libresp'\" else echo shar: Extracting \"'netuse/lib/libresp'\" \(70 characters\) sed "s/^X//" >'netuse/lib/libresp' <<'END_OF_FILE' XNETUSE Xy X+NETWORK+GETHOST+GETLIST+NETADMIN+PARSER+VARIABLE Xnetuse.lst END_OF_FILE if test 70 -ne `wc -c <'netuse/lib/libresp'`; then echo shar: \"'netuse/lib/libresp'\" unpacked with wrong size! fi # end of 'netuse/lib/libresp' fi if test -f 'netuse/lib/makefile.dos' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/makefile.dos'\" else echo shar: Extracting \"'netuse/lib/makefile.dos'\" \(709 characters\) sed "s/^X//" >'netuse/lib/makefile.dos' <<'END_OF_FILE' X# X# Makefile for NETUSE library directory (MS-DOS, Microsoft C, NOVELL TCP/IP) X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cl /AS -DNOVELL XLIBFILE = Netuse.lib XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj X X.c.obj: X $(CC) -c $*.c X Xnetwork.obj: protocol.h network.h netuse.h X Xgethost.obj: protocol.h network.h netuse.h X Xgetlist.obj: protocol.h network.h netuse.h X Xnetadmin.obj: protocol.h network.h netuse.h X Xparser.obj: parser.h X Xvariable.obj: protocol.h netuse.h parser.h variable.h X X$(LIBFILE): $(MODULES) X del $(LIBFILE) X lib @libresp END_OF_FILE if test 709 -ne `wc -c <'netuse/lib/makefile.dos'`; then echo shar: \"'netuse/lib/makefile.dos'\" unpacked with wrong size! fi # end of 'netuse/lib/makefile.dos' fi if test -f 'netuse/lib/makefile.os2' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/makefile.os2'\" else echo shar: Extracting \"'netuse/lib/makefile.os2'\" \(696 characters\) sed "s/^X//" >'netuse/lib/makefile.os2' <<'END_OF_FILE' X# X# Makefile for NETUSE library directory (OS/2, Microsoft C, IBM TCP/IP) X# X# Lee Liming, The Computer Aided Engineering Network X# The University of Michigan X# X# (c) 1992, The Regents of the University of Michigan X# ALL RIGHTS RESERVED X XCC = cl /AL /DOS2 -DIBMTCPIP XLIBFILE = Netuse.lib XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj X X.c.obj: X $(CC) -c $*.c X Xnetwork.obj: protocol.h network.h netuse.h X Xgethost.obj: protocol.h network.h netuse.h X Xgetlist.obj: protocol.h network.h netuse.h X Xnetadmin.obj: protocol.h network.h netuse.h X Xparser.obj: parser.h X Xvariable.obj: protocol.h netuse.h parser.h variable.h X X$(LIBFILE): $(MODULES) X lib @libresp END_OF_FILE if test 696 -ne `wc -c <'netuse/lib/makefile.os2'`; then echo shar: \"'netuse/lib/makefile.os2'\" unpacked with wrong size! fi # end of 'netuse/lib/makefile.os2' fi if test -f 'netuse/lib/network.h' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/network.h'\" else echo shar: Extracting \"'netuse/lib/network.h'\" \(1812 characters\) sed "s/^X//" >'netuse/lib/network.h' <<'END_OF_FILE' X/****************************************************************************** X NETWORK.H - NETUSE Client-side Network Interface header file X X Lee Liming and Michael Neil, The Computer Aided Engineering Network X The University of Michigan X X Copyright (C) 1990, 1991, 1992 by the Regents of the University of Michigan. X X User agrees to reproduce said copyright notice on all copies of the software X made by the recipient. X X All Rights Reserved. Permission is hereby granted for the recipient to make X copies and use this software for its own internal purposes only. Recipient of X this software may re-distribute this software outside of their own X institution. Permission to market this software commercially, to include this X product as part of a commercial product, or to make a derivative work for X commercial purposes, is explicitly prohibited. All other uses are also X prohibited unless authorized in writing by the Regents of the University of X Michigan. X X This software is offered without warranty. The Regents of the University of X Michigan disclaim all warranties, express or implied, including but not X limited to the implied warranties of merchantability and fitness for any X particular purpose. In no event shall the Regents of the University of X Michigan be liable for loss or damage of any kind, including but not limited X to incidental, indirect, consequential, or special damages. X******************************************************************************/ X X#ifndef _NETWORK_INCLUDED_ X#define _NETWORK_INCLUDED_ X X X#include "protocol.h" X X X#ifdef __STDC__ X Xint packetSend(USEREC *msg); Xint packetReceive(USEREC *msg); Xvoid netSetup(void); Xvoid netShutdown(void); X X#else X Xint packetSend(); Xint packetReceive(); Xvoid netSetup(); Xvoid netShutdown(); X X#endif X X#endif /* _NETWORK_INCLUDED_ */ END_OF_FILE if test 1812 -ne `wc -c <'netuse/lib/network.h'`; then echo shar: \"'netuse/lib/network.h'\" unpacked with wrong size! fi # end of 'netuse/lib/network.h' fi if test -f 'netuse/lib/parser.h' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'netuse/lib/parser.h'\" else echo shar: Extracting \"'netuse/lib/parser.h'\" \(1516 characters\) sed "s/^X//" >'netuse/lib/parser.h' <<'END_OF_FILE' X/***************************************************************************** X PARSER.H - General string parsing module header file X X (c) 1990, 1991, 1992, R. Lee Liming, Jr. X USED WITH PERMISSION OF THE AUTHOR X ALL RIGHTS RESERVED X X Defines: char *strip(char *str); X char *strip_leading(char *str); X char *scrunch(char *str); X char *stoupper(char *); X char *spicture(char *str,int n,char *temp); X int whitespace(char ch); X char *textparam(char *str,int pos,char buf[]); X char *encapsulate(char *str,char *buf); X char *breakout(char *str,char *buf); X int limits(char *rstr,int *start,int *stop); X char *strstr(char *str,char target[]); X*****************************************************************************/ X X#ifndef _PARSER_INCLUDED_ X X#define _PARSER_INCLUDED_ X X X#ifdef __STDC__ X Xchar *strip(char *); Xchar *strip_leading(char *); Xchar *scrunch(char *str); Xchar *stoupper(char *); Xchar *spicture(char *str,int n,char *temp); Xint whitespace(char); Xchar *textparam(char *,int,char []); Xchar *encapsulate(char *str,char *buf); Xchar *breakout(char *str,char *buf); Xint limits(char *rstr,int *start,int *stop); Xchar *strstr(char *,char []); X X#else /* ifndef __STDC__ */ X Xchar *strip(); Xchar *strip_leading(); Xchar *scrunch(); Xchar *stoupper(); Xchar *spicture(); Xint whitespace(); Xchar *textparam(); Xchar *encapsulate(); Xchar *breakout(); Xint limits(); Xchar *strstr(); X X#endif X X#endif /* _PARSER_INCLUDED_ */ END_OF_FILE if test 1516 -ne `wc -c <'netuse/lib/parser.h'`; then echo shar: \"'netuse/lib/parser.h'\" unpacked with wrong size! fi # end of 'netuse/lib/parser.h' fi echo shar: End of archive 6 \(of 6\). cp /dev/null ark6isdone MISSING="" for I in 1 2 3 4 5 6 ; do if test ! -f ark${I}isdone ; then MISSING="${MISSING} ${I}" fi done if test "${MISSING}" = "" ; then echo You have unpacked all 6 archives. rm -f ark[1-9]isdone else echo You still must unpack the following archives: echo " " ${MISSING} fi exit 0 exit 0 # Just in case...