home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume34 / netuse / part06 < prev    next >
Encoding:
Text File  |  1993-01-09  |  28.3 KB  |  903 lines

  1. Newsgroups: comp.sources.misc
  2. From: amber@engin.umich.edu (Lee Liming)
  3. Subject: v34i104:  netuse - A Network Host Usage Monitoring System, Part06/06
  4. Message-ID: <1993Jan11.023854.25662@sparky.imd.sterling.com>
  5. X-Md4-Signature: e4b71b644768fac344c5e351fe690ed0
  6. Date: Mon, 11 Jan 1993 02:38:54 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: amber@engin.umich.edu (Lee Liming)
  10. Posting-number: Volume 34, Issue 104
  11. Archive-name: netuse/part06
  12. Environment: UNIX, MS-DOS, OS/2, INET, MSC
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then feed it
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # Contents:  netuse/COPYRIGHT netuse/Makefile netuse/VERSION
  19. #   netuse/clients/Makefile netuse/clients/libresp1.dos
  20. #   netuse/clients/libresp1.os2 netuse/clients/libresp2.dos
  21. #   netuse/clients/libresp2.os2 netuse/clients/libresp3.dos
  22. #   netuse/clients/makefile.dos netuse/clients/makefile.os2
  23. #   netuse/daemons/Makefile netuse/daemons/caenlab.h netuse/doc/README
  24. #   netuse/lib/Makefile netuse/lib/libresp netuse/lib/makefile.dos
  25. #   netuse/lib/makefile.os2 netuse/lib/network.h netuse/lib/parser.h
  26. # Wrapped by kent@sparky on Sun Jan 10 20:28:38 1993
  27. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  28. echo If this archive is complete, you will see the following message:
  29. echo '          "shar: End of archive 6 (of 6)."'
  30. if test -f 'netuse/COPYRIGHT' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'netuse/COPYRIGHT'\"
  32. else
  33.   echo shar: Extracting \"'netuse/COPYRIGHT'\" \(1309 characters\)
  34.   sed "s/^X//" >'netuse/COPYRIGHT' <<'END_OF_FILE'
  35. X/******************************************************************************
  36. X Copyright (C) 1992 by the Regents of the University of Michigan.
  37. X
  38. X User agrees to reproduce said copyright notice on all copies of the software
  39. X made by the recipient.  
  40. X
  41. X All Rights Reserved. Permission is hereby granted for the recipient to make
  42. X copies and use this software for its own internal purposes only. Recipient of
  43. X this software may re-distribute this software outside of their own 
  44. X institution. Permission to market this software commercially, to include this
  45. X product as part of a commercial product, or to make a derivative work for
  46. X commercial purposes, is explicitly prohibited.  All other uses are also
  47. X prohibited unless authorized in writing by the Regents of the University of
  48. X Michigan.
  49. X
  50. X This software is offered without warranty. The Regents of the University of
  51. X Michigan disclaim all warranties, express or implied, including but not
  52. X limited to the implied warranties of merchantability and fitness for any
  53. X particular purpose. In no event shall the Regents of the University of
  54. X Michigan be liable for loss or damage of any kind, including but not limited
  55. X to incidental, indirect, consequential, or special damages. 
  56. X******************************************************************************/
  57. END_OF_FILE
  58.   if test 1309 -ne `wc -c <'netuse/COPYRIGHT'`; then
  59.     echo shar: \"'netuse/COPYRIGHT'\" unpacked with wrong size!
  60.   fi
  61.   # end of 'netuse/COPYRIGHT'
  62. fi
  63. if test -f 'netuse/Makefile' -a "${1}" != "-c" ; then 
  64.   echo shar: Will not clobber existing file \"'netuse/Makefile'\"
  65. else
  66.   echo shar: Extracting \"'netuse/Makefile'\" \(2395 characters\)
  67.   sed "s/^X//" >'netuse/Makefile' <<'END_OF_FILE'
  68. X#
  69. X# Top-level Makefile for NETUSE.
  70. X#
  71. X# Lee Liming, Computer Aided Engineering Network
  72. X# The University of Michigan
  73. X#
  74. X# (c) 1992, The Regents of the University of Michigan
  75. X# ALL RIGHTS RESERVED
  76. X
  77. X
  78. X###############################################################################
  79. X#  Customizable parameters
  80. X
  81. X#  NOTE:  If you change the relationships between DESTDIR, PKGDEST, and the
  82. X#         rest of these paths, you're on your own WRT making sure they exist.
  83. X
  84. XDESTDIR      = /afs/.engin.umich.edu/system/@sys/usr/caen
  85. XPKGDEST      = $(DESTDIR)/netuse
  86. XLIBDEST      = $(PKGDEST)/lib
  87. XINCDEST      = $(PKGDEST)/include
  88. XBINDEST      = $(PKGDEST)/bin
  89. XETCDEST      = $(PKGDEST)/etc
  90. XMANDEST      = $(PKGDEST)/man
  91. X
  92. XCC           = "cc -g"
  93. X
  94. XINSTLIB      = "cp"
  95. XINSTINC      = "cp"
  96. XINSTBIN      = "cp"
  97. XINSTETC      = "cp"
  98. XINSTMAN      = "cp"
  99. X
  100. XDAEMONS      = "netuse netused"
  101. X
  102. X#  NOTE:  Uncomment one of the following two lines.
  103. X
  104. X# Everything except SunOS
  105. X#NETUSED_LINK = 
  106. X# Uncomment only for SunOS
  107. XNETUSED_LINK = "-lkvm"
  108. X
  109. X
  110. X###############################################################################
  111. X#  You probably don't want to change anything below this point...
  112. X
  113. XDELIVERABLES = build_library build_clients build_daemons
  114. XLIBRARY      = lib/libNetuse.a 
  115. XCLIENTS      = clients/hostinfo clients/getmach clients/netuseadmin 
  116. XDDAEMONS     = daemons/netuse
  117. X
  118. X
  119. Xall: $(DELIVERABLES)
  120. X
  121. Xbuild_library:
  122. X    cd lib; make all CC=$(CC)
  123. X
  124. Xbuild_clients: $(LIBRARY)
  125. X    cd clients; make all CC=$(CC)
  126. X
  127. Xbuild_daemons: $(LIBRARY)
  128. X    cd daemons; make all CC=$(CC) DAEMONS=$(DAEMONS) NETUSED_LINK=$(NETUSED_LINK)
  129. X
  130. Xinstall: $(DELIVERABLES) install_library install_clients install_daemons
  131. X
  132. Xinstall_library: $(LIBRARY)
  133. X    cd lib; make install DESTDIR=$(DESTDIR) INSTLIB=$(INSTLIB) INSTINC=$(INSTINC) PKGDEST=$(PKGDEST) LIBDEST=$(LIBDEST) INCDEST=$(INCDEST) MANDEST=$(MANDEST)
  134. X
  135. Xinstall_clients: $(CLIENTS)
  136. X    cd clients; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST)
  137. X
  138. Xinstall_daemons: $(DDAEMONS)
  139. X    cd daemons; make install DESTDIR=$(DESTDIR) INSTBIN=$(INSTBIN) INSTETC=$(INSTETC) PKGDEST=$(PKGDEST) BINDEST=$(BINDEST) ETCDEST=$(ETCDEST) MANDEST=$(MANDEST) DAEMONS=$(DAEMONS)
  140. X
  141. Xclean: clean_library clean_clients clean_daemons
  142. X
  143. Xclean_library:
  144. X    cd lib; make clean
  145. X
  146. Xclean_clients:
  147. X    cd clients; make clean
  148. X
  149. Xclean_daemons:
  150. X    cd daemons; make clean
  151. END_OF_FILE
  152.   if test 2395 -ne `wc -c <'netuse/Makefile'`; then
  153.     echo shar: \"'netuse/Makefile'\" unpacked with wrong size!
  154.   fi
  155.   # end of 'netuse/Makefile'
  156. fi
  157. if test -f 'netuse/VERSION' -a "${1}" != "-c" ; then 
  158.   echo shar: Will not clobber existing file \"'netuse/VERSION'\"
  159. else
  160.   echo shar: Extracting \"'netuse/VERSION'\" \(33 characters\)
  161.   sed "s/^X//" >'netuse/VERSION' <<'END_OF_FILE'
  162. X1.1    Sat Dec 19 14:38:56 EST 1992
  163. END_OF_FILE
  164.   if test 33 -ne `wc -c <'netuse/VERSION'`; then
  165.     echo shar: \"'netuse/VERSION'\" unpacked with wrong size!
  166.   fi
  167.   # end of 'netuse/VERSION'
  168. fi
  169. if test -f 'netuse/clients/Makefile' -a "${1}" != "-c" ; then 
  170.   echo shar: Will not clobber existing file \"'netuse/clients/Makefile'\"
  171. else
  172.   echo shar: Extracting \"'netuse/clients/Makefile'\" \(1782 characters\)
  173.   sed "s/^X//" >'netuse/clients/Makefile' <<'END_OF_FILE'
  174. X#
  175. X# Makefile for NETUSE clients.
  176. X#
  177. X# Lee Liming, The Computer Aided Engineering Network
  178. X# The University of Michigan
  179. X#
  180. X# (c) 1990, 1991, 1992, The Regents of the University of Michigan
  181. X# ALL RIGHTS RESERVED
  182. X
  183. XCC       = cc -g
  184. X
  185. XDESTDIR  = /tmp
  186. XPKGDEST  = $(DESTDIR)/netuse
  187. XBINDEST  = $(PKGDEST)/bin
  188. XETCDEST  = $(PKGDEST)/etc
  189. XMANDEST  = $(PKGDEST)/man
  190. X
  191. XINSTBIN  = cp
  192. XINSTETC  = cp
  193. XINSTMAN  = cp
  194. X
  195. XBINARY1  = hostinfo
  196. XLIB1     = -L../lib -lNetuse
  197. XINCLUDE1 = -I../lib
  198. XBINARY2  = getmach
  199. XLIB2     = -L../lib -lNetuse
  200. XINCLUDE2 = -I../lib
  201. XBINARY3  = netuseadmin
  202. XLIB3     = -L../lib -lNetuse
  203. XINCLUDE3 = -I../lib
  204. X
  205. X
  206. Xall: $(BINARY1) $(BINARY2) $(BINARY3)
  207. X
  208. X$(BINARY1): hostinfo.c ../lib/netuse.h ../lib/libNetuse.a
  209. X    $(CC) -o $(BINARY1) hostinfo.c $(LIB1) $(INCLUDE1)
  210. X
  211. X$(BINARY2): getmach.c ../lib/netuse.h ../lib/libNetuse.a
  212. X    $(CC) -o $(BINARY2) getmach.c $(LIB2) $(INCLUDE2)
  213. X
  214. X$(BINARY3): netuseadmin.c ../lib/netuse.h ../lib/libNetuse.a
  215. X    $(CC) -o $(BINARY3) netuseadmin.c $(LIB3) $(INCLUDE3)
  216. X
  217. Xinstall: $(BINDEST) $(MANDEST)/man1 $(BINARY1) $(BINARY2) $(BINARY3) \
  218. X         hostinfo.1 getmach.1 netuseadmin.1
  219. X    $(INSTBIN) $(BINARY1) $(BINDEST)/$(BINARY1)
  220. X    $(INSTBIN) $(BINARY2) $(BINDEST)/$(BINARY2)
  221. X    $(INSTBIN) $(BINARY3) $(BINDEST)/$(BINARY3)
  222. X    $(INSTMAN) hostinfo.1 $(MANDEST)/man1/hostinfo.1
  223. X    $(INSTMAN) getmach.1 $(MANDEST)/man1/getmach.1
  224. X    $(INSTMAN) netuseadmin.1 $(MANDEST)/man1/netuseadmin.1
  225. X
  226. X$(BINDEST): $(PKGDEST)
  227. X    - mkdir $(BINDEST); chmod 755 $(BINDEST)
  228. X    
  229. X$(MANDEST)/man1: $(MANDEST)
  230. X    - mkdir $(MANDEST)/man1; chmod 755 $(MANDEST)/man1
  231. X    
  232. X$(MANDEST): $(PKGDEST)
  233. X    - mkdir $(MANDEST); chmod 755 $(MANDEST)
  234. X    
  235. X$(PKGDEST): $(DESTDIR)
  236. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  237. X    
  238. X$(DESTDIR):
  239. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  240. X    
  241. Xclean:
  242. X    \rm -f *.o *.bak $(BINARY1) $(BINARY2) $(BINARY3)
  243. END_OF_FILE
  244.   if test 1782 -ne `wc -c <'netuse/clients/Makefile'`; then
  245.     echo shar: \"'netuse/clients/Makefile'\" unpacked with wrong size!
  246.   fi
  247.   # end of 'netuse/clients/Makefile'
  248. fi
  249. if test -f 'netuse/clients/libresp1.dos' -a "${1}" != "-c" ; then 
  250.   echo shar: Will not clobber existing file \"'netuse/clients/libresp1.dos'\"
  251. else
  252.   echo shar: Extracting \"'netuse/clients/libresp1.dos'\" \(91 characters\)
  253.   sed "s/^X//" >'netuse/clients/libresp1.dos' <<'END_OF_FILE'
  254. X/st:6000 /NOE /packcode /f /co hostinfo
  255. X
  256. Xhostinfo
  257. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  258. END_OF_FILE
  259.   if test 91 -ne `wc -c <'netuse/clients/libresp1.dos'`; then
  260.     echo shar: \"'netuse/clients/libresp1.dos'\" unpacked with wrong size!
  261.   fi
  262.   # end of 'netuse/clients/libresp1.dos'
  263. fi
  264. if test -f 'netuse/clients/libresp1.os2' -a "${1}" != "-c" ; then 
  265.   echo shar: Will not clobber existing file \"'netuse/clients/libresp1.os2'\"
  266. else
  267.   echo shar: Extracting \"'netuse/clients/libresp1.os2'\" \(100 characters\)
  268.   sed "s/^X//" >'netuse/clients/libresp1.os2' <<'END_OF_FILE'
  269. X/st:6000 /NOE /packcode /f /co hostinfo
  270. X
  271. Xhostinfo
  272. X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib
  273. END_OF_FILE
  274.   if test 100 -ne `wc -c <'netuse/clients/libresp1.os2'`; then
  275.     echo shar: \"'netuse/clients/libresp1.os2'\" unpacked with wrong size!
  276.   fi
  277.   # end of 'netuse/clients/libresp1.os2'
  278. fi
  279. if test -f 'netuse/clients/libresp2.dos' -a "${1}" != "-c" ; then 
  280.   echo shar: Will not clobber existing file \"'netuse/clients/libresp2.dos'\"
  281. else
  282.   echo shar: Extracting \"'netuse/clients/libresp2.dos'\" \(89 characters\)
  283.   sed "s/^X//" >'netuse/clients/libresp2.dos' <<'END_OF_FILE'
  284. X/st:6000 /NOE /packcode /f /co getmach
  285. X
  286. Xgetmach
  287. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  288. END_OF_FILE
  289.   if test 89 -ne `wc -c <'netuse/clients/libresp2.dos'`; then
  290.     echo shar: \"'netuse/clients/libresp2.dos'\" unpacked with wrong size!
  291.   fi
  292.   # end of 'netuse/clients/libresp2.dos'
  293. fi
  294. if test -f 'netuse/clients/libresp2.os2' -a "${1}" != "-c" ; then 
  295.   echo shar: Will not clobber existing file \"'netuse/clients/libresp2.os2'\"
  296. else
  297.   echo shar: Extracting \"'netuse/clients/libresp2.os2'\" \(98 characters\)
  298.   sed "s/^X//" >'netuse/clients/libresp2.os2' <<'END_OF_FILE'
  299. X/st:6000 /NOE /packcode /f /co getmach
  300. X
  301. Xgetmach
  302. X..\lib\netuse.lib c:\xln\toolkit\lib\slibsock.lib
  303. END_OF_FILE
  304.   if test 98 -ne `wc -c <'netuse/clients/libresp2.os2'`; then
  305.     echo shar: \"'netuse/clients/libresp2.os2'\" unpacked with wrong size!
  306.   fi
  307.   # end of 'netuse/clients/libresp2.os2'
  308. fi
  309. if test -f 'netuse/clients/libresp3.dos' -a "${1}" != "-c" ; then 
  310.   echo shar: Will not clobber existing file \"'netuse/clients/libresp3.dos'\"
  311. else
  312.   echo shar: Extracting \"'netuse/clients/libresp3.dos'\" \(91 characters\)
  313.   sed "s/^X//" >'netuse/clients/libresp3.dos' <<'END_OF_FILE'
  314. X/st:6000 /NOE /packcode /f /co netusead
  315. X
  316. Xnetusead
  317. X..\lib\netuse.lib c:\tcpip\lib\tcpip.lib
  318. END_OF_FILE
  319.   if test 91 -ne `wc -c <'netuse/clients/libresp3.dos'`; then
  320.     echo shar: \"'netuse/clients/libresp3.dos'\" unpacked with wrong size!
  321.   fi
  322.   # end of 'netuse/clients/libresp3.dos'
  323. fi
  324. if test -f 'netuse/clients/makefile.dos' -a "${1}" != "-c" ; then 
  325.   echo shar: Will not clobber existing file \"'netuse/clients/makefile.dos'\"
  326. else
  327.   echo shar: Extracting \"'netuse/clients/makefile.dos'\" \(689 characters\)
  328.   sed "s/^X//" >'netuse/clients/makefile.dos' <<'END_OF_FILE'
  329. X#
  330. X# Makefile for NETUSE clients (MS-DOS, Microsoft C)
  331. X#
  332. X# Lee Liming, The Computer Aided Engineering Network
  333. X# The University of Michigan
  334. X#
  335. X# (c) 1990, The Regents of the University of Michigan
  336. X# ALL RIGHTS RESERVED
  337. X
  338. XCC      = cl /AS -DNOVELL
  339. X
  340. XBINARY1  = hostinfo.exe
  341. XLIB1     = @libresp1.dos
  342. XINCLUDE  = -I..\lib
  343. XBINARY2  = getmach.exe
  344. XLIB2     = @libresp2.dos
  345. XBINARY3  = netusead.exe
  346. XLIB3     = @libresp3.dos
  347. X
  348. X.c.obj:
  349. X    $(CC) -c $(INCLUDE) $*.c
  350. X
  351. Xhostinfo.obj: hostinfo.c ../lib/netuse.h
  352. X
  353. Xgetmach.obj: getmach.c ../lib/netuse.h
  354. X
  355. Xnetusead.obj: netusead.c ../lib/netuse.h
  356. X
  357. X$(BINARY1): hostinfo.obj
  358. X    link $(LIB1)
  359. X
  360. X$(BINARY2): getmach.obj
  361. X    link $(LIB2)
  362. X
  363. X$(BINARY3): netusead.obj
  364. X    LINK $(LIB3)
  365. X
  366. END_OF_FILE
  367.   if test 689 -ne `wc -c <'netuse/clients/makefile.dos'`; then
  368.     echo shar: \"'netuse/clients/makefile.dos'\" unpacked with wrong size!
  369.   fi
  370.   # end of 'netuse/clients/makefile.dos'
  371. fi
  372. if test -f 'netuse/clients/makefile.os2' -a "${1}" != "-c" ; then 
  373.   echo shar: Will not clobber existing file \"'netuse/clients/makefile.os2'\"
  374. else
  375.   echo shar: Extracting \"'netuse/clients/makefile.os2'\" \(689 characters\)
  376.   sed "s/^X//" >'netuse/clients/makefile.os2' <<'END_OF_FILE'
  377. X#
  378. X# Makefile for NETUSE clients (OS/2, Microsoft C)
  379. X#
  380. X# Lee Liming, The Computer Aided Engineering Network
  381. X# The University of Michigan
  382. X#
  383. X# (c) 1990, The Regents of the University of Michigan
  384. X# ALL RIGHTS RESERVED
  385. X
  386. XCC      = cl /AL -DIBMTCPIP
  387. X
  388. XBINARY1  = hostinfo.exe
  389. XLIB1     = @libresp1.os2
  390. XINCLUDE  = -I..\lib
  391. XBINARY2  = getmach.exe
  392. XLIB2     = @libresp2.os2
  393. XBINARY3  = netusead.exe
  394. XLIB3     = @libresp3.os2
  395. X
  396. X.c.obj:
  397. X    $(CC) -c $(INCLUDE) $*.c
  398. X
  399. Xhostinfo.obj: hostinfo.c ../lib/netuse.h
  400. X
  401. Xgetmach.obj: getmach.c ../lib/netuse.h
  402. X
  403. Xnetusead.obj: netusead.c ../lib/netuse.h
  404. X
  405. X$(BINARY1): hostinfo.obj
  406. X    link $(LIB1)
  407. X
  408. X$(BINARY2): getmach.obj
  409. X    link $(LIB2)
  410. X
  411. X$(BINARY3): netusead.obj
  412. X    LINK $(LIB3)
  413. X
  414. END_OF_FILE
  415.   if test 689 -ne `wc -c <'netuse/clients/makefile.os2'`; then
  416.     echo shar: \"'netuse/clients/makefile.os2'\" unpacked with wrong size!
  417.   fi
  418.   # end of 'netuse/clients/makefile.os2'
  419. fi
  420. if test -f 'netuse/daemons/Makefile' -a "${1}" != "-c" ; then 
  421.   echo shar: Will not clobber existing file \"'netuse/daemons/Makefile'\"
  422. else
  423.   echo shar: Extracting \"'netuse/daemons/Makefile'\" \(1817 characters\)
  424.   sed "s/^X//" >'netuse/daemons/Makefile' <<'END_OF_FILE'
  425. X#
  426. X# Makefile for NETUSE daemons.
  427. X#
  428. X# Lee Liming, The Computer Aided Engineering Network
  429. X# The University of Michigan
  430. X#
  431. X# (c) 1992, The Regents of the University of Michigan
  432. X# ALL RIGHTS RESERVED
  433. X
  434. XCC           = cc -g
  435. X
  436. XDESTDIR      = /tmp
  437. XPKGDEST      = $(DESTDIR)/netuse
  438. XBINDEST      = $(PKGDEST)/bin
  439. XETCDEST      = $(PKGDEST)/etc
  440. XMANDEST      = $(PKGDEST)/man
  441. X
  442. XINSTBIN      = cp
  443. XINSTETC      = cp
  444. XINSTMAN      = cp
  445. X
  446. XDAEMONS      = netuse netused
  447. XNETUSED_LINK = 
  448. X
  449. XBINARY1      = netused
  450. XOBJS1        = netused.o getload.o getusers.o getdisk.o getmodel.o caenlab.o
  451. XLINKER1      = -lm $(NETUSED_LINK) -L../lib -lNetuse
  452. XBINARY2      = netuse
  453. XOBJS2        = netuse.o
  454. XLINKER2      = -L../lib -lNetuse
  455. XBADFILES     = $(DAEMONS) wakeup
  456. X
  457. Xall: $(DAEMONS) wakeup
  458. X
  459. X$(BINARY1): $(OBJS1)
  460. X    $(CC) -o $(BINARY1) $(OBJS1) $(LINKER1)
  461. X
  462. X$(BINARY2): $(OBJS2)
  463. X    $(CC) -o $(BINARY2) $(OBJS2) $(LINKER2)
  464. X
  465. Xwakeup: wakeup.o
  466. X    $(CC) -o wakeup wakeup.o -L../lib -lNetuse
  467. X
  468. X.c.o:
  469. X    $(CC) -c $<
  470. X
  471. Xnetused.o:  netused.c ../lib/protocol.h
  472. Xnetuse.o:   netuse.c ../lib/variable.h ../lib/protocol.h ../lib/netuse.h
  473. Xwakeup.o:   wakeup.c ../lib/protocol.h ../lib/netuse.h
  474. X
  475. Xinstall: $(ETCDEST) $(MANDEST)/man8 $(DAEMONS) wakeup
  476. X    for f in $(DAEMONS);                 \
  477. X    do                                  \
  478. X      $(INSTETC) $$f $(ETCDEST)/$$f;     \
  479. X    done
  480. X    $(INSTETC) wakeup $(ETCDEST)/wakeup
  481. X    $(INSTMAN) netuse.8 $(MANDEST)/man8/netuse.8
  482. X    $(INSTMAN) netused.8 $(MANDEST)/man8/netused.8
  483. X
  484. X
  485. X$(MANDEST)/man8: $(MANDEST)
  486. X    - mkdir $(MANDEST)/man8; chmod 755 $(MANDEST)/man8
  487. X
  488. X$(MANDEST): $(PKGDEST)
  489. X    - mkdir $(MANDEST); chmod 755 $(MANDEST)
  490. X
  491. X$(ETCDEST): $(PKGDEST)
  492. X    - mkdir $(ETCDEST); chmod 755 $(ETCDEST)
  493. X    
  494. X$(PKGDEST): $(DESTDIR)
  495. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  496. X    
  497. X$(DESTDIR):
  498. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  499. X    
  500. Xclean:
  501. X    \rm -f *.o *.bak $(BADFILES)
  502. END_OF_FILE
  503.   if test 1817 -ne `wc -c <'netuse/daemons/Makefile'`; then
  504.     echo shar: \"'netuse/daemons/Makefile'\" unpacked with wrong size!
  505.   fi
  506.   # end of 'netuse/daemons/Makefile'
  507. fi
  508. if test -f 'netuse/daemons/caenlab.h' -a "${1}" != "-c" ; then 
  509.   echo shar: Will not clobber existing file \"'netuse/daemons/caenlab.h'\"
  510. else
  511.   echo shar: Extracting \"'netuse/daemons/caenlab.h'\" \(1623 characters\)
  512.   sed "s/^X//" >'netuse/daemons/caenlab.h' <<'END_OF_FILE'
  513. X/******************************************************************************
  514. X CAENLAB.H - Header file for CAEN-specific NETUSE code
  515. X
  516. X Copyright (C) 1992 by the Regents of the University of Michigan.
  517. X
  518. X User agrees to reproduce said copyright notice on all copies of the software
  519. X made by the recipient.  
  520. X
  521. X All Rights Reserved. Permission is hereby granted for the recipient to make
  522. X copies and use this software for its own internal purposes only. Recipient of
  523. X this software may re-distribute this software outside of their own
  524. X institution. Permission to market this software commercially, to include this
  525. X product as part of a commercial product, or to make a derivative work for
  526. X commercial purposes, is explicitly prohibited.  All other uses are also
  527. X prohibited unless authorized in writing by the Regents of the University of
  528. X Michigan.
  529. X
  530. X This software is offered without warranty. The Regents of the University of
  531. X Michigan disclaim all warranties, express or implied, including but not
  532. X limited to the implied warranties of merchantability and fitness for any
  533. X particular purpose. In no event shall the Regents of the University of
  534. X Michigan be liable for loss or damage of any kind, including but not limited
  535. X to incidental, indirect, consequential, or special damages. 
  536. X******************************************************************************/
  537. X
  538. X#ifndef _CAENLAB_INCLUDED_
  539. X#define _CAENLAB_INCLUDED_
  540. X
  541. X
  542. X#ifdef __STDC__
  543. X
  544. Xint apolloShouldRun(void);
  545. Xint hostconfigShouldRun(void);
  546. Xint netusedShouldRun(void);
  547. X
  548. X#else
  549. X
  550. Xint apolloShouldRun();
  551. Xint hostconfigShouldRun();
  552. Xint netusedShouldRun();
  553. X
  554. X#endif
  555. X
  556. X
  557. X#endif
  558. END_OF_FILE
  559.   if test 1623 -ne `wc -c <'netuse/daemons/caenlab.h'`; then
  560.     echo shar: \"'netuse/daemons/caenlab.h'\" unpacked with wrong size!
  561.   fi
  562.   # end of 'netuse/daemons/caenlab.h'
  563. fi
  564. if test -f 'netuse/doc/README' -a "${1}" != "-c" ; then 
  565.   echo shar: Will not clobber existing file \"'netuse/doc/README'\"
  566. else
  567.   echo shar: Extracting \"'netuse/doc/README'\" \(537 characters\)
  568.   sed "s/^X//" >'netuse/doc/README' <<'END_OF_FILE'
  569. X
  570. XNETUSE DOCUMENTATION FORMATS
  571. X
  572. XThe NETUSE documentation is provided in three formats for your convenience.
  573. X
  574. XNETUSE.fm is a FrameMaker 3.0 document NETUSE.ps is the same document in 
  575. XPostScript form.  NETUSE.txt is the same document in plain-Jane ASCII text 
  576. Xformat (generated through a complex process of uglification).
  577. X
  578. XNOTE:  The USENET-posted distribution contains only the ASCII documentation.  
  579. X       The FrameMaker and PostScript forms can be obtained from the anonymous 
  580. X       FTP distribution described in the documentation.
  581. END_OF_FILE
  582.   if test 537 -ne `wc -c <'netuse/doc/README'`; then
  583.     echo shar: \"'netuse/doc/README'\" unpacked with wrong size!
  584.   fi
  585.   # end of 'netuse/doc/README'
  586. fi
  587. if test -f 'netuse/lib/Makefile' -a "${1}" != "-c" ; then 
  588.   echo shar: Will not clobber existing file \"'netuse/lib/Makefile'\"
  589. else
  590.   echo shar: Extracting \"'netuse/lib/Makefile'\" \(1338 characters\)
  591.   sed "s/^X//" >'netuse/lib/Makefile' <<'END_OF_FILE'
  592. X#
  593. X# Makefile for NETUSE library directory
  594. X#
  595. X# Lee Liming, The Computer Aided Engineering Network
  596. X# The University of Michigan
  597. X#
  598. X# (c) 1992, The Regents of the University of Michigan
  599. X# ALL RIGHTS RESERVED
  600. X
  601. XCC      = cc -g
  602. X
  603. XDESTDIR = /tmp
  604. XPKGDEST = $(DESTDIR)/netuse
  605. XLIBDEST = $(PKGDEST)/lib
  606. XINCDEST = $(PKGDEST)/include
  607. XMANDEST = $(PKGDEST)/man
  608. X
  609. XINSTLIB = cp
  610. XINSTINC = cp
  611. XINSTMAN = cp
  612. X
  613. XLIBFILE = libNetuse.a
  614. XMODULES = network.o gethost.o getlist.o netadmin.o parser.o variable.o
  615. X
  616. X
  617. Xall: $(LIBFILE)
  618. X
  619. X$(LIBFILE): $(MODULES)
  620. X    \rm -f $(LIBFILE); ar cq $(LIBFILE) $(MODULES) ; ranlib $(LIBFILE)
  621. X
  622. X.c.o:
  623. X    $(CC) -c $<
  624. X
  625. Xnetwork.o:  protocol.h network.h netuse.h
  626. Xgethost.o:  protocol.h network.h netuse.h
  627. Xgetlist.o:  protocol.h network.h netuse.h
  628. Xnetadmin.o: protocol.h network.h netuse.h
  629. Xparser.o:   parser.h
  630. Xvariable.o: protocol.h netuse.h parser.h variable.h
  631. X
  632. Xinstall: $(LIBDEST) $(INCDEST) $(LIBFILE) protocol.h netuse.h
  633. X    $(INSTLIB) $(LIBFILE) $(LIBDEST)/$(LIBFILE)
  634. X    $(INSTINC) protocol.h $(INCDEST)/protocol.h
  635. X    $(INSTINC) netuse.h $(INCDEST)/netuse.h
  636. X
  637. X$(LIBDEST): $(PKGDEST)
  638. X    - mkdir $(LIBDEST); chmod 755 $(LIBDEST)
  639. X    
  640. X$(INCDEST): $(PKGDEST)
  641. X    - mkdir $(INCDEST); chmod 755 $(INCDEST)
  642. X    
  643. X$(PKGDEST): $(DESTDIR)
  644. X    - mkdir $(PKGDEST); chmod 755 $(PKGDEST)
  645. X    
  646. X$(DESTDIR):
  647. X    - mkdir $(DESTDIR); chmod 755 $(DESTDIR)
  648. X    
  649. Xclean:
  650. X    \rm -f *.o *.bak $(LIBFILE)
  651. END_OF_FILE
  652.   if test 1338 -ne `wc -c <'netuse/lib/Makefile'`; then
  653.     echo shar: \"'netuse/lib/Makefile'\" unpacked with wrong size!
  654.   fi
  655.   # end of 'netuse/lib/Makefile'
  656. fi
  657. if test -f 'netuse/lib/libresp' -a "${1}" != "-c" ; then 
  658.   echo shar: Will not clobber existing file \"'netuse/lib/libresp'\"
  659. else
  660.   echo shar: Extracting \"'netuse/lib/libresp'\" \(70 characters\)
  661.   sed "s/^X//" >'netuse/lib/libresp' <<'END_OF_FILE'
  662. XNETUSE
  663. Xy
  664. X+NETWORK+GETHOST+GETLIST+NETADMIN+PARSER+VARIABLE
  665. Xnetuse.lst
  666. END_OF_FILE
  667.   if test 70 -ne `wc -c <'netuse/lib/libresp'`; then
  668.     echo shar: \"'netuse/lib/libresp'\" unpacked with wrong size!
  669.   fi
  670.   # end of 'netuse/lib/libresp'
  671. fi
  672. if test -f 'netuse/lib/makefile.dos' -a "${1}" != "-c" ; then 
  673.   echo shar: Will not clobber existing file \"'netuse/lib/makefile.dos'\"
  674. else
  675.   echo shar: Extracting \"'netuse/lib/makefile.dos'\" \(709 characters\)
  676.   sed "s/^X//" >'netuse/lib/makefile.dos' <<'END_OF_FILE'
  677. X#
  678. X# Makefile for NETUSE library directory (MS-DOS, Microsoft C, NOVELL TCP/IP)
  679. X#
  680. X# Lee Liming, The Computer Aided Engineering Network
  681. X# The University of Michigan
  682. X#
  683. X# (c) 1992, The Regents of the University of Michigan
  684. X# ALL RIGHTS RESERVED
  685. X
  686. XCC      = cl /AS -DNOVELL
  687. XLIBFILE = Netuse.lib
  688. XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj
  689. X
  690. X.c.obj:
  691. X    $(CC) -c $*.c
  692. X
  693. Xnetwork.obj:  protocol.h network.h netuse.h
  694. X
  695. Xgethost.obj:  protocol.h network.h netuse.h
  696. X
  697. Xgetlist.obj:  protocol.h network.h netuse.h
  698. X
  699. Xnetadmin.obj: protocol.h network.h netuse.h
  700. X
  701. Xparser.obj:   parser.h
  702. X
  703. Xvariable.obj: protocol.h netuse.h parser.h variable.h
  704. X
  705. X$(LIBFILE): $(MODULES)
  706. X    del $(LIBFILE)
  707. X    lib @libresp
  708. END_OF_FILE
  709.   if test 709 -ne `wc -c <'netuse/lib/makefile.dos'`; then
  710.     echo shar: \"'netuse/lib/makefile.dos'\" unpacked with wrong size!
  711.   fi
  712.   # end of 'netuse/lib/makefile.dos'
  713. fi
  714. if test -f 'netuse/lib/makefile.os2' -a "${1}" != "-c" ; then 
  715.   echo shar: Will not clobber existing file \"'netuse/lib/makefile.os2'\"
  716. else
  717.   echo shar: Extracting \"'netuse/lib/makefile.os2'\" \(696 characters\)
  718.   sed "s/^X//" >'netuse/lib/makefile.os2' <<'END_OF_FILE'
  719. X#
  720. X# Makefile for NETUSE library directory (OS/2, Microsoft C, IBM TCP/IP)
  721. X#
  722. X# Lee Liming, The Computer Aided Engineering Network
  723. X# The University of Michigan
  724. X#
  725. X# (c) 1992, The Regents of the University of Michigan
  726. X# ALL RIGHTS RESERVED
  727. X
  728. XCC      = cl /AL /DOS2 -DIBMTCPIP
  729. XLIBFILE = Netuse.lib
  730. XMODULES = network.obj gethost.obj getlist.obj netadmin.obj parser.obj variable.obj
  731. X
  732. X.c.obj:
  733. X    $(CC) -c $*.c
  734. X
  735. Xnetwork.obj:  protocol.h network.h netuse.h
  736. X
  737. Xgethost.obj:  protocol.h network.h netuse.h
  738. X
  739. Xgetlist.obj:  protocol.h network.h netuse.h
  740. X
  741. Xnetadmin.obj: protocol.h network.h netuse.h
  742. X
  743. Xparser.obj:   parser.h
  744. X
  745. Xvariable.obj: protocol.h netuse.h parser.h variable.h
  746. X
  747. X$(LIBFILE): $(MODULES)
  748. X    lib @libresp
  749. END_OF_FILE
  750.   if test 696 -ne `wc -c <'netuse/lib/makefile.os2'`; then
  751.     echo shar: \"'netuse/lib/makefile.os2'\" unpacked with wrong size!
  752.   fi
  753.   # end of 'netuse/lib/makefile.os2'
  754. fi
  755. if test -f 'netuse/lib/network.h' -a "${1}" != "-c" ; then 
  756.   echo shar: Will not clobber existing file \"'netuse/lib/network.h'\"
  757. else
  758.   echo shar: Extracting \"'netuse/lib/network.h'\" \(1812 characters\)
  759.   sed "s/^X//" >'netuse/lib/network.h' <<'END_OF_FILE'
  760. X/******************************************************************************
  761. X NETWORK.H - NETUSE Client-side Network Interface header file
  762. X
  763. X Lee Liming and Michael Neil, The Computer Aided Engineering Network
  764. X The University of Michigan
  765. X
  766. X Copyright (C) 1990, 1991, 1992 by the Regents of the University of Michigan.
  767. X
  768. X User agrees to reproduce said copyright notice on all copies of the software
  769. X made by the recipient.  
  770. X
  771. X All Rights Reserved. Permission is hereby granted for the recipient to make
  772. X copies and use this software for its own internal purposes only. Recipient of
  773. X this software may re-distribute this software outside of their own
  774. X institution. Permission to market this software commercially, to include this
  775. X product as part of a commercial product, or to make a derivative work for
  776. X commercial purposes, is explicitly prohibited.  All other uses are also
  777. X prohibited unless authorized in writing by the Regents of the University of
  778. X Michigan.
  779. X
  780. X This software is offered without warranty. The Regents of the University of
  781. X Michigan disclaim all warranties, express or implied, including but not
  782. X limited to the implied warranties of merchantability and fitness for any
  783. X particular purpose. In no event shall the Regents of the University of
  784. X Michigan be liable for loss or damage of any kind, including but not limited
  785. X to incidental, indirect, consequential, or special damages. 
  786. X******************************************************************************/
  787. X
  788. X#ifndef _NETWORK_INCLUDED_
  789. X#define _NETWORK_INCLUDED_
  790. X
  791. X
  792. X#include "protocol.h"
  793. X
  794. X
  795. X#ifdef __STDC__
  796. X
  797. Xint packetSend(USEREC *msg);
  798. Xint packetReceive(USEREC *msg);
  799. Xvoid netSetup(void);
  800. Xvoid netShutdown(void);
  801. X
  802. X#else
  803. X
  804. Xint packetSend();
  805. Xint packetReceive();
  806. Xvoid netSetup();
  807. Xvoid netShutdown();
  808. X
  809. X#endif
  810. X
  811. X#endif   /* _NETWORK_INCLUDED_ */
  812. END_OF_FILE
  813.   if test 1812 -ne `wc -c <'netuse/lib/network.h'`; then
  814.     echo shar: \"'netuse/lib/network.h'\" unpacked with wrong size!
  815.   fi
  816.   # end of 'netuse/lib/network.h'
  817. fi
  818. if test -f 'netuse/lib/parser.h' -a "${1}" != "-c" ; then 
  819.   echo shar: Will not clobber existing file \"'netuse/lib/parser.h'\"
  820. else
  821.   echo shar: Extracting \"'netuse/lib/parser.h'\" \(1516 characters\)
  822.   sed "s/^X//" >'netuse/lib/parser.h' <<'END_OF_FILE'
  823. X/*****************************************************************************
  824. X PARSER.H - General string parsing module header file
  825. X
  826. X (c) 1990, 1991, 1992, R. Lee Liming, Jr.
  827. X USED WITH PERMISSION OF THE AUTHOR
  828. X ALL RIGHTS RESERVED
  829. X
  830. X Defines: char *strip(char *str);
  831. X          char *strip_leading(char *str);
  832. X          char *scrunch(char *str);
  833. X          char *stoupper(char *);
  834. X          char *spicture(char *str,int n,char *temp);
  835. X          int   whitespace(char ch);
  836. X          char *textparam(char *str,int pos,char buf[]);
  837. X          char *encapsulate(char *str,char *buf);
  838. X          char *breakout(char *str,char *buf);
  839. X          int   limits(char *rstr,int *start,int *stop);
  840. X          char *strstr(char *str,char target[]);
  841. X*****************************************************************************/
  842. X
  843. X#ifndef _PARSER_INCLUDED_
  844. X
  845. X#define _PARSER_INCLUDED_
  846. X
  847. X
  848. X#ifdef  __STDC__
  849. X
  850. Xchar *strip(char *);
  851. Xchar *strip_leading(char *);
  852. Xchar *scrunch(char *str);
  853. Xchar *stoupper(char *);
  854. Xchar *spicture(char *str,int n,char *temp);
  855. Xint   whitespace(char);
  856. Xchar *textparam(char *,int,char []);
  857. Xchar *encapsulate(char *str,char *buf);
  858. Xchar *breakout(char *str,char *buf);
  859. Xint   limits(char *rstr,int *start,int *stop);
  860. Xchar *strstr(char *,char []);
  861. X
  862. X#else  /* ifndef __STDC__ */
  863. X
  864. Xchar *strip();
  865. Xchar *strip_leading();
  866. Xchar *scrunch();
  867. Xchar *stoupper();
  868. Xchar *spicture();
  869. Xint   whitespace();
  870. Xchar *textparam();
  871. Xchar *encapsulate();
  872. Xchar *breakout();
  873. Xint   limits();
  874. Xchar *strstr();
  875. X
  876. X#endif
  877. X
  878. X#endif  /* _PARSER_INCLUDED_ */
  879. END_OF_FILE
  880.   if test 1516 -ne `wc -c <'netuse/lib/parser.h'`; then
  881.     echo shar: \"'netuse/lib/parser.h'\" unpacked with wrong size!
  882.   fi
  883.   # end of 'netuse/lib/parser.h'
  884. fi
  885. echo shar: End of archive 6 \(of 6\).
  886. cp /dev/null ark6isdone
  887. MISSING=""
  888. for I in 1 2 3 4 5 6 ; do
  889.     if test ! -f ark${I}isdone ; then
  890.     MISSING="${MISSING} ${I}"
  891.     fi
  892. done
  893. if test "${MISSING}" = "" ; then
  894.     echo You have unpacked all 6 archives.
  895.     rm -f ark[1-9]isdone
  896. else
  897.     echo You still must unpack the following archives:
  898.     echo "        " ${MISSING}
  899. fi
  900. exit 0
  901. exit 0 # Just in case...
  902.