home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume41 / wwfs / part20 < prev    next >
Encoding:
Text File  |  1994-01-17  |  88.7 KB  |  2,600 lines

  1. Newsgroups: comp.sources.misc
  2. From: youki-k@is.aist-nara.ac.jp (Youki Kadobayashi)
  3. Subject: v41i105:  wwfs - WorldWide File System, Part20/22
  4. Message-ID: <1994Jan17.202627.20679@sparky.sterling.com>
  5. X-Md4-Signature: 6ab9930cf4237219faef119393245747
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Organization: Nara Institute of Science and Technology, Japan
  8. Date: Mon, 17 Jan 1994 20:26:27 GMT
  9. Approved: kent@sparky.sterling.com
  10.  
  11. Submitted-by: youki-k@is.aist-nara.ac.jp (Youki Kadobayashi)
  12. Posting-number: Volume 41, Issue 105
  13. Archive-name: wwfs/part20
  14. Environment: UNIX, inet
  15.  
  16. #! /bin/sh
  17. # This is a shell archive.  Remove anything before this line, then feed it
  18. # into a shell via "sh file" or similar.  To overwrite existing files,
  19. # type "sh file -c".
  20. # Contents:  Makefile Makefile.build config/Makefile.aix3
  21. #   config/Makefile.bsd386 config/Makefile.bsd44 config/Makefile.build
  22. #   config/Makefile.config config/Makefile.hpux config/Makefile.irix3
  23. #   config/Makefile.irix4 config/Makefile.stellix config/misc-irix.h
  24. #   config/misc-next.h config/misc-ultrix.h config/os-luna2M.h
  25. #   config/os-luna88k.h config/os-uniosb.h config/os-utek.h csd/rps.c
  26. #   doc/Makefile.build gtr/Makefile.build libmm/Makefile.build
  27. #   libww/Makefile.build libww/wwget.c mosaic/Makefile
  28. #   mosaic/Makefile.build rpc/Makefile.build saps/Makefile.build
  29. #   saps/makelist.pl saps/map.pl saps/vol2html.pl vol/khoros.vol
  30. #   wwmount/am_compat.c
  31. # Wrapped by kent@sparky on Sun Jan 16 17:48:41 1994
  32. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
  33. echo If this archive is complete, you will see the following message:
  34. echo '          "shar: End of archive 20 (of 22)."'
  35. if test -f 'Makefile' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'Makefile'\"
  37. else
  38.   echo shar: Extracting \"'Makefile'\" \(2673 characters\)
  39.   sed "s/^X//" >'Makefile' <<'END_OF_FILE'
  40. X#
  41. X# Makefile for Worldwide File System.
  42. X#
  43. X# Author:    Youki Kadobayashi, Osaka University, Japan
  44. X#        E-mail: <youki@wide.ad.jp>
  45. X#
  46. X# 
  47. X# WorldWide File System
  48. X# Copyright (c) 1992,1993 Youki Kadobayashi
  49. X# Copyright (c) 1992,1993 Osaka University
  50. X# All rights reserved.
  51. X#
  52. X# Permission to use, copy, modify and distribute this software and its
  53. X# documentation is hereby granted, provided that the following conditions
  54. X# are met:
  55. X# 1. Both the copyright notice and this permission notice appear in
  56. X#    all copies of the software, derivative works or modified versions,
  57. X#    and any portions thereof, and that both notices appear in
  58. X#    supporting documentation.
  59. X# 2. All advertising materials mentioning features or use of this software
  60. X#    must display the following acknowledgement:
  61. X#      This product includes software developed by the Osaka University
  62. X#      and its contributors.
  63. X# 3. Neither the name of the University nor the names of its contributors
  64. X#    may be used to endorse or promote products derived from this software
  65. X#    without specific prior written permission.
  66. X#
  67. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  68. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  69. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  70. X#
  71. X# Osaka University requests users of this software to return to
  72. X#
  73. X#  Youki Kadobayashi
  74. X#  Department of Information and Computer Sciences
  75. X#  Osaka University, Toyonaka 560, Osaka, Japan
  76. X#
  77. X# any improvements or extensions that they make and grant Osaka
  78. X# University the rights to redistribute these changes.
  79. X
  80. X# $Header: Makefile[109.2] Thu Dec 16 20:38:05 1993 youki-k@is.aist-nara.ac.jp saved $
  81. X#
  82. XPROGS = csd libww wwmount wwumount
  83. XCLIENTS = config libww caps wwmount
  84. XSERVERS = config csd gtr libmm saps mosaic vol
  85. XALLDIRS = alpha beta caps config csd doc gtr include libmm libww mosaic mule rpc saps vol wwalk wwmount
  86. X
  87. X# To use alternative 'make' program, say gmake, type:
  88. X#    gmake Make="gmake"
  89. XMake = make
  90. XMAK  = $(Make) Make="$(Make)"
  91. XMKARG = -f Makefile.top TOP="."
  92. XSHELL = /bin/sh
  93. X
  94. Xall: FRC
  95. X    @for prog in $(PROGS); do \
  96. X        echo Making $$prog; \
  97. X        (cd $$prog; $(MAK) $$prog ) \
  98. X    done
  99. X
  100. X$(PROGS): FRC
  101. X    @cd $@; $(MAK) $@
  102. X
  103. Xinstall:    install-client install-server
  104. X
  105. Xinstall-client:
  106. X    @for prog in $(CLIENTS); do \
  107. X        echo doing $@ in $$prog; \
  108. X        (cd $$prog; $(MAK) $@) \
  109. X    done
  110. X
  111. Xinstall-server:
  112. X    @$(MAK) $(MKARG) $@
  113. X    @for prog in $(SERVERS); do \
  114. X        echo doing $@ in $$prog; \
  115. X        (cd $$prog; $(MAK) $@) \
  116. X    done
  117. X
  118. Xclean baseline copyright version:
  119. X    @$(MAK) $(MKARG) $@
  120. X    @for prog in $(ALLDIRS); do \
  121. X        echo doing $@ in $$prog; \
  122. X        (cd $$prog; $(MAK) $@) \
  123. X    done
  124. X
  125. Xdist index tags id lint: FRC
  126. X    @$(MAK) $(MKARG) $@
  127. X
  128. XFRC:
  129. END_OF_FILE
  130.   if test 2673 -ne `wc -c <'Makefile'`; then
  131.     echo shar: \"'Makefile'\" unpacked with wrong size!
  132.   fi
  133.   # end of 'Makefile'
  134. fi
  135. if test -f 'Makefile.build' -a "${1}" != "-c" ; then 
  136.   echo shar: Will not clobber existing file \"'Makefile.build'\"
  137. else
  138.   echo shar: Extracting \"'Makefile.build'\" \(2498 characters\)
  139.   sed "s/^X//" >'Makefile.build' <<'END_OF_FILE'
  140. X#
  141. X# Makefile.build for Worldwide File System.
  142. X#
  143. X# Author:    Youki Kadobayashi, Osaka University, Japan
  144. X#        E-mail: <youki@wide.ad.jp>
  145. X#
  146. X# 
  147. X# WorldWide File System
  148. X# Copyright (c) 1992,1993 Youki Kadobayashi
  149. X# Copyright (c) 1992,1993 Osaka University
  150. X# All rights reserved.
  151. X#
  152. X# Permission to use, copy, modify and distribute this software and its
  153. X# documentation is hereby granted, provided that the following conditions
  154. X# are met:
  155. X# 1. Both the copyright notice and this permission notice appear in
  156. X#    all copies of the software, derivative works or modified versions,
  157. X#    and any portions thereof, and that both notices appear in
  158. X#    supporting documentation.
  159. X# 2. All advertising materials mentioning features or use of this software
  160. X#    must display the following acknowledgement:
  161. X#      This product includes software developed by the Osaka University
  162. X#      and its contributors.
  163. X# 3. Neither the name of the University nor the names of its contributors
  164. X#    may be used to endorse or promote products derived from this software
  165. X#    without specific prior written permission.
  166. X#
  167. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  168. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  169. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  170. X#
  171. X# Osaka University requests users of this software to return to
  172. X#
  173. X#  Youki Kadobayashi
  174. X#  Department of Information and Computer Sciences
  175. X#  Osaka University, Toyonaka 560, Osaka, Japan
  176. X#
  177. X# any improvements or extensions that they make and grant Osaka
  178. X# University the rights to redistribute these changes.
  179. X
  180. X# $Header: Makefile.build[109.1] Thu Dec 16 20:38:06 1993 youki-k@is.aist-nara.ac.jp saved $
  181. X#
  182. X
  183. XFILES=        Makefile Makefile.com Makefile.top README
  184. X
  185. XSUBDIRS=    $(STAGE)/ caps/ config/ csd/ doc/ gtr/ include/ libmm/ libww/ mosaic/ mule/ rpc/ saps/ vol/ wwmount/ wwalk/
  186. X
  187. Xinstall-server:
  188. X    if [ -d $(WWFSDIR)/usr ]; then \
  189. X        echo "WWFSDIR should be correctly set"; \
  190. X        exit 1; \
  191. X    else \
  192. X        exit 0; \
  193. X    fi
  194. X    -mkdir $(WWFSDIR)
  195. X    -mkdir $(WWFSDIR)/bin
  196. X    -mkdir $(WWFSDIR)/cache
  197. X    -mkdir $(WWFSDIR)/etc
  198. X    -mkdir $(WWFSDIR)/lib
  199. X    -mkdir $(WWFSDIR)/log
  200. X    -mkdir $(WWFSDIR)/ongoing
  201. X    -mkdir $(WWFSDIR)/stale
  202. X    -mkdir $(WWFSDIR)/vol
  203. X    -chmod a+x $(WWFSDIR)/bin/*
  204. X    chown -R wwfs.$(GROUP) $(WWFSDIR)/
  205. X
  206. Xdist:    FRC
  207. X    gtar -cvhz --exclude AtFS -f dist/wwfs-$(VERSION).tar.gz \
  208. X        $(FILES) $(SUBDIRS)
  209. X
  210. Xindex:    id tags
  211. X
  212. Xid:
  213. X    find . -name '*.[ch]' -a \! -type l -print | grep -v 'AtFS/' | mkid -
  214. X
  215. Xtags:
  216. X    etags `find . -name '*.[ch]' | grep -v 'AtFS/'`
  217. X
  218. XFRC:
  219. END_OF_FILE
  220.   if test 2498 -ne `wc -c <'Makefile.build'`; then
  221.     echo shar: \"'Makefile.build'\" unpacked with wrong size!
  222.   fi
  223.   # end of 'Makefile.build'
  224. fi
  225. if test -f 'config/Makefile.aix3' -a "${1}" != "-c" ; then 
  226.   echo shar: Will not clobber existing file \"'config/Makefile.aix3'\"
  227. else
  228.   echo shar: Extracting \"'config/Makefile.aix3'\" \(2127 characters\)
  229.   sed "s/^X//" >'config/Makefile.aix3' <<'END_OF_FILE'
  230. X#
  231. X# Copyright (c) 1990 Jan-Simon Pendry
  232. X# Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  233. X# Copyright (c) 1990 The Regents of the University of California.
  234. X# All rights reserved.
  235. X#
  236. X# This code is derived from software contributed to Berkeley by
  237. X# Jan-Simon Pendry at Imperial College, London.
  238. X#
  239. X# Redistribution and use in source and binary forms, with or without
  240. X# modification, are permitted provided that the following conditions
  241. X# are met:
  242. X# 1. Redistributions of source code must retain the above copyright
  243. X#    notice, this list of conditions and the following disclaimer.
  244. X# 2. Redistributions in binary form must reproduce the above copyright
  245. X#    notice, this list of conditions and the following disclaimer in the
  246. X#    documentation and/or other materials provided with the distribution.
  247. X# 3. All advertising materials mentioning features or use of this software
  248. X#    must display the following acknowledgement:
  249. X#      This product includes software developed by the University of
  250. X#      California, Berkeley and its contributors.
  251. X# 4. Neither the name of the University nor the names of its contributors
  252. X#    may be used to endorse or promote products derived from this software
  253. X#    without specific prior written permission.
  254. X#
  255. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  256. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  257. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  258. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  259. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  260. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  261. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  262. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  263. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  264. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  265. X# SUCH DAMAGE.
  266. X#
  267. X#    %W% (Berkeley) %G%
  268. X#
  269. X# $Id: Makefile.aix3,v 5.2.2.1 1992/02/09 15:10:06 jsp beta $
  270. X#
  271. XSYSLIB = -lbsd
  272. END_OF_FILE
  273.   if test 2127 -ne `wc -c <'config/Makefile.aix3'`; then
  274.     echo shar: \"'config/Makefile.aix3'\" unpacked with wrong size!
  275.   fi
  276.   # end of 'config/Makefile.aix3'
  277. fi
  278. if test -f 'config/Makefile.bsd386' -a "${1}" != "-c" ; then 
  279.   echo shar: Will not clobber existing file \"'config/Makefile.bsd386'\"
  280. else
  281.   echo shar: Extracting \"'config/Makefile.bsd386'\" \(2172 characters\)
  282.   sed "s/^X//" >'config/Makefile.bsd386' <<'END_OF_FILE'
  283. X#
  284. X# Copyright (c) 1989 Jan-Simon Pendry
  285. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  286. X# Copyright (c) 1989 The Regents of the University of California.
  287. X# All rights reserved.
  288. X#
  289. X# This code is derived from software contributed to Berkeley by
  290. X# Jan-Simon Pendry at Imperial College, London.
  291. X#
  292. X# Redistribution and use in source and binary forms, with or without
  293. X# modification, are permitted provided that the following conditions
  294. X# are met:
  295. X# 1. Redistributions of source code must retain the above copyright
  296. X#    notice, this list of conditions and the following disclaimer.
  297. X# 2. Redistributions in binary form must reproduce the above copyright
  298. X#    notice, this list of conditions and the following disclaimer in the
  299. X#    documentation and/or other materials provided with the distribution.
  300. X# 3. All advertising materials mentioning features or use of this software
  301. X#    must display the following acknowledgement:
  302. X#      This product includes software developed by the University of
  303. X#      California, Berkeley and its contributors.
  304. X# 4. Neither the name of the University nor the names of its contributors
  305. X#    may be used to endorse or promote products derived from this software
  306. X#    without specific prior written permission.
  307. X#
  308. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  309. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  310. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  311. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  312. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  313. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  314. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  315. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  316. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  317. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  318. X# SUCH DAMAGE.
  319. X#
  320. X#    %W% (Berkeley) %G%
  321. X#
  322. X# $Id: Makefile.bsd44,v 5.2.2.1 1992/02/09 15:10:12 jsp beta $
  323. X#
  324. X# Extra Makefile definitions for 4.4 BSD
  325. X#
  326. X
  327. XRPCLIB = -lrpc
  328. END_OF_FILE
  329.   if test 2172 -ne `wc -c <'config/Makefile.bsd386'`; then
  330.     echo shar: \"'config/Makefile.bsd386'\" unpacked with wrong size!
  331.   fi
  332.   # end of 'config/Makefile.bsd386'
  333. fi
  334. if test -f 'config/Makefile.bsd44' -a "${1}" != "-c" ; then 
  335.   echo shar: Will not clobber existing file \"'config/Makefile.bsd44'\"
  336. else
  337.   echo shar: Extracting \"'config/Makefile.bsd44'\" \(2172 characters\)
  338.   sed "s/^X//" >'config/Makefile.bsd44' <<'END_OF_FILE'
  339. X#
  340. X# Copyright (c) 1989 Jan-Simon Pendry
  341. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  342. X# Copyright (c) 1989 The Regents of the University of California.
  343. X# All rights reserved.
  344. X#
  345. X# This code is derived from software contributed to Berkeley by
  346. X# Jan-Simon Pendry at Imperial College, London.
  347. X#
  348. X# Redistribution and use in source and binary forms, with or without
  349. X# modification, are permitted provided that the following conditions
  350. X# are met:
  351. X# 1. Redistributions of source code must retain the above copyright
  352. X#    notice, this list of conditions and the following disclaimer.
  353. X# 2. Redistributions in binary form must reproduce the above copyright
  354. X#    notice, this list of conditions and the following disclaimer in the
  355. X#    documentation and/or other materials provided with the distribution.
  356. X# 3. All advertising materials mentioning features or use of this software
  357. X#    must display the following acknowledgement:
  358. X#      This product includes software developed by the University of
  359. X#      California, Berkeley and its contributors.
  360. X# 4. Neither the name of the University nor the names of its contributors
  361. X#    may be used to endorse or promote products derived from this software
  362. X#    without specific prior written permission.
  363. X#
  364. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  365. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  366. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  367. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  368. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  369. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  370. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  371. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  372. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  373. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  374. X# SUCH DAMAGE.
  375. X#
  376. X#    %W% (Berkeley) %G%
  377. X#
  378. X# $Id: Makefile.bsd44,v 5.2.2.1 1992/02/09 15:10:12 jsp beta $
  379. X#
  380. X# Extra Makefile definitions for 4.4 BSD
  381. X#
  382. X
  383. XRPCLIB = -lrpc
  384. END_OF_FILE
  385.   if test 2172 -ne `wc -c <'config/Makefile.bsd44'`; then
  386.     echo shar: \"'config/Makefile.bsd44'\" unpacked with wrong size!
  387.   fi
  388.   # end of 'config/Makefile.bsd44'
  389. fi
  390. if test -f 'config/Makefile.build' -a "${1}" != "-c" ; then 
  391.   echo shar: Will not clobber existing file \"'config/Makefile.build'\"
  392. else
  393.   echo shar: Extracting \"'config/Makefile.build'\" \(2132 characters\)
  394.   sed "s/^X//" >'config/Makefile.build' <<'END_OF_FILE'
  395. X#
  396. X# Makefile.build for config; part of Worldwide File System.
  397. X#
  398. X# Author:    Youki Kadobayashi, Osaka University, Japan
  399. X#        E-mail: <youki@wide.ad.jp>
  400. X#
  401. X# 
  402. X# WorldWide File System
  403. X# Copyright (c) 1992,1993 Youki Kadobayashi
  404. X# Copyright (c) 1992,1993 Osaka University
  405. X# All rights reserved.
  406. X#
  407. X# Permission to use, copy, modify and distribute this software and its
  408. X# documentation is hereby granted, provided that the following conditions
  409. X# are met:
  410. X# 1. Both the copyright notice and this permission notice appear in
  411. X#    all copies of the software, derivative works or modified versions,
  412. X#    and any portions thereof, and that both notices appear in
  413. X#    supporting documentation.
  414. X# 2. All advertising materials mentioning features or use of this software
  415. X#    must display the following acknowledgement:
  416. X#      This product includes software developed by the Osaka University
  417. X#      and its contributors.
  418. X# 3. Neither the name of the University nor the names of its contributors
  419. X#    may be used to endorse or promote products derived from this software
  420. X#    without specific prior written permission.
  421. X#
  422. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  423. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  424. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  425. X#
  426. X# Osaka University requests users of this software to return to
  427. X#
  428. X#  Youki Kadobayashi
  429. X#  Department of Information and Computer Sciences
  430. X#  Osaka University, Toyonaka 560, Osaka, Japan
  431. X#
  432. X# any improvements or extensions that they make and grant Osaka
  433. X# University the rights to redistribute these changes.
  434. X
  435. X# $Header: Makefile.build[109.0] Wed Nov 24 03:46:56 1993 youki-k@is.aist-nara.ac.jp saved $
  436. X#
  437. X
  438. Xall:
  439. X
  440. Xclean::
  441. X    -rm -f csd.pl csd.tcl wwfs.pl wwfs.tcl
  442. X
  443. Xinstall-client:        wwfs.conf
  444. X    @if [ -f /etc/wwfs.conf ]; then \
  445. X        echo "*** /etc/wwfs.conf already exists; using it ***"; \
  446. X    else \
  447. X        $(INSTALL) wwfs.conf /etc; \
  448. X    fi
  449. X    ./convert.pl /etc/wwfs.conf
  450. X
  451. Xinstall-server:        csd.conf
  452. X    @if [ -f /etc/csd.conf ]; then \
  453. X        echo "*** /etc/csd.conf already exists; using it ***"; \
  454. X    else \
  455. X        $(INSTALL) csd.conf /etc; \
  456. X    fi
  457. X    ./convert.pl /etc/csd.conf
  458. X
  459. END_OF_FILE
  460.   if test 2132 -ne `wc -c <'config/Makefile.build'`; then
  461.     echo shar: \"'config/Makefile.build'\" unpacked with wrong size!
  462.   fi
  463.   # end of 'config/Makefile.build'
  464. fi
  465. if test -f 'config/Makefile.config' -a "${1}" != "-c" ; then 
  466.   echo shar: Will not clobber existing file \"'config/Makefile.config'\"
  467. else
  468.   echo shar: Extracting \"'config/Makefile.config'\" \(2442 characters\)
  469.   sed "s/^X//" >'config/Makefile.config' <<'END_OF_FILE'
  470. X#
  471. X# Makefile.config for config; part of Worldwide File System.
  472. X#
  473. X# Author:    Youki Kadobayashi, Osaka University, Japan
  474. X#        E-mail: <youki@wide.ad.jp>
  475. X#
  476. X# 
  477. X# WorldWide File System
  478. X# Copyright (c) 1992,1993 Youki Kadobayashi
  479. X# Copyright (c) 1992,1993 Osaka University
  480. X# All rights reserved.
  481. X#
  482. X# Permission to use, copy, modify and distribute this software and its
  483. X# documentation is hereby granted, provided that the following conditions
  484. X# are met:
  485. X# 1. Both the copyright notice and this permission notice appear in
  486. X#    all copies of the software, derivative works or modified versions,
  487. X#    and any portions thereof, and that both notices appear in
  488. X#    supporting documentation.
  489. X# 2. All advertising materials mentioning features or use of this software
  490. X#    must display the following acknowledgement:
  491. X#      This product includes software developed by the Osaka University
  492. X#      and its contributors.
  493. X# 3. Neither the name of the University nor the names of its contributors
  494. X#    may be used to endorse or promote products derived from this software
  495. X#    without specific prior written permission.
  496. X#
  497. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  498. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  499. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  500. X#
  501. X# Osaka University requests users of this software to return to
  502. X#
  503. X#  Youki Kadobayashi
  504. X#  Department of Information and Computer Sciences
  505. X#  Osaka University, Toyonaka 560, Osaka, Japan
  506. X#
  507. X# any improvements or extensions that they make and grant Osaka
  508. X# University the rights to redistribute these changes.
  509. X
  510. X# $Header: Makefile.config[109.0] Wed Nov 24 03:46:56 1993 youki-k@is.aist-nara.ac.jp saved $
  511. X#
  512. X
  513. X#
  514. X# Comment/uncomment the following lines as required
  515. X#
  516. X
  517. X# if your gethostbyname() does not return fully qualified domain name
  518. X#CCOPTS = $(CCOPTS) -DGENERIC_FROM='"bigname.ac.jp"'
  519. X
  520. X# if you want to hear the daemon mumble as file transfer goes on
  521. X#CCOPTS = $(CCOPTS) -DVERBOSE
  522. X
  523. X# for dbmalloc; if you want to track down the memory leak / bogus free
  524. X#CCOPTS = $(CCOPTS) -DDEBUG_MALLOC
  525. X#SYSLIB = $(SYSLIB) -L/usr/local/lib -ldbmalloc
  526. X
  527. X#
  528. X# Define RESOLV if your C library does not include support
  529. X# for Hesiod and/or Named.
  530. X#
  531. X#RESOLV = -lhesiod -lresolv
  532. X
  533. X#
  534. X# Define DBM if your C library does not include
  535. X# support for gdbm and/or ndbm.
  536. X#
  537. X#DBM = -lgdbm #-lndbm
  538. X
  539. X#
  540. X# Define RPCLIB if your C library does not include
  541. X# support for RPC
  542. X#
  543. X#RPCLIB = -lrpc
  544. X
  545. END_OF_FILE
  546.   if test 2442 -ne `wc -c <'config/Makefile.config'`; then
  547.     echo shar: \"'config/Makefile.config'\" unpacked with wrong size!
  548.   fi
  549.   # end of 'config/Makefile.config'
  550. fi
  551. if test -f 'config/Makefile.hpux' -a "${1}" != "-c" ; then 
  552.   echo shar: Will not clobber existing file \"'config/Makefile.hpux'\"
  553. else
  554.   echo shar: Extracting \"'config/Makefile.hpux'\" \(2260 characters\)
  555.   sed "s/^X//" >'config/Makefile.hpux' <<'END_OF_FILE'
  556. X#
  557. X# Copyright (c) 1989 Jan-Simon Pendry
  558. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  559. X# Copyright (c) 1989 The Regents of the University of California.
  560. X# All rights reserved.
  561. X#
  562. X# This code is derived from software contributed to Berkeley by
  563. X# Jan-Simon Pendry at Imperial College, London.
  564. X#
  565. X# Redistribution and use in source and binary forms, with or without
  566. X# modification, are permitted provided that the following conditions
  567. X# are met:
  568. X# 1. Redistributions of source code must retain the above copyright
  569. X#    notice, this list of conditions and the following disclaimer.
  570. X# 2. Redistributions in binary form must reproduce the above copyright
  571. X#    notice, this list of conditions and the following disclaimer in the
  572. X#    documentation and/or other materials provided with the distribution.
  573. X# 3. All advertising materials mentioning features or use of this software
  574. X#    must display the following acknowledgement:
  575. X#      This product includes software developed by the University of
  576. X#      California, Berkeley and its contributors.
  577. X# 4. Neither the name of the University nor the names of its contributors
  578. X#    may be used to endorse or promote products derived from this software
  579. X#    without specific prior written permission.
  580. X#
  581. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  582. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  583. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  584. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  585. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  586. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  587. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  588. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  589. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  590. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  591. X# SUCH DAMAGE.
  592. X#
  593. X#    %W% (Berkeley) %G%
  594. X#
  595. X# $Id: Makefile.hpux,v 5.2.2.1 1992/02/09 15:10:26 jsp beta $
  596. X#
  597. X# Extra Makefile definitions for HP-UX
  598. X#
  599. X
  600. X#CC = gcc ${GCCOPTS}
  601. X# Works only on HP300
  602. XCC = cc -Wc,-Nd2000
  603. XSYSCC = $(CC)
  604. X# Works only Hp800
  605. X# CC = cc
  606. END_OF_FILE
  607.   if test 2260 -ne `wc -c <'config/Makefile.hpux'`; then
  608.     echo shar: \"'config/Makefile.hpux'\" unpacked with wrong size!
  609.   fi
  610.   # end of 'config/Makefile.hpux'
  611. fi
  612. if test -f 'config/Makefile.irix3' -a "${1}" != "-c" ; then 
  613.   echo shar: Will not clobber existing file \"'config/Makefile.irix3'\"
  614. else
  615.   echo shar: Extracting \"'config/Makefile.irix3'\" \(2331 characters\)
  616.   sed "s/^X//" >'config/Makefile.irix3' <<'END_OF_FILE'
  617. X#
  618. X# Copyright (c) 1990 Jan-Simon Pendry
  619. X# Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  620. X# Copyright (c) 1990 The Regents of the University of California.
  621. X# All rights reserved.
  622. X#
  623. X# This code is derived from software contributed to Berkeley by
  624. X# Jan-Simon Pendry at Imperial College, London.
  625. X#
  626. X# Redistribution and use in source and binary forms, with or without
  627. X# modification, are permitted provided that the following conditions
  628. X# are met:
  629. X# 1. Redistributions of source code must retain the above copyright
  630. X#    notice, this list of conditions and the following disclaimer.
  631. X# 2. Redistributions in binary form must reproduce the above copyright
  632. X#    notice, this list of conditions and the following disclaimer in the
  633. X#    documentation and/or other materials provided with the distribution.
  634. X# 3. All advertising materials mentioning features or use of this software
  635. X#    must display the following acknowledgement:
  636. X#      This product includes software developed by the University of
  637. X#      California, Berkeley and its contributors.
  638. X# 4. Neither the name of the University nor the names of its contributors
  639. X#    may be used to endorse or promote products derived from this software
  640. X#    without specific prior written permission.
  641. X#
  642. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  643. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  644. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  645. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  646. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  647. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  648. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  649. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  650. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  651. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  652. X# SUCH DAMAGE.
  653. X#
  654. X#    %W% (Berkeley) %G%
  655. X#
  656. X# $Id: Makefile.irix3,v 5.2 1992/05/31 16:40:22 jsp Exp $
  657. X#
  658. X# Extra Makefile definitions for IRIX
  659. X#
  660. X
  661. X# For 3.3.x and earlier we might need to indicate the Sun and BSD include
  662. X# paths.
  663. XDEBUG = #-g -DDEBUG
  664. XCCOPTS = -I/usr/include/sun -I/usr/include/bsd
  665. XRESOLV = -lrpcsvc -lsun -lbsd
  666. END_OF_FILE
  667.   if test 2331 -ne `wc -c <'config/Makefile.irix3'`; then
  668.     echo shar: \"'config/Makefile.irix3'\" unpacked with wrong size!
  669.   fi
  670.   # end of 'config/Makefile.irix3'
  671. fi
  672. if test -f 'config/Makefile.irix4' -a "${1}" != "-c" ; then 
  673.   echo shar: Will not clobber existing file \"'config/Makefile.irix4'\"
  674. else
  675.   echo shar: Extracting \"'config/Makefile.irix4'\" \(2425 characters\)
  676.   sed "s/^X//" >'config/Makefile.irix4' <<'END_OF_FILE'
  677. X#
  678. X# Copyright (c) 1990 Jan-Simon Pendry
  679. X# Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  680. X# Copyright (c) 1990 The Regents of the University of California.
  681. X# All rights reserved.
  682. X#
  683. X# This code is derived from software contributed to Berkeley by
  684. X# Jan-Simon Pendry at Imperial College, London.
  685. X#
  686. X# Redistribution and use in source and binary forms, with or without
  687. X# modification, are permitted provided that the following conditions
  688. X# are met:
  689. X# 1. Redistributions of source code must retain the above copyright
  690. X#    notice, this list of conditions and the following disclaimer.
  691. X# 2. Redistributions in binary form must reproduce the above copyright
  692. X#    notice, this list of conditions and the following disclaimer in the
  693. X#    documentation and/or other materials provided with the distribution.
  694. X# 3. All advertising materials mentioning features or use of this software
  695. X#    must display the following acknowledgement:
  696. X#      This product includes software developed by the University of
  697. X#      California, Berkeley and its contributors.
  698. X# 4. Neither the name of the University nor the names of its contributors
  699. X#    may be used to endorse or promote products derived from this software
  700. X#    without specific prior written permission.
  701. X#
  702. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  703. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  704. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  705. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  706. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  707. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  708. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  709. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  710. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  711. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  712. X# SUCH DAMAGE.
  713. X#
  714. X#    %W% (Berkeley) %G%
  715. X#
  716. X# $Id: Makefile.irix4,v 5.2 1992/05/31 16:40:22 jsp Exp $
  717. X#
  718. X# Extra Makefile definitions for IRIX
  719. X#
  720. X
  721. X# For 4.0.X and later we need to specify the -cckr option - although amd
  722. X# has prototypes - some of the rpc prototypes clash.  The special include
  723. X# paths are not required. -lsun always comes before -lbsd.
  724. X
  725. XDEBUG = -g
  726. XCCOPTS = -cckr
  727. XRESOLV = -lrpcsvc -lsun -lbsd
  728. XINSTALL = cp
  729. END_OF_FILE
  730.   if test 2425 -ne `wc -c <'config/Makefile.irix4'`; then
  731.     echo shar: \"'config/Makefile.irix4'\" unpacked with wrong size!
  732.   fi
  733.   # end of 'config/Makefile.irix4'
  734. fi
  735. if test -f 'config/Makefile.stellix' -a "${1}" != "-c" ; then 
  736.   echo shar: Will not clobber existing file \"'config/Makefile.stellix'\"
  737. else
  738.   echo shar: Extracting \"'config/Makefile.stellix'\" \(2216 characters\)
  739.   sed "s/^X//" >'config/Makefile.stellix' <<'END_OF_FILE'
  740. X#
  741. X# Copyright (c) 1989 Jan-Simon Pendry
  742. X# Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  743. X# Copyright (c) 1989 The Regents of the University of California.
  744. X# All rights reserved.
  745. X#
  746. X# This code is derived from software contributed to Berkeley by
  747. X# Jan-Simon Pendry at Imperial College, London.
  748. X#
  749. X# Redistribution and use in source and binary forms, with or without
  750. X# modification, are permitted provided that the following conditions
  751. X# are met:
  752. X# 1. Redistributions of source code must retain the above copyright
  753. X#    notice, this list of conditions and the following disclaimer.
  754. X# 2. Redistributions in binary form must reproduce the above copyright
  755. X#    notice, this list of conditions and the following disclaimer in the
  756. X#    documentation and/or other materials provided with the distribution.
  757. X# 3. All advertising materials mentioning features or use of this software
  758. X#    must display the following acknowledgement:
  759. X#      This product includes software developed by the University of
  760. X#      California, Berkeley and its contributors.
  761. X# 4. Neither the name of the University nor the names of its contributors
  762. X#    may be used to endorse or promote products derived from this software
  763. X#    without specific prior written permission.
  764. X#
  765. X# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  766. X# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  767. X# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  768. X# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  769. X# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  770. X# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  771. X# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  772. X# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  773. X# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  774. X# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  775. X# SUCH DAMAGE.
  776. X#
  777. X#    %W% (Berkeley) %G%
  778. X#
  779. X# $Id: Makefile.stellix,v 5.2.2.1 1992/02/09 15:10:45 jsp beta $
  780. X#
  781. X# Extra Makefile definitions for STELLIX
  782. X#
  783. X
  784. XDEBUG = #-g -DDEBUG
  785. XCCOPTS = -DSTELLIX
  786. XRESOLV = -lrpcsvc
  787. END_OF_FILE
  788.   if test 2216 -ne `wc -c <'config/Makefile.stellix'`; then
  789.     echo shar: \"'config/Makefile.stellix'\" unpacked with wrong size!
  790.   fi
  791.   # end of 'config/Makefile.stellix'
  792. fi
  793. if test -f 'config/misc-irix.h' -a "${1}" != "-c" ; then 
  794.   echo shar: Will not clobber existing file \"'config/misc-irix.h'\"
  795. else
  796.   echo shar: Extracting \"'config/misc-irix.h'\" \(2288 characters\)
  797.   sed "s/^X//" >'config/misc-irix.h' <<'END_OF_FILE'
  798. X/*
  799. X * Copyright (c) 1990 Jan-Simon Pendry
  800. X * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  801. X * Copyright (c) 1990 The Regents of the University of California.
  802. X * All rights reserved.
  803. X *
  804. X * This code is derived from software contributed to Berkeley by
  805. X * Jan-Simon Pendry at Imperial College, London.
  806. X *
  807. X * Redistribution and use in source and binary forms, with or without
  808. X * modification, are permitted provided that the following conditions
  809. X * are met:
  810. X * 1. Redistributions of source code must retain the above copyright
  811. X *    notice, this list of conditions and the following disclaimer.
  812. X * 2. Redistributions in binary form must reproduce the above copyright
  813. X *    notice, this list of conditions and the following disclaimer in the
  814. X *    documentation and/or other materials provided with the distribution.
  815. X * 3. All advertising materials mentioning features or use of this software
  816. X *    must display the following acknowledgement:
  817. X *    This product includes software developed by the University of
  818. X *    California, Berkeley and its contributors.
  819. X * 4. Neither the name of the University nor the names of its contributors
  820. X *    may be used to endorse or promote products derived from this software
  821. X *    without specific prior written permission.
  822. X *
  823. X * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  824. X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  825. X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  826. X * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  827. X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  828. X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  829. X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  830. X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  831. X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  832. X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  833. X * SUCH DAMAGE.
  834. X *
  835. X *    @(#)misc-irix.h    5.3 (Berkeley) 5/12/91
  836. X *
  837. X * $Id: misc-irix.h,v 5.2.1.2 91/05/07 22:19:48 jsp Alpha $
  838. X *
  839. X */
  840. X
  841. X#include <sys/fs/nfs_clnt.h>
  842. X#include <sys/fsid.h>
  843. X#include <sys/fstyp.h>
  844. X
  845. X#if 0
  846. Xstruct ufs_args {
  847. X    char *fspec;
  848. X};
  849. X#endif
  850. END_OF_FILE
  851.   if test 2288 -ne `wc -c <'config/misc-irix.h'`; then
  852.     echo shar: \"'config/misc-irix.h'\" unpacked with wrong size!
  853.   fi
  854.   # end of 'config/misc-irix.h'
  855. fi
  856. if test -f 'config/misc-next.h' -a "${1}" != "-c" ; then 
  857.   echo shar: Will not clobber existing file \"'config/misc-next.h'\"
  858. else
  859.   echo shar: Extracting \"'config/misc-next.h'\" \(2183 characters\)
  860.   sed "s/^X//" >'config/misc-next.h' <<'END_OF_FILE'
  861. X/*
  862. X * Copyright (c) 1990 Jan-Simon Pendry
  863. X * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  864. X * Copyright (c) 1990 The Regents of the University of California.
  865. X * All rights reserved.
  866. X *
  867. X * This code is derived from software contributed to Berkeley by
  868. X * Jan-Simon Pendry at Imperial College, London.
  869. X *
  870. X * Redistribution and use in source and binary forms, with or without
  871. X * modification, are permitted provided that the following conditions
  872. X * are met:
  873. X * 1. Redistributions of source code must retain the above copyright
  874. X *    notice, this list of conditions and the following disclaimer.
  875. X * 2. Redistributions in binary form must reproduce the above copyright
  876. X *    notice, this list of conditions and the following disclaimer in the
  877. X *    documentation and/or other materials provided with the distribution.
  878. X * 3. All advertising materials mentioning features or use of this software
  879. X *    must display the following acknowledgement:
  880. X *      This product includes software developed by the University of
  881. X *      California, Berkeley and its contributors.
  882. X * 4. Neither the name of the University nor the names of its contributors
  883. X *    may be used to endorse or promote products derived from this software
  884. X *    without specific prior written permission.
  885. X *
  886. X * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  887. X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  888. X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  889. X * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  890. X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  891. X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  892. X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  893. X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  894. X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  895. X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  896. X * SUCH DAMAGE.
  897. X *
  898. X *    %W% (Berkeley) %G%
  899. X *
  900. X * $Id: misc-next.h,v 5.2.2.1 1992/02/09 15:10:34 jsp beta $
  901. X *
  902. X */
  903. X
  904. X#include <nfs/nfs_mount.h>
  905. END_OF_FILE
  906.   if test 2183 -ne `wc -c <'config/misc-next.h'`; then
  907.     echo shar: \"'config/misc-next.h'\" unpacked with wrong size!
  908.   fi
  909.   # end of 'config/misc-next.h'
  910. fi
  911. if test -f 'config/misc-ultrix.h' -a "${1}" != "-c" ; then 
  912.   echo shar: Will not clobber existing file \"'config/misc-ultrix.h'\"
  913. else
  914.   echo shar: Extracting \"'config/misc-ultrix.h'\" \(2365 characters\)
  915.   sed "s/^X//" >'config/misc-ultrix.h' <<'END_OF_FILE'
  916. X/*
  917. X * Copyright (c) 1990 Jan-Simon Pendry
  918. X * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
  919. X * Copyright (c) 1990 The Regents of the University of California.
  920. X * All rights reserved.
  921. X *
  922. X * This code is derived from software contributed to Berkeley by
  923. X * Jan-Simon Pendry at Imperial College, London.
  924. X *
  925. X * Redistribution and use in source and binary forms, with or without
  926. X * modification, are permitted provided that the following conditions
  927. X * are met:
  928. X * 1. Redistributions of source code must retain the above copyright
  929. X *    notice, this list of conditions and the following disclaimer.
  930. X * 2. Redistributions in binary form must reproduce the above copyright
  931. X *    notice, this list of conditions and the following disclaimer in the
  932. X *    documentation and/or other materials provided with the distribution.
  933. X * 3. All advertising materials mentioning features or use of this software
  934. X *    must display the following acknowledgement:
  935. X *      This product includes software developed by the University of
  936. X *      California, Berkeley and its contributors.
  937. X * 4. Neither the name of the University nor the names of its contributors
  938. X *    may be used to endorse or promote products derived from this software
  939. X *    without specific prior written permission.
  940. X *
  941. X * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  942. X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  943. X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  944. X * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  945. X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  946. X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  947. X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  948. X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  949. X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  950. X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  951. X * SUCH DAMAGE.
  952. X *
  953. X *    %W% (Berkeley) %G%
  954. X *
  955. X * $Id: misc-ultrix.h,v 5.2.2.1 1992/02/09 15:10:49 jsp beta $
  956. X *
  957. X */
  958. X
  959. X#include        <nfs/nfs_gfs.h>
  960. X#define KERNEL
  961. X#include        <sys/fs_types.h>
  962. X#undef  KERNEL
  963. X
  964. X#ifndef HOSTNAMESZ
  965. X#include <nfs/nfs_clnt.h>
  966. X#endif
  967. X
  968. X#include <ufs/ufs_mount.h>
  969. X
  970. X#define    ufs_args ufs_specific
  971. END_OF_FILE
  972.   if test 2365 -ne `wc -c <'config/misc-ultrix.h'`; then
  973.     echo shar: \"'config/misc-ultrix.h'\" unpacked with wrong size!
  974.   fi
  975.   # end of 'config/misc-ultrix.h'
  976. fi
  977. if test -f 'config/os-luna2M.h' -a "${1}" != "-c" ; then 
  978.   echo shar: Will not clobber existing file \"'config/os-luna2M.h'\"
  979. else
  980.   echo shar: Extracting \"'config/os-luna2M.h'\" \(2091 characters\)
  981.   sed "s/^X//" >'config/os-luna2M.h' <<'END_OF_FILE'
  982. X/* $Header: os-uniosb.h,v 5.2 90/09/16 16:50:06 hide Exp $ */
  983. X
  984. X/*
  985. X * LUNA-II Mach 2.5 definitions for Amd (automounter)
  986. X *
  987. X * Copyright (c) 1989 Jan-Simon Pendry
  988. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  989. X * Copyright (c) 1989 The Regents of the University of California.
  990. X * All rights reserved.
  991. X *
  992. X * This code is derived from software contributed to Berkeley by
  993. X * Jan-Simon Pendry at Imperial College, London.
  994. X *
  995. X * Redistribution and use in source and binary forms are permitted provided
  996. X * that: (1) source distributions retain this entire copyright notice and
  997. X * comment, and (2) distributions including binaries display the following
  998. X * acknowledgement:  ``This product includes software developed by the
  999. X * University of California, Berkeley and its contributors'' in the
  1000. X * documentation or other materials provided with the distribution and in
  1001. X * all advertising materials mentioning features or use of this software.
  1002. X * Neither the name of the University nor the names of its contributors may
  1003. X * be used to endorse or promote products derived from this software without
  1004. X * specific prior written permission.
  1005. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  1006. X * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  1007. X * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1008. X *
  1009. X *    %W% (Berkeley) %G%
  1010. X */
  1011. X
  1012. X
  1013. X/*
  1014. X * Does the compiler grok void *
  1015. X */
  1016. X#define    VOIDP
  1017. X
  1018. X/*
  1019. X * Which version of the Sun RPC library we are using
  1020. X * This is the implementation release number, not
  1021. X * the protocol revision number.
  1022. X */
  1023. X#define    RPC_3        /* Is this correct? Wrong? */
  1024. X
  1025. X/*
  1026. X * Which version of the NFS interface are we using.
  1027. X * This is the implementation release number, not
  1028. X * the protocol revision number.
  1029. X */
  1030. X#define    NFS_3
  1031. X
  1032. X/*
  1033. X * Does this OS have NDBM support?
  1034. X */
  1035. X#define OS_HAS_NDBM
  1036. X
  1037. X/*
  1038. X * Byte ordering
  1039. X */
  1040. X#undef ARCH_ENDIAN
  1041. X#define    ARCH_ENDIAN    "big"
  1042. X
  1043. X/*
  1044. X * Name of filesystem types
  1045. X */
  1046. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1047. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1048. X
  1049. X/*
  1050. X * Where to get NFS definitions
  1051. X */
  1052. X#define NFS_HDR "misc-luna2M.h"
  1053. X
  1054. END_OF_FILE
  1055.   if test 2091 -ne `wc -c <'config/os-luna2M.h'`; then
  1056.     echo shar: \"'config/os-luna2M.h'\" unpacked with wrong size!
  1057.   fi
  1058.   # end of 'config/os-luna2M.h'
  1059. fi
  1060. if test -f 'config/os-luna88k.h' -a "${1}" != "-c" ; then 
  1061.   echo shar: Will not clobber existing file \"'config/os-luna88k.h'\"
  1062. else
  1063.   echo shar: Extracting \"'config/os-luna88k.h'\" \(2093 characters\)
  1064.   sed "s/^X//" >'config/os-luna88k.h' <<'END_OF_FILE'
  1065. X/* $Header: os-uniosb.h,v 5.2 90/09/16 16:50:06 hide Exp $ */
  1066. X
  1067. X/*
  1068. X * LUNA-88K Mach 2.5 definitions for Amd (automounter)
  1069. X *
  1070. X * Copyright (c) 1989 Jan-Simon Pendry
  1071. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1072. X * Copyright (c) 1989 The Regents of the University of California.
  1073. X * All rights reserved.
  1074. X *
  1075. X * This code is derived from software contributed to Berkeley by
  1076. X * Jan-Simon Pendry at Imperial College, London.
  1077. X *
  1078. X * Redistribution and use in source and binary forms are permitted provided
  1079. X * that: (1) source distributions retain this entire copyright notice and
  1080. X * comment, and (2) distributions including binaries display the following
  1081. X * acknowledgement:  ``This product includes software developed by the
  1082. X * University of California, Berkeley and its contributors'' in the
  1083. X * documentation or other materials provided with the distribution and in
  1084. X * all advertising materials mentioning features or use of this software.
  1085. X * Neither the name of the University nor the names of its contributors may
  1086. X * be used to endorse or promote products derived from this software without
  1087. X * specific prior written permission.
  1088. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  1089. X * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  1090. X * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1091. X *
  1092. X *    %W% (Berkeley) %G%
  1093. X */
  1094. X
  1095. X
  1096. X/*
  1097. X * Does the compiler grok void *
  1098. X */
  1099. X#define    VOIDP
  1100. X
  1101. X/*
  1102. X * Which version of the Sun RPC library we are using
  1103. X * This is the implementation release number, not
  1104. X * the protocol revision number.
  1105. X */
  1106. X#define    RPC_3        /* Is this correct? Wrong? */
  1107. X
  1108. X/*
  1109. X * Which version of the NFS interface are we using.
  1110. X * This is the implementation release number, not
  1111. X * the protocol revision number.
  1112. X */
  1113. X#define    NFS_3
  1114. X
  1115. X/*
  1116. X * Does this OS have NDBM support?
  1117. X */
  1118. X#define OS_HAS_NDBM
  1119. X
  1120. X/*
  1121. X * Byte ordering
  1122. X */
  1123. X#undef ARCH_ENDIAN
  1124. X#define    ARCH_ENDIAN    "big"
  1125. X
  1126. X/*
  1127. X * Name of filesystem types
  1128. X */
  1129. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1130. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1131. X
  1132. X/*
  1133. X * Where to get NFS definitions
  1134. X */
  1135. X#define NFS_HDR "misc-luna88k.h"
  1136. X
  1137. END_OF_FILE
  1138.   if test 2093 -ne `wc -c <'config/os-luna88k.h'`; then
  1139.     echo shar: \"'config/os-luna88k.h'\" unpacked with wrong size!
  1140.   fi
  1141.   # end of 'config/os-luna88k.h'
  1142. fi
  1143. if test -f 'config/os-uniosb.h' -a "${1}" != "-c" ; then 
  1144.   echo shar: Will not clobber existing file \"'config/os-uniosb.h'\"
  1145. else
  1146.   echo shar: Extracting \"'config/os-uniosb.h'\" \(2152 characters\)
  1147.   sed "s/^X//" >'config/os-uniosb.h' <<'END_OF_FILE'
  1148. X/* $Header: os-uniosb.h,v 5.2 90/09/16 16:50:06 hide Exp $ */
  1149. X
  1150. X/*
  1151. X * UNIOS-B 1.50 definitions for Amd (automounter)
  1152. X *
  1153. X * Copyright (c) 1989 Jan-Simon Pendry
  1154. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1155. X * Copyright (c) 1989 The Regents of the University of California.
  1156. X * All rights reserved.
  1157. X *
  1158. X * This code is derived from software contributed to Berkeley by
  1159. X * Jan-Simon Pendry at Imperial College, London.
  1160. X *
  1161. X * Redistribution and use in source and binary forms are permitted provided
  1162. X * that: (1) source distributions retain this entire copyright notice and
  1163. X * comment, and (2) distributions including binaries display the following
  1164. X * acknowledgement:  ``This product includes software developed by the
  1165. X * University of California, Berkeley and its contributors'' in the
  1166. X * documentation or other materials provided with the distribution and in
  1167. X * all advertising materials mentioning features or use of this software.
  1168. X * Neither the name of the University nor the names of its contributors may
  1169. X * be used to endorse or promote products derived from this software without
  1170. X * specific prior written permission.
  1171. X * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  1172. X * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  1173. X * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1174. X *
  1175. X *    %W% (Berkeley) %G%
  1176. X */
  1177. X
  1178. X
  1179. X/*
  1180. X * Does the compiler grok void *
  1181. X */
  1182. X#define    VOIDP
  1183. X
  1184. X/*
  1185. X * Which version of the Sun RPC library we are using
  1186. X * This is the implementation release number, not
  1187. X * the protocol revision number.
  1188. X */
  1189. X#define    RPC_3        /* Is this correct? Wrong? */
  1190. X
  1191. X/*
  1192. X * Which version of the NFS interface are we using.
  1193. X * This is the implementation release number, not
  1194. X * the protocol revision number.
  1195. X */
  1196. X#define    NFS_3
  1197. X
  1198. X/*
  1199. X * Does this OS have NDBM support?
  1200. X */
  1201. X#define OS_HAS_NDBM
  1202. X
  1203. X/*
  1204. X * Byte ordering
  1205. X */
  1206. X#undef ARCH_ENDIAN
  1207. X#define    ARCH_ENDIAN    "big"
  1208. X
  1209. X/*
  1210. X * Name of filesystem types
  1211. X */
  1212. X#define    MOUNT_TYPE_UFS    MOUNT_UFS
  1213. X#define MOUNT_TYPE_NFS    MOUNT_NFS
  1214. X
  1215. X/*
  1216. X * Where to get NFS definitions
  1217. X */
  1218. X#define NFS_HDR "misc-uniosb.h"
  1219. X
  1220. X#define    vfprintf(stream,format,args)    _doprnt(format,args,stream)
  1221. END_OF_FILE
  1222.   if test 2152 -ne `wc -c <'config/os-uniosb.h'`; then
  1223.     echo shar: \"'config/os-uniosb.h'\" unpacked with wrong size!
  1224.   fi
  1225.   # end of 'config/os-uniosb.h'
  1226. fi
  1227. if test -f 'config/os-utek.h' -a "${1}" != "-c" ; then 
  1228.   echo shar: Will not clobber existing file \"'config/os-utek.h'\"
  1229. else
  1230.   echo shar: Extracting \"'config/os-utek.h'\" \(2373 characters\)
  1231.   sed "s/^X//" >'config/os-utek.h' <<'END_OF_FILE'
  1232. X/*
  1233. X * Copyright (c) 1989 Jan-Simon Pendry
  1234. X * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
  1235. X * Copyright (c) 1989 The Regents of the University of California.
  1236. X * All rights reserved.
  1237. X *
  1238. X * This code is derived from software contributed to Berkeley by
  1239. X * Jan-Simon Pendry at Imperial College, London.
  1240. X *
  1241. X * Redistribution and use in source and binary forms, with or without
  1242. X * modification, are permitted provided that the following conditions
  1243. X * are met:
  1244. X * 1. Redistributions of source code must retain the above copyright
  1245. X *    notice, this list of conditions and the following disclaimer.
  1246. X * 2. Redistributions in binary form must reproduce the above copyright
  1247. X *    notice, this list of conditions and the following disclaimer in the
  1248. X *    documentation and/or other materials provided with the distribution.
  1249. X * 3. All advertising materials mentioning features or use of this software
  1250. X *    must display the following acknowledgement:
  1251. X *      This product includes software developed by the University of
  1252. X *      California, Berkeley and its contributors.
  1253. X * 4. Neither the name of the University nor the names of its contributors
  1254. X *    may be used to endorse or promote products derived from this software
  1255. X *    without specific prior written permission.
  1256. X *
  1257. X * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1258. X * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1259. X * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1260. X * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1261. X * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1262. X * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1263. X * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1264. X * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1265. X * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1266. X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1267. X * SUCH DAMAGE.
  1268. X *
  1269. X *    %W% (Berkeley) %G%
  1270. X *
  1271. X * $Id: os-utek.h,v 5.2.2.1 1992/02/09 15:10:56 jsp beta $
  1272. X *
  1273. X * Utek 4.0  definitions for Amd (automounter)
  1274. X *    from Bill Trost <trost%reed@cse.ogi.edu>
  1275. X */
  1276. X
  1277. X#define    UTEK
  1278. X#define    __NFS_HEADER__        /* prevent re-inclusion of <sys/nfs.h> */
  1279. X/* ... and fake the rest */
  1280. X#include "os-sos3.h"
  1281. END_OF_FILE
  1282.   if test 2373 -ne `wc -c <'config/os-utek.h'`; then
  1283.     echo shar: \"'config/os-utek.h'\" unpacked with wrong size!
  1284.   fi
  1285.   # end of 'config/os-utek.h'
  1286. fi
  1287. if test -f 'csd/rps.c' -a "${1}" != "-c" ; then 
  1288.   echo shar: Will not clobber existing file \"'csd/rps.c'\"
  1289. else
  1290.   echo shar: Extracting \"'csd/rps.c'\" \(2108 characters\)
  1291.   sed "s/^X//" >'csd/rps.c' <<'END_OF_FILE'
  1292. X/* rps (resource pointer server) interaction */
  1293. X/*
  1294. X * Copyright (c) 1992 Youki Kadobayashi, Osaka University
  1295. X * All rights reserved.
  1296. X *
  1297. X * Redistribution and reuse in source and binary forms, with or without
  1298. X * modification, are totally prohibited. Permission to use, copy and modify
  1299. X * this software and its documentation is hereby granted to WWFS alpha
  1300. X * testers only.
  1301. X *
  1302. X * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1303. X * UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1304. X * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1305. X *
  1306. X * Osaka University requests users of this software to return to
  1307. X *
  1308. X *  Youki Kadobayashi
  1309. X *  Department of Information and Computer Sciences
  1310. X *  Osaka University, Toyonaka 560, Japan
  1311. X *
  1312. X * any improvements or extensions that they make and grant Osaka
  1313. X * University the rights to redistribute these changes.
  1314. X */
  1315. X
  1316. X#include "wfs.h"
  1317. X#include "util.h"
  1318. X#include "global.h"
  1319. X#include "closure.h"
  1320. X
  1321. X/* XXX */
  1322. Xvoid
  1323. Xrps_init()
  1324. X{
  1325. X    wf_vol *volp = vol_alloc();
  1326. X    wf_srv *srvp;
  1327. X
  1328. X    volp->name = malloc(16);
  1329. X    strcpy(volp->name, "sh.wide");
  1330. X    volp->id = 2L;
  1331. X    srvp = srv_findcache("sh.wide.ad.jp");
  1332. X    assert(srvp != NULL);
  1333. X    vol_addsrv(volp, srvp);
  1334. X    volp->nconn = 0;
  1335. X    vol_save(volp);
  1336. X}
  1337. X
  1338. Xvoid
  1339. Xrps_findid(c)
  1340. Xrps_findid_c *c;
  1341. X{
  1342. X    rps_callback_c *p;
  1343. X
  1344. X    c->volp = vol_findid(2L);    /* XXX */
  1345. X    assert(c->volp != NULL);
  1346. X    p = ALLOC(rps_callback_c);
  1347. X    p->volp = c->volp;
  1348. X    p->args = c->funcargs;
  1349. X    (*c->funcp)(p);
  1350. X}
  1351. X
  1352. X#if 0
  1353. Xwfs_vol *
  1354. Xrps_findid(c)
  1355. Xrps_findid_c *c;
  1356. X{
  1357. X    rps_callback_c *p;
  1358. X    switch (c->step) {
  1359. X    case 0:
  1360. X        c->volp = vol_findid(c->child_vol);
  1361. X        if (c->volp == NULL) {
  1362. X            /* local vol cache missed. */
  1363. X            if (rps_sock == 0)
  1364. X                rps_conn_open();
  1365. X            c->step = 1;
  1366. X            so_callback(rps_sock, rps_findid, c);
  1367. X            return;
  1368. X        }
  1369. X        break;
  1370. X    case 1:
  1371. X        c->step = 2;
  1372. X        rps_send_findid(c->child_vol);
  1373. X        so_callback(rps_sock, rps_findid, c);
  1374. X        return;
  1375. X    case 2:
  1376. X        c->volp = rps_recv_findid();
  1377. X    }
  1378. X    p = malloc(sizeof (rps_callback_c));
  1379. X    p->volp = c->volp;
  1380. X    p->args = c->funcargs;
  1381. X    (*c->funcp)(p);
  1382. X}
  1383. X
  1384. Xrps_conn_open()
  1385. X{
  1386. X}
  1387. X
  1388. Xrps_conn_close()
  1389. X{
  1390. X}
  1391. X
  1392. Xrps_send_findid()
  1393. X{
  1394. X}
  1395. X
  1396. Xrps_recv_findid()
  1397. X{
  1398. X}
  1399. X
  1400. X#endif
  1401. END_OF_FILE
  1402.   if test 2108 -ne `wc -c <'csd/rps.c'`; then
  1403.     echo shar: \"'csd/rps.c'\" unpacked with wrong size!
  1404.   fi
  1405.   # end of 'csd/rps.c'
  1406. fi
  1407. if test -f 'doc/Makefile.build' -a "${1}" != "-c" ; then 
  1408.   echo shar: Will not clobber existing file \"'doc/Makefile.build'\"
  1409. else
  1410.   echo shar: Extracting \"'doc/Makefile.build'\" \(2035 characters\)
  1411.   sed "s/^X//" >'doc/Makefile.build' <<'END_OF_FILE'
  1412. X#
  1413. X# Makefile.build for documents; part of Worldwide File System.
  1414. X#
  1415. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1416. X#        E-mail: <youki@wide.ad.jp>
  1417. X#
  1418. X# 
  1419. X# WorldWide File System
  1420. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1421. X# Copyright (c) 1992,1993 Osaka University
  1422. X# All rights reserved.
  1423. X#
  1424. X# Permission to use, copy, modify and distribute this software and its
  1425. X# documentation is hereby granted, provided that the following conditions
  1426. X# are met:
  1427. X# 1. Both the copyright notice and this permission notice appear in
  1428. X#    all copies of the software, derivative works or modified versions,
  1429. X#    and any portions thereof, and that both notices appear in
  1430. X#    supporting documentation.
  1431. X# 2. All advertising materials mentioning features or use of this software
  1432. X#    must display the following acknowledgement:
  1433. X#      This product includes software developed by the Osaka University
  1434. X#      and its contributors.
  1435. X# 3. Neither the name of the University nor the names of its contributors
  1436. X#    may be used to endorse or promote products derived from this software
  1437. X#    without specific prior written permission.
  1438. X#
  1439. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1440. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1441. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1442. X#
  1443. X# Osaka University requests users of this software to return to
  1444. X#
  1445. X#  Youki Kadobayashi
  1446. X#  Department of Information and Computer Sciences
  1447. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1448. X#
  1449. X# any improvements or extensions that they make and grant Osaka
  1450. X# University the rights to redistribute these changes.
  1451. X
  1452. X# $Header: Makefile.build[109.1] Thu Dec 16 20:39:49 1993 youki-k@is.aist-nara.ac.jp saved $
  1453. X#
  1454. X
  1455. X.SUFFIXES:    .ps .dvi .tex
  1456. X
  1457. X.tex.dvi:
  1458. X    jaflatex $<
  1459. X
  1460. X.dvi.ps:
  1461. X    dvi2ps-j -F /usr/local/lib/dvi2ps/fontdesc-E $< > $@
  1462. X    pstick -f wwfs.pro $@
  1463. X
  1464. Xdoc:        manual.ps
  1465. X
  1466. Xmanual.tex:    version.tex
  1467. X
  1468. Xversion.tex:    ../Makefile.com
  1469. X    echo "\\newcommand{\\wwfsversion}{${VERSION}}" > version.tex
  1470. X
  1471. Xmanual.ps:    manual.dvi
  1472. X
  1473. Xtrace.ps:    trace.dvi
  1474. X
  1475. Xproject.ps:    project.dvi
  1476. X
  1477. END_OF_FILE
  1478.   if test 2035 -ne `wc -c <'doc/Makefile.build'`; then
  1479.     echo shar: \"'doc/Makefile.build'\" unpacked with wrong size!
  1480.   fi
  1481.   # end of 'doc/Makefile.build'
  1482. fi
  1483. if test -f 'gtr/Makefile.build' -a "${1}" != "-c" ; then 
  1484.   echo shar: Will not clobber existing file \"'gtr/Makefile.build'\"
  1485. else
  1486.   echo shar: Extracting \"'gtr/Makefile.build'\" \(1987 characters\)
  1487.   sed "s/^X//" >'gtr/Makefile.build' <<'END_OF_FILE'
  1488. X#
  1489. X# Makefile.build for GTR-based server selection; part of Worldwide File System.
  1490. X#
  1491. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1492. X#        E-mail: <youki@wide.ad.jp>
  1493. X#
  1494. X# 
  1495. X# WorldWide File System
  1496. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1497. X# Copyright (c) 1992,1993 Osaka University
  1498. X# All rights reserved.
  1499. X#
  1500. X# Permission to use, copy, modify and distribute this software and its
  1501. X# documentation is hereby granted, provided that the following conditions
  1502. X# are met:
  1503. X# 1. Both the copyright notice and this permission notice appear in
  1504. X#    all copies of the software, derivative works or modified versions,
  1505. X#    and any portions thereof, and that both notices appear in
  1506. X#    supporting documentation.
  1507. X# 2. All advertising materials mentioning features or use of this software
  1508. X#    must display the following acknowledgement:
  1509. X#      This product includes software developed by the Osaka University
  1510. X#      and its contributors.
  1511. X# 3. Neither the name of the University nor the names of its contributors
  1512. X#    may be used to endorse or promote products derived from this software
  1513. X#    without specific prior written permission.
  1514. X#
  1515. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1516. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1517. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1518. X#
  1519. X# Osaka University requests users of this software to return to
  1520. X#
  1521. X#  Youki Kadobayashi
  1522. X#  Department of Information and Computer Sciences
  1523. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1524. X#
  1525. X# any improvements or extensions that they make and grant Osaka
  1526. X# University the rights to redistribute these changes.
  1527. X
  1528. X# $Header: Makefile.build[109.0] Wed Nov 24 03:47:28 1993 youki-k@is.aist-nara.ac.jp saved $
  1529. X#
  1530. X
  1531. Xinstall-server:
  1532. X    @if [ -d $(WWFSDIR)/usr ]; then \
  1533. X        echo "WWFSDIR should be correctly set"; \
  1534. X        exit 1; \
  1535. X    else \
  1536. X        exit 0; \
  1537. X    fi
  1538. X    $(INSTBIN) sortvol.pl $(WWFSDIR)/bin
  1539. X    $(INSTALL) gtr.pl $(WWFSDIR)/lib
  1540. X    $(INSTALL) gtr.conf $(WWFSDIR)/etc
  1541. X    $(INSTALL) gtr.txt $(WWFSDIR)/etc
  1542. X
  1543. END_OF_FILE
  1544.   if test 1987 -ne `wc -c <'gtr/Makefile.build'`; then
  1545.     echo shar: \"'gtr/Makefile.build'\" unpacked with wrong size!
  1546.   fi
  1547.   # end of 'gtr/Makefile.build'
  1548. fi
  1549. if test -f 'libmm/Makefile.build' -a "${1}" != "-c" ; then 
  1550.   echo shar: Will not clobber existing file \"'libmm/Makefile.build'\"
  1551. else
  1552.   echo shar: Extracting \"'libmm/Makefile.build'\" \(2051 characters\)
  1553.   sed "s/^X//" >'libmm/Makefile.build' <<'END_OF_FILE'
  1554. X#
  1555. X# Makefile.build for "raw cache" library; part of Worldwide File System.
  1556. X#
  1557. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1558. X#        E-mail: <youki@wide.ad.jp>
  1559. X#
  1560. X# 
  1561. X# WorldWide File System
  1562. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1563. X# Copyright (c) 1992,1993 Osaka University
  1564. X# All rights reserved.
  1565. X#
  1566. X# Permission to use, copy, modify and distribute this software and its
  1567. X# documentation is hereby granted, provided that the following conditions
  1568. X# are met:
  1569. X# 1. Both the copyright notice and this permission notice appear in
  1570. X#    all copies of the software, derivative works or modified versions,
  1571. X#    and any portions thereof, and that both notices appear in
  1572. X#    supporting documentation.
  1573. X# 2. All advertising materials mentioning features or use of this software
  1574. X#    must display the following acknowledgement:
  1575. X#      This product includes software developed by the Osaka University
  1576. X#      and its contributors.
  1577. X# 3. Neither the name of the University nor the names of its contributors
  1578. X#    may be used to endorse or promote products derived from this software
  1579. X#    without specific prior written permission.
  1580. X#
  1581. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1582. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1583. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1584. X#
  1585. X# Osaka University requests users of this software to return to
  1586. X#
  1587. X#  Youki Kadobayashi
  1588. X#  Department of Information and Computer Sciences
  1589. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1590. X#
  1591. X# any improvements or extensions that they make and grant Osaka
  1592. X# University the rights to redistribute these changes.
  1593. X
  1594. X# $Header: Makefile.build[109.0] Wed Nov 24 03:47:34 1993 youki-k@is.aist-nara.ac.jp saved $
  1595. X#
  1596. X
  1597. Xinstall-server:
  1598. X    @if [ -d $(WWFSDIR)/usr ]; then \
  1599. X        echo "WWFSDIR should be correctly set"; \
  1600. X        exit 1; \
  1601. X    else \
  1602. X        exit 0; \
  1603. X    fi
  1604. X    $(INSTBIN) ctofs.pl $(WWFSDIR)/bin
  1605. X    $(INSTBIN) fstoc.pl $(WWFSDIR)/bin
  1606. X    $(INSTBIN) mmcat.pl $(WWFSDIR)/bin
  1607. X    $(INSTBIN) mmdir.pl $(WWFSDIR)/bin
  1608. X    $(INSTBIN) mmls.pl $(WWFSDIR)/bin
  1609. X    $(INSTALL) libmm.pl $(WWFSDIR)/lib
  1610. END_OF_FILE
  1611.   if test 2051 -ne `wc -c <'libmm/Makefile.build'`; then
  1612.     echo shar: \"'libmm/Makefile.build'\" unpacked with wrong size!
  1613.   fi
  1614.   # end of 'libmm/Makefile.build'
  1615. fi
  1616. if test -f 'libww/Makefile.build' -a "${1}" != "-c" ; then 
  1617.   echo shar: Will not clobber existing file \"'libww/Makefile.build'\"
  1618. else
  1619.   echo shar: Extracting \"'libww/Makefile.build'\" \(2542 characters\)
  1620.   sed "s/^X//" >'libww/Makefile.build' <<'END_OF_FILE'
  1621. X#
  1622. X# Makefile.build for libww & spliced libc; part of Worldwide File System.
  1623. X#
  1624. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1625. X#        E-mail: <youki@wide.ad.jp>
  1626. X#
  1627. X# 
  1628. X# WorldWide File System
  1629. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1630. X# Copyright (c) 1992,1993 Osaka University
  1631. X# All rights reserved.
  1632. X#
  1633. X# Permission to use, copy, modify and distribute this software and its
  1634. X# documentation is hereby granted, provided that the following conditions
  1635. X# are met:
  1636. X# 1. Both the copyright notice and this permission notice appear in
  1637. X#    all copies of the software, derivative works or modified versions,
  1638. X#    and any portions thereof, and that both notices appear in
  1639. X#    supporting documentation.
  1640. X# 2. All advertising materials mentioning features or use of this software
  1641. X#    must display the following acknowledgement:
  1642. X#      This product includes software developed by the Osaka University
  1643. X#      and its contributors.
  1644. X# 3. Neither the name of the University nor the names of its contributors
  1645. X#    may be used to endorse or promote products derived from this software
  1646. X#    without specific prior written permission.
  1647. X#
  1648. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1649. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1650. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1651. X#
  1652. X# Osaka University requests users of this software to return to
  1653. X#
  1654. X#  Youki Kadobayashi
  1655. X#  Department of Information and Computer Sciences
  1656. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1657. X#
  1658. X# any improvements or extensions that they make and grant Osaka
  1659. X# University the rights to redistribute these changes.
  1660. X
  1661. X# $Header: Makefile.build[109.1] Thu Dec 16 20:40:28 1993 youki-k@is.aist-nara.ac.jp saved $
  1662. X#
  1663. X
  1664. XSRC = libww.c libww.h
  1665. X
  1666. Xlibww:        libww.a wwget
  1667. X    @echo ""
  1668. X# avoid strange makerule to be taken
  1669. X
  1670. Xlibc:        libc_wwfs.a
  1671. X    @echo ""
  1672. X# avoid strange makerule to be taken
  1673. X
  1674. Xlibww.a:    libww.o parse.o
  1675. X    ar r $@ libww.o parse.o
  1676. X    @if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then \
  1677. X        ranlib $@; \
  1678. X    fi
  1679. X
  1680. Xlibc_wwfs.a:    libww_s.o  parse.o
  1681. X    -rm -f libww.o $@
  1682. X    ./renamesym.pl -c -S NTU open fopen opendir
  1683. X    ar r $@ *.o
  1684. X    @if [ -f /usr/bin/ranlib -o -f /bin/ranlib ]; then \
  1685. X        ranlib $@; \
  1686. X    fi
  1687. X
  1688. Xlibww_s.o:    libww.c libww.h
  1689. X    $(CC) -o libww_s.o -c $(CFLAGS) libww.c -DRENAME_LIBC
  1690. X
  1691. Xinstall-client:
  1692. X    @if [ -f libww.a ]; then \
  1693. X        $(INSTALL) libww.a $(LIBDIR); \
  1694. X        $(INSTALL) libww.h $(INCDIR); \
  1695. X    fi
  1696. X    @if [ -f libc_wwfs.a ]; then \
  1697. X        $(INSTALL) libc_wwfs.a $(LIBDIR); \
  1698. X    fi
  1699. X
  1700. Xwwget:    wwget.o libww.a
  1701. X    $(CC) -o $@ $? -I. -L. -lww
  1702. X
  1703. Xclean::
  1704. X    -rm -f libww.a libc_wwfs.a wwget
  1705. END_OF_FILE
  1706.   if test 2542 -ne `wc -c <'libww/Makefile.build'`; then
  1707.     echo shar: \"'libww/Makefile.build'\" unpacked with wrong size!
  1708.   fi
  1709.   # end of 'libww/Makefile.build'
  1710. fi
  1711. if test -f 'libww/wwget.c' -a "${1}" != "-c" ; then 
  1712.   echo shar: Will not clobber existing file \"'libww/wwget.c'\"
  1713. else
  1714.   echo shar: Extracting \"'libww/wwget.c'\" \(2183 characters\)
  1715.   sed "s/^X//" >'libww/wwget.c' <<'END_OF_FILE'
  1716. X/* 
  1717. X * WorldWide File System
  1718. X * Copyright (c) 1992,1993 Youki Kadobayashi
  1719. X * Copyright (c) 1992,1993 Osaka University
  1720. X * All rights reserved.
  1721. X *
  1722. X * Permission to use, copy, modify and distribute this software and its
  1723. X * documentation is hereby granted, provided that the following conditions
  1724. X * are met:
  1725. X * 1. Both the copyright notice and this permission notice appear in
  1726. X *    all copies of the software, derivative works or modified versions,
  1727. X *    and any portions thereof, and that both notices appear in
  1728. X *    supporting documentation.
  1729. X * 2. All advertising materials mentioning features or use of this software
  1730. X *    must display the following acknowledgement:
  1731. X *      This product includes software developed by the Osaka University
  1732. X *      and its contributors.
  1733. X * 3. Neither the name of the University nor the names of its contributors
  1734. X *    may be used to endorse or promote products derived from this software
  1735. X *    without specific prior written permission.
  1736. X *
  1737. X * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1738. X * UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1739. X * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1740. X *
  1741. X * Osaka University requests users of this software to return to
  1742. X *
  1743. X *  Youki Kadobayashi
  1744. X *  Department of Information and Computer Sciences
  1745. X *  Osaka University, Toyonaka 560, Osaka, Japan
  1746. X *
  1747. X * any improvements or extensions that they make and grant Osaka
  1748. X * University the rights to redistribute these changes.
  1749. X */
  1750. Xstatic char *AtFSid = "$Header: wwget.c[109.0] Wed Nov 24 03:49:16 1993 youki-k@is.aist-nara.ac.jp saved $";
  1751. X
  1752. X#include <stdio.h>
  1753. X#include "libww.h"
  1754. X
  1755. Xusage(name)
  1756. Xchar *name;
  1757. X{
  1758. X    printf("Usage: %s [-v] files...\n", name);
  1759. X    exit(1);
  1760. X}
  1761. X
  1762. Xint vflag = 0;
  1763. X
  1764. Xmain(argc, argv)
  1765. Xint argc;
  1766. Xchar **argv;
  1767. X{
  1768. X    int c;
  1769. X    extern int optind, opterr;
  1770. X    extern char *optarg;
  1771. X
  1772. X    while ((c = getopt(argc, argv, "v")) != EOF) {
  1773. X        switch (c) {
  1774. X        case 'v':
  1775. X            vflag++;
  1776. X            break;
  1777. X        case '?':
  1778. X            usage(argv[0]);
  1779. X        }
  1780. X    }
  1781. X    for ( ; optind < argc; ++optind) {
  1782. X        if (vflag) {
  1783. X            printf("%s", argv[optind]);
  1784. X            fflush(stdout);
  1785. X        }
  1786. X        ww_nfsget(argv[optind]);    /* RETR file via NFS+UIP */
  1787. X        if (vflag) {
  1788. X            putchar('\n');
  1789. X        }
  1790. X    }
  1791. X    return (0);
  1792. X}
  1793. X
  1794. END_OF_FILE
  1795.   if test 2183 -ne `wc -c <'libww/wwget.c'`; then
  1796.     echo shar: \"'libww/wwget.c'\" unpacked with wrong size!
  1797.   fi
  1798.   # end of 'libww/wwget.c'
  1799. fi
  1800. if test -f 'mosaic/Makefile' -a "${1}" != "-c" ; then 
  1801.   echo shar: Will not clobber existing file \"'mosaic/Makefile'\"
  1802. else
  1803.   echo shar: Extracting \"'mosaic/Makefile'\" \(2032 characters\)
  1804.   sed "s/^X//" >'mosaic/Makefile' <<'END_OF_FILE'
  1805. X#
  1806. X# Makefile for Mosaic and HTML stuff; part of Worldwide File System.
  1807. X#
  1808. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1809. X#        E-mail: <youki@wide.ad.jp>
  1810. X#
  1811. X# 
  1812. X# WorldWide File System
  1813. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1814. X# Copyright (c) 1992,1993 Osaka University
  1815. X# All rights reserved.
  1816. X#
  1817. X# Permission to use, copy, modify and distribute this software and its
  1818. X# documentation is hereby granted, provided that the following conditions
  1819. X# are met:
  1820. X# 1. Both the copyright notice and this permission notice appear in
  1821. X#    all copies of the software, derivative works or modified versions,
  1822. X#    and any portions thereof, and that both notices appear in
  1823. X#    supporting documentation.
  1824. X# 2. All advertising materials mentioning features or use of this software
  1825. X#    must display the following acknowledgement:
  1826. X#      This product includes software developed by the Osaka University
  1827. X#      and its contributors.
  1828. X# 3. Neither the name of the University nor the names of its contributors
  1829. X#    may be used to endorse or promote products derived from this software
  1830. X#    without specific prior written permission.
  1831. X#
  1832. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1833. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1834. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1835. X#
  1836. X# Osaka University requests users of this software to return to
  1837. X#
  1838. X#  Youki Kadobayashi
  1839. X#  Department of Information and Computer Sciences
  1840. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1841. X#
  1842. X# any improvements or extensions that they make and grant Osaka
  1843. X# University the rights to redistribute these changes.
  1844. X
  1845. X# $Header: Makefile[109.0] Wed Nov 24 03:47:47 1993 youki-k@is.aist-nara.ac.jp saved $
  1846. X#
  1847. X
  1848. X# To use alternative 'make' program, say gmake, type:
  1849. X#    gmake Make="gmake"
  1850. XMake = make
  1851. XMAK  = $(Make) Make="$(Make)"
  1852. XMKARG = -f ../Makefile.top PROG="mosaic" TOP=".."
  1853. XSHELL = /bin/sh
  1854. X
  1855. Xall:
  1856. X    @echo "Sorry but Make cannot help you.  Please read README file."
  1857. X
  1858. Xinstall-server clean baseline copyright version: FRC
  1859. X    @$(MAK) $(MKARG) $@
  1860. X
  1861. XFRC:
  1862. END_OF_FILE
  1863.   if test 2032 -ne `wc -c <'mosaic/Makefile'`; then
  1864.     echo shar: \"'mosaic/Makefile'\" unpacked with wrong size!
  1865.   fi
  1866.   # end of 'mosaic/Makefile'
  1867. fi
  1868. if test -f 'mosaic/Makefile.build' -a "${1}" != "-c" ; then 
  1869.   echo shar: Will not clobber existing file \"'mosaic/Makefile.build'\"
  1870. else
  1871.   echo shar: Extracting \"'mosaic/Makefile.build'\" \(2058 characters\)
  1872.   sed "s/^X//" >'mosaic/Makefile.build' <<'END_OF_FILE'
  1873. X#
  1874. X# Makefile.build for Mosaic and HTML stuff; part of Worldwide File System.
  1875. X#
  1876. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1877. X#        E-mail: <youki@wide.ad.jp>
  1878. X#
  1879. X# 
  1880. X# WorldWide File System
  1881. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1882. X# Copyright (c) 1992,1993 Osaka University
  1883. X# All rights reserved.
  1884. X#
  1885. X# Permission to use, copy, modify and distribute this software and its
  1886. X# documentation is hereby granted, provided that the following conditions
  1887. X# are met:
  1888. X# 1. Both the copyright notice and this permission notice appear in
  1889. X#    all copies of the software, derivative works or modified versions,
  1890. X#    and any portions thereof, and that both notices appear in
  1891. X#    supporting documentation.
  1892. X# 2. All advertising materials mentioning features or use of this software
  1893. X#    must display the following acknowledgement:
  1894. X#      This product includes software developed by the Osaka University
  1895. X#      and its contributors.
  1896. X# 3. Neither the name of the University nor the names of its contributors
  1897. X#    may be used to endorse or promote products derived from this software
  1898. X#    without specific prior written permission.
  1899. X#
  1900. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1901. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1902. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1903. X#
  1904. X# Osaka University requests users of this software to return to
  1905. X#
  1906. X#  Youki Kadobayashi
  1907. X#  Department of Information and Computer Sciences
  1908. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1909. X#
  1910. X# any improvements or extensions that they make and grant Osaka
  1911. X# University the rights to redistribute these changes.
  1912. X
  1913. X# $Header: Makefile.build[109.0] Wed Nov 24 03:47:47 1993 youki-k@is.aist-nara.ac.jp saved $
  1914. X#
  1915. X
  1916. Xinstall-server:
  1917. X    @if [ -d $(WWFSDIR)/usr ]; then \
  1918. X        echo "WWFSDIR should be correctly set"; \
  1919. X        exit 1; \
  1920. X    else \
  1921. X        exit 0; \
  1922. X    fi
  1923. X    $(INSTBIN) gget.pl $(WWFSDIR)/bin
  1924. X    $(INSTBIN) htget.pl $(WWFSDIR)/bin
  1925. X    $(INSTBIN) urlrename.pl $(WWFSDIR)/bin
  1926. X    $(INSTALL) dirutil.pl $(WWFSDIR)/lib
  1927. X    $(INSTALL) ftplib.pl $(WWFSDIR)/lib
  1928. X    $(INSTALL) url.pl $(WWFSDIR)/lib
  1929. END_OF_FILE
  1930.   if test 2058 -ne `wc -c <'mosaic/Makefile.build'`; then
  1931.     echo shar: \"'mosaic/Makefile.build'\" unpacked with wrong size!
  1932.   fi
  1933.   # end of 'mosaic/Makefile.build'
  1934. fi
  1935. if test -f 'rpc/Makefile.build' -a "${1}" != "-c" ; then 
  1936.   echo shar: Will not clobber existing file \"'rpc/Makefile.build'\"
  1937. else
  1938.   echo shar: Extracting \"'rpc/Makefile.build'\" \(2575 characters\)
  1939.   sed "s/^X//" >'rpc/Makefile.build' <<'END_OF_FILE'
  1940. X#
  1941. X# Makefile.build for rpc; part of Worldwide File System.
  1942. X#
  1943. X# Author:    Youki Kadobayashi, Osaka University, Japan
  1944. X#        E-mail: <youki@wide.ad.jp>
  1945. X#
  1946. X# 
  1947. X# WorldWide File System
  1948. X# Copyright (c) 1992,1993 Youki Kadobayashi
  1949. X# Copyright (c) 1992,1993 Osaka University
  1950. X# All rights reserved.
  1951. X#
  1952. X# Permission to use, copy, modify and distribute this software and its
  1953. X# documentation is hereby granted, provided that the following conditions
  1954. X# are met:
  1955. X# 1. Both the copyright notice and this permission notice appear in
  1956. X#    all copies of the software, derivative works or modified versions,
  1957. X#    and any portions thereof, and that both notices appear in
  1958. X#    supporting documentation.
  1959. X# 2. All advertising materials mentioning features or use of this software
  1960. X#    must display the following acknowledgement:
  1961. X#      This product includes software developed by the Osaka University
  1962. X#      and its contributors.
  1963. X# 3. Neither the name of the University nor the names of its contributors
  1964. X#    may be used to endorse or promote products derived from this software
  1965. X#    without specific prior written permission.
  1966. X#
  1967. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  1968. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  1969. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  1970. X#
  1971. X# Osaka University requests users of this software to return to
  1972. X#
  1973. X#  Youki Kadobayashi
  1974. X#  Department of Information and Computer Sciences
  1975. X#  Osaka University, Toyonaka 560, Osaka, Japan
  1976. X#
  1977. X# any improvements or extensions that they make and grant Osaka
  1978. X# University the rights to redistribute these changes.
  1979. X
  1980. X# $Header: Makefile.build[109.1] Tue Dec  7 23:38:39 1993 youki-k@is.aist-nara.ac.jp saved $
  1981. X#
  1982. X
  1983. XSTUBS =    cs_prot.h cs_prot_svc.c cs_prot_clnt.c cs_prot_xdr.c \
  1984. X    nfs_prot.h nfs_prot_svc.c nfs_prot_clnt.c nfs_prot_xdr.c
  1985. X
  1986. Xrpc:    $(STUBS)
  1987. X
  1988. Xcs_prot.h:    cs_prot.x
  1989. X    $(RPCGEN) -h -o $@ $?
  1990. X
  1991. Xcs_prot_svc.c:    cs_prot.x
  1992. X    $(RPCGEN) -m -o $@ $?
  1993. X    ./svc_modify.pl $@
  1994. X
  1995. Xcs_prot_clnt.c:    cs_prot.x
  1996. X    $(RPCGEN) -l -o $@ $?
  1997. X
  1998. Xcs_prot_xdr.c:    cs_prot.x
  1999. X    $(RPCGEN) -c -o $@ $?
  2000. X
  2001. Xnfs_prot.h:    nfs_prot.x
  2002. X    $(RPCGEN) -h -o $@ $?
  2003. X
  2004. Xnfs_prot_svc.c:    nfs_prot.x
  2005. X    $(RPCGEN) -m -o $@ $?
  2006. X    ./svc_modify.pl $@
  2007. X
  2008. Xnfs_prot_clnt.c:    nfs_prot.x
  2009. X    $(RPCGEN) -l -o $@ $?
  2010. X
  2011. Xnfs_prot_xdr.c:    nfs_prot.x
  2012. X    $(RPCGEN) -c -o $@ $?
  2013. X
  2014. Xclean::
  2015. X    -rm -f *.bak
  2016. X
  2017. X#    -rm -f *.bak $(STUBS)
  2018. X
  2019. Xcs_prot_clnt.o:        cs_prot_clnt.c cs_prot.h
  2020. Xcs_prot_svc.o:        cs_prot_svc.c cs_prot.h util.h
  2021. Xcs_prot_xdr.o:        cs_prot_xdr.c cs_prot.h
  2022. Xnfs_prot_clnt.o:    nfs_prot_clnt.c nfs_prot.h
  2023. Xnfs_prot_svc.o:        nfs_prot_svc.c nfs_prot.h util.h
  2024. Xnfs_prot_xdr.o:        nfs_prot_xdr.c nfs_prot.h
  2025. X
  2026. END_OF_FILE
  2027.   if test 2575 -ne `wc -c <'rpc/Makefile.build'`; then
  2028.     echo shar: \"'rpc/Makefile.build'\" unpacked with wrong size!
  2029.   fi
  2030.   # end of 'rpc/Makefile.build'
  2031. fi
  2032. if test -f 'saps/Makefile.build' -a "${1}" != "-c" ; then 
  2033.   echo shar: Will not clobber existing file \"'saps/Makefile.build'\"
  2034. else
  2035.   echo shar: Extracting \"'saps/Makefile.build'\" \(2230 characters\)
  2036.   sed "s/^X//" >'saps/Makefile.build' <<'END_OF_FILE'
  2037. X#
  2038. X# Makefile.build for Server Admin Perl Scripts; part of Worldwide File System.
  2039. X#
  2040. X# Author:    Youki Kadobayashi, Osaka University, Japan
  2041. X#        E-mail: <youki@wide.ad.jp>
  2042. X#
  2043. X# 
  2044. X# WorldWide File System
  2045. X# Copyright (c) 1992,1993 Youki Kadobayashi
  2046. X# Copyright (c) 1992,1993 Osaka University
  2047. X# All rights reserved.
  2048. X#
  2049. X# Permission to use, copy, modify and distribute this software and its
  2050. X# documentation is hereby granted, provided that the following conditions
  2051. X# are met:
  2052. X# 1. Both the copyright notice and this permission notice appear in
  2053. X#    all copies of the software, derivative works or modified versions,
  2054. X#    and any portions thereof, and that both notices appear in
  2055. X#    supporting documentation.
  2056. X# 2. All advertising materials mentioning features or use of this software
  2057. X#    must display the following acknowledgement:
  2058. X#      This product includes software developed by the Osaka University
  2059. X#      and its contributors.
  2060. X# 3. Neither the name of the University nor the names of its contributors
  2061. X#    may be used to endorse or promote products derived from this software
  2062. X#    without specific prior written permission.
  2063. X#
  2064. X# THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  2065. X# UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  2066. X# WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  2067. X#
  2068. X# Osaka University requests users of this software to return to
  2069. X#
  2070. X#  Youki Kadobayashi
  2071. X#  Department of Information and Computer Sciences
  2072. X#  Osaka University, Toyonaka 560, Osaka, Japan
  2073. X#
  2074. X# any improvements or extensions that they make and grant Osaka
  2075. X# University the rights to redistribute these changes.
  2076. X
  2077. X# $Header: Makefile.build[109.1] Thu Dec 16 20:41:13 1993 youki-k@is.aist-nara.ac.jp saved $
  2078. X#
  2079. X
  2080. Xinstall-server:
  2081. X    @if [ -d $(WWFSDIR)/usr ]; then \
  2082. X        echo "WWFSDIR should be correctly set"; \
  2083. X        exit 1; \
  2084. X    else \
  2085. X        exit 0; \
  2086. X    fi
  2087. X    $(INSTBIN) csd-nanny.pl $(WWFSDIR)/bin/csd-nanny
  2088. X    $(INSTBIN) expire.sh $(WWFSDIR)/bin/expire
  2089. X    $(INSTBIN) kill-csd.sh $(WWFSDIR)/bin/kill-csd
  2090. X    $(INSTBIN) update-vol.sh $(WWFSDIR)/bin/update-vol
  2091. X    $(INSTBIN) makelist.pl $(WWFSDIR)/bin
  2092. X    $(INSTBIN) map.pl $(WWFSDIR)/bin
  2093. X    $(INSTBIN) vol2html.pl $(WWFSDIR)/bin
  2094. X    $(INSTALL) jtod.txt $(WWFSDIR)/etc
  2095. X    $(INSTALL) adm-Makefile $(WWFSDIR)/Makefile
  2096. X
  2097. END_OF_FILE
  2098.   if test 2230 -ne `wc -c <'saps/Makefile.build'`; then
  2099.     echo shar: \"'saps/Makefile.build'\" unpacked with wrong size!
  2100.   fi
  2101.   # end of 'saps/Makefile.build'
  2102. fi
  2103. if test -f 'saps/makelist.pl' -a "${1}" != "-c" ; then 
  2104.   echo shar: Will not clobber existing file \"'saps/makelist.pl'\"
  2105. else
  2106.   echo shar: Extracting \"'saps/makelist.pl'\" \(2062 characters\)
  2107.   sed "s/^X//" >'saps/makelist.pl' <<'END_OF_FILE'
  2108. X#!/usr/local/bin/perl
  2109. X#
  2110. X# Read $usg below.
  2111. X# Author: Youki Kadobayashi <youki@wide.ad.jp>
  2112. X# This file is part of WWFS.
  2113. X#
  2114. Xrequire '/etc/csd.pl';
  2115. X
  2116. X$usg = "makelist.pl: Make table of volumes from volume files.
  2117. XUsage:    makelist [-i] [-o <output-file>] <volume-files...>
  2118. X    -o    output to designated file (default: $WWFSDIR/vol/INDEX)
  2119. X    -i    show volume id
  2120. X";
  2121. X
  2122. Xrequire 'getopts.pl';
  2123. Xdo Getopts('io:');
  2124. X&checkup;
  2125. X
  2126. X$: = " \n.-";
  2127. X
  2128. Xif ($#ARGV < $[) {
  2129. X    die $usg;
  2130. X}
  2131. Xif ($opt_o) {
  2132. X    open(LIST, ">$opt_o")
  2133. X    || die "$opt_o: $!\n\n$usg";
  2134. X} else {
  2135. X    open(LIST, ">$WWFSDIR/vol/INDEX")
  2136. X    || die "$WWFSDIR/vol/INDEX: $!\n\n$usg";
  2137. X}
  2138. Xforeach $file (@ARGV) {
  2139. X    open(IN, "<$file");
  2140. X    ($id, $volume, $server, $description) = ();    # clear
  2141. X    $volume = &basename($file);
  2142. X    $volume =~ s/.vol$//;
  2143. X    while (<IN>) {
  2144. X    if (/^volume-id:\s*(\S+)/i) {
  2145. X        $id = $1;
  2146. X    };
  2147. X    if (! $server && /^server:\s*(\S+)$/i) {
  2148. X        $server = $1;
  2149. X    };
  2150. X    if (! $server && /^ftp-server:\s*(\S+)$/i) {
  2151. X        $server = $1;
  2152. X    };
  2153. X    if (/^description:\s*(\S+.*)$/i) {
  2154. X        $description = $1;
  2155. X    };
  2156. X    }
  2157. X    close(IN);
  2158. X    if ($opt_i) {
  2159. X    $volume = sprintf("%3d %s", $id, $volume);
  2160. X    }
  2161. X    write(LIST);
  2162. X}
  2163. Xclose(LIST);
  2164. X
  2165. Xformat top =
  2166. Xvolume             server                 description
  2167. X------------------ ---------------------- -------------------------------------
  2168. X.
  2169. X
  2170. Xformat LIST =
  2171. X^<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  2172. X$volume,           $server,               $description
  2173. X^<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<< ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  2174. X$volume,           $server,               $description
  2175. X.
  2176. X
  2177. Xsub checkup {
  2178. X    if (!defined($WWFSDIR) || $WWFSDIR !~ m:^/:
  2179. X    || $WWFSDIR eq "" || $WWFSDIR eq "/") {
  2180. X    die "/etc/csd.pl: \$WWFSDIR is not set correctly\n";
  2181. X    }
  2182. X}
  2183. X
  2184. Xsub basename {
  2185. X    local ($pathname) = @_;
  2186. X    local ($dir, $basename, $pos);
  2187. X
  2188. X    $pos = rindex($pathname, "/");
  2189. X    if ($pos < 0) {
  2190. X        return $pathname;
  2191. X    }
  2192. X    ++$pos;
  2193. X    ($dir, $basename) = unpack("a$pos a*", $pathname);
  2194. X    return $basename;
  2195. X}
  2196. X
  2197. X# Local Variables:
  2198. X# mode: perl
  2199. X# End:
  2200. END_OF_FILE
  2201.   if test 2062 -ne `wc -c <'saps/makelist.pl'`; then
  2202.     echo shar: \"'saps/makelist.pl'\" unpacked with wrong size!
  2203.   fi
  2204.   chmod +x 'saps/makelist.pl'
  2205.   # end of 'saps/makelist.pl'
  2206. fi
  2207. if test -f 'saps/map.pl' -a "${1}" != "-c" ; then 
  2208.   echo shar: Will not clobber existing file \"'saps/map.pl'\"
  2209. else
  2210.   echo shar: Extracting \"'saps/map.pl'\" \(2499 characters\)
  2211.   sed "s/^X//" >'saps/map.pl' <<'END_OF_FILE'
  2212. X#!/usr/local/bin/perl
  2213. X#
  2214. X# Read $usg below.
  2215. X# Author: Youki Kadobayashi <youki@wide.ad.jp>
  2216. X# This file is part of WWFS.
  2217. X#
  2218. Xrequire '/etc/csd.pl';
  2219. X$voldir = "$WWFSDIR/vol";
  2220. X
  2221. X$usg = "map.pl: Check volume files and assign volume-id to them.
  2222. XUsage:    map.pl <volume-files...>
  2223. X    No option.
  2224. X    $voldir -- for volumes files (*.vol).
  2225. X";
  2226. X
  2227. Xif ($#ARGV < $[) {
  2228. X    die $usg;
  2229. X}
  2230. X
  2231. X&checkup;
  2232. X
  2233. Xforeach $file (@ARGV) {
  2234. X    if (&parse($file) == 0) {
  2235. X    print "$file: OK\n";
  2236. X    }
  2237. X}
  2238. Xif (defined($seq)) {
  2239. X    &writeseq;
  2240. X}
  2241. Xexit 0;
  2242. X
  2243. X
  2244. X# Check syntax of volume file.  Return value is
  2245. X#     0: if it's OK.
  2246. X#    -1: if there's problem.
  2247. Xsub parse {
  2248. X    local ($file) = @_;
  2249. X    local ($id, @servers, @dirs);
  2250. X    # parse the volume description file
  2251. X    unless (open(FILE, "$file")) {
  2252. X    print "$file: $!\n";
  2253. X    return -1;
  2254. X    }
  2255. X    while (<FILE>) {
  2256. X    /^volume-id:\s*(\d+)/i && do {
  2257. X        $id = $1;
  2258. X    };
  2259. X    /^ftp-server:\s*(\S+)$/i && do {
  2260. X        push(@servers, $1);
  2261. X    };
  2262. X    /^ftp-directory:\s*(\S+)$/i && do {
  2263. X        push(@dirs, $1);
  2264. X    };
  2265. X    /^server:\s*(\S+)$/i && do {
  2266. X        print "$file: warning: obsolete entry \"server:\".\n";
  2267. X        push(@servers, $1);
  2268. X    };
  2269. X    /^directory:\s*(\S+)$/i && do {
  2270. X        print "$file: warning: obsolete format \"directory:\".\n";
  2271. X        push(@dirs, $1);
  2272. X    };
  2273. X    }
  2274. X    close(FILE);
  2275. X
  2276. X    # check syntax
  2277. X    if (!defined($id)) {
  2278. X    if (!defined($seq)) {
  2279. X        &readseq;
  2280. X    }
  2281. X    if (open(FILE, ">> $file")) {
  2282. X        $id = $seq;
  2283. X        ++$seq;
  2284. X        print FILE "\nvolume-id: $id\n";
  2285. X        close(FILE);
  2286. X        print "$file: volume-id=$id was generated\n";
  2287. X    } else {
  2288. X        print "$file: cannot append volume-id\n";  return -1;
  2289. X    }
  2290. X    }
  2291. X    if (!defined(@servers)) {
  2292. X    print "$file: no server\n";  return -1;
  2293. X    }
  2294. X    if (!defined(@dirs)) {
  2295. X    print "$file: no directory\n";  return -1;
  2296. X    }
  2297. X    if ($#servers != $#dirs) {
  2298. X    print "$file: server-directory mismatch\n";  return -1;
  2299. X    }
  2300. X    return 0;
  2301. X}
  2302. X
  2303. Xsub checkup {
  2304. X    if (!defined($WWFSDIR) || $WWFSDIR !~ m:^/:
  2305. X    || $WWFSDIR eq "" || $WWFSDIR eq "/") {
  2306. X    die "/etc/csd.pl: \$WWFSDIR is not set correctly\n";
  2307. X    }
  2308. X    die "$voldir doesn't exist: install-server fail?\n" if (! -d $voldir);
  2309. X}
  2310. X
  2311. Xsub readseq {
  2312. X    if (open(SEQ, "< $voldir/seq")) {
  2313. X    $seq = <SEQ>;
  2314. X    chop $seq;
  2315. X    if ($seq !~ /^\d+$/) {
  2316. X        print "fatal: seq file corrupt\n";
  2317. X        exit 1;
  2318. X    }
  2319. X    close(SEQ);
  2320. X    } else {
  2321. X    print "warning: cannot find seq file: starting volume-id from 1000\n";
  2322. X    $seq = 1000;
  2323. X    }
  2324. X}
  2325. X
  2326. Xsub writeseq {
  2327. X    if (open(SEQ, "> $voldir/seq")) {
  2328. X    print SEQ "$seq\n";
  2329. X    close(SEQ);
  2330. X    }
  2331. X}    
  2332. X
  2333. X# Local Variables:
  2334. X# mode: perl
  2335. X# End:
  2336. END_OF_FILE
  2337.   if test 2499 -ne `wc -c <'saps/map.pl'`; then
  2338.     echo shar: \"'saps/map.pl'\" unpacked with wrong size!
  2339.   fi
  2340.   chmod +x 'saps/map.pl'
  2341.   # end of 'saps/map.pl'
  2342. fi
  2343. if test -f 'saps/vol2html.pl' -a "${1}" != "-c" ; then 
  2344.   echo shar: Will not clobber existing file \"'saps/vol2html.pl'\"
  2345. else
  2346.   echo shar: Extracting \"'saps/vol2html.pl'\" \(2471 characters\)
  2347.   sed "s/^X//" >'saps/vol2html.pl' <<'END_OF_FILE'
  2348. X#!/usr/local/bin/perl
  2349. X#
  2350. X# Read $usg below.
  2351. X# Author: Youki Kadobayashi <youki@wide.ad.jp>
  2352. X# This file is part of WWFS.
  2353. X#
  2354. Xrequire '/etc/csd.pl';
  2355. X
  2356. X$usg = "vol2html.pl: Convert volume files into HTML pages.
  2357. XUsage:    vol2html [-l <librarian>] [-t <table>] <volume-files...>
  2358. X    -l    your favorite librarian (default: youki)
  2359. X    -t    translation table file (default: $WWFSDIR/etc/jtod.txt)
  2360. X";
  2361. X
  2362. Xrequire 'getopts.pl';
  2363. Xdo Getopts('l:t:');
  2364. X$lib = $opt_l ? $opt_l : 'youki';
  2365. X$tab = $opt_t ? $opt_t : "$WWFSDIR/etc/jtod.txt";
  2366. X
  2367. Xif ($#ARGV < $[) {
  2368. X    die $usg;
  2369. X}
  2370. X
  2371. X# jargon to description mapping file.
  2372. Xopen(TAB, "$tab") || die;
  2373. Xwhile (<TAB>) {
  2374. X    chop;
  2375. X    ($key, $value) = split(/\s+/, $_, 2);
  2376. X    $jtod{$key} = $value;
  2377. X}
  2378. Xclose(TAB);
  2379. X
  2380. Xforeach $file (@ARGV) {
  2381. X    $vol = $file;
  2382. X    $vol =~ s/.vol$//;
  2383. X    open(IN, $file) || die;
  2384. X    while (<IN>) {
  2385. X        chop;
  2386. X        if (/^description:\s*/i) {
  2387. X            $description = $';
  2388. X        };
  2389. X        if (/^#category-$lib:\s*/i) {
  2390. X            @c = split(/\s*,\s*/, $');
  2391. X        }
  2392. X    }
  2393. X    foreach $key (@c) {
  2394. X        $text{$key} .= "<LI> <A HREF=\"wwfs:/$vol\">$vol</A>, $description\n";
  2395. X    }
  2396. X    close(IN);
  2397. X}
  2398. X
  2399. Xforeach $category (keys %text) {
  2400. X    @cat = split(/\//, $category);
  2401. X    if (! defined $page{$cat[0]}) {
  2402. X        # try to convert jargon into usual language
  2403. X        $title = $jtod{$cat[0]};
  2404. X        if (! defined $title) {
  2405. X            print "Using jargon word \"$cat[0]\" as is\n";
  2406. X            $title = $cat[0];
  2407. X        }
  2408. X        $page{$cat[0]} = "<TITLE>$title</TITLE>\n<H1>$title</H1>\n\n";
  2409. X    }
  2410. X    if (! $done{$category}) {
  2411. X        $done{$category} = 1;
  2412. X        # try to convert jargon into usual language
  2413. X        $title = $jtod{$cat[1]};
  2414. X        if (! defined $title) {
  2415. X            print "Using jargon word \"$cat[1]\" as is\n";
  2416. X            $title = $cat[1];
  2417. X        }
  2418. X        $page{$cat[0]} .= "<H2>$title</H2>\n<UL>\n";
  2419. X        $page{$cat[0]} .= $text{$category};
  2420. X        $page{$cat[0]} .= "</UL>\n\n";
  2421. X    }
  2422. X}
  2423. X
  2424. Xforeach $name (keys %page) {
  2425. X    open(FILE, "> vol_${name}.html") || die;
  2426. X    print FILE $page{$name};
  2427. X    print FILE "<!-- vol2html -l $lib ";
  2428. X    print FILE "at " . `date` . "-->\n";
  2429. X    close(FILE);
  2430. X}
  2431. X
  2432. X#    librarian at your choice.
  2433. X#    category-youki: free/emacs, lang/lisp
  2434. X#    category-suguru: free/gnu, lang/elisp
  2435. X#
  2436. X#    jargon to description mapping table "jtod.txt"
  2437. X#        free --> Free Software
  2438. X#        lang --> Language
  2439. X#        emacs --> Emacs
  2440. X#
  2441. X#    vol_"eval &jtod($category, 1)".html
  2442. X#
  2443. X#    <TITLE>&jtod($category, 1)</TITLE>
  2444. X#    <H1>&jtod($category, 1)</H1>
  2445. X#
  2446. X#    <H2>&jtod($category, 2)</H2>
  2447. X#    <UL>
  2448. X#    <LI> <A HREF="wwfs:/$volume">$volume</A>, $description
  2449. X#    </UL>
  2450. X
  2451. X# Local Variables:
  2452. X# mode: cperl
  2453. X# cperl-indent-level: 8
  2454. X# cperl-continued-statement-offset: 8
  2455. X# End:
  2456. END_OF_FILE
  2457.   if test 2471 -ne `wc -c <'saps/vol2html.pl'`; then
  2458.     echo shar: \"'saps/vol2html.pl'\" unpacked with wrong size!
  2459.   fi
  2460.   chmod +x 'saps/vol2html.pl'
  2461.   # end of 'saps/vol2html.pl'
  2462. fi
  2463. if test -f 'vol/khoros.vol' -a "${1}" != "-c" ; then 
  2464.   echo shar: Will not clobber existing file \"'vol/khoros.vol'\"
  2465. else
  2466.   echo shar: Extracting \"'vol/khoros.vol'\" \(169 characters\)
  2467.   sed "s/^X//" >'vol/khoros.vol' <<'END_OF_FILE'
  2468. Xftp-server:    ftp.waseda.ac.jp
  2469. Xftp-directory:    pub/khoros
  2470. Xdescription:    Khoros, an information processing and visualization toolkit
  2471. X
  2472. Xvolume-id: 88
  2473. X#category-youki:    free/gui
  2474. END_OF_FILE
  2475.   if test 169 -ne `wc -c <'vol/khoros.vol'`; then
  2476.     echo shar: \"'vol/khoros.vol'\" unpacked with wrong size!
  2477.   fi
  2478.   # end of 'vol/khoros.vol'
  2479. fi
  2480. if test -f 'wwmount/am_compat.c' -a "${1}" != "-c" ; then 
  2481.   echo shar: Will not clobber existing file \"'wwmount/am_compat.c'\"
  2482. else
  2483.   echo shar: Extracting \"'wwmount/am_compat.c'\" \(2352 characters\)
  2484.   sed "s/^X//" >'wwmount/am_compat.c' <<'END_OF_FILE'
  2485. X/* 
  2486. X * WorldWide File System
  2487. X * Copyright (c) 1992,1993 Youki Kadobayashi
  2488. X * Copyright (c) 1992,1993 Osaka University
  2489. X * All rights reserved.
  2490. X *
  2491. X * Permission to use, copy, modify and distribute this software and its
  2492. X * documentation is hereby granted, provided that the following conditions
  2493. X * are met:
  2494. X * 1. Both the copyright notice and this permission notice appear in
  2495. X *    all copies of the software, derivative works or modified versions,
  2496. X *    and any portions thereof, and that both notices appear in
  2497. X *    supporting documentation.
  2498. X * 2. All advertising materials mentioning features or use of this software
  2499. X *    must display the following acknowledgement:
  2500. X *      This product includes software developed by the Osaka University
  2501. X *      and its contributors.
  2502. X * 3. Neither the name of the University nor the names of its contributors
  2503. X *    may be used to endorse or promote products derived from this software
  2504. X *    without specific prior written permission.
  2505. X *
  2506. X * THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND OSAKA
  2507. X * UNIVERSITY DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  2508. X * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  2509. X *
  2510. X * Osaka University requests users of this software to return to
  2511. X *
  2512. X *  Youki Kadobayashi
  2513. X *  Department of Information and Computer Sciences
  2514. X *  Osaka University, Toyonaka 560, Osaka, Japan
  2515. X *
  2516. X * any improvements or extensions that they make and grant Osaka
  2517. X * University the rights to redistribute these changes.
  2518. X */
  2519. X/* amd compatibility */
  2520. Xstatic char *AtFSid = "$Header: am_compat.c[109.3] Sun Dec 19 02:49:38 1993 youki-k@is.aist-nara.ac.jp saved $";
  2521. X
  2522. X/* var args */
  2523. X#ifdef __STDC__
  2524. X#include <stdarg.h>
  2525. X#include <stdlib.h>
  2526. X#else
  2527. X#include <varargs.h>
  2528. X#endif
  2529. X
  2530. X#include <stdio.h>
  2531. X
  2532. X#ifdef __STDC__
  2533. Xplog(int lvl, char *fmt, ...)
  2534. X{
  2535. X    va_list ap;
  2536. X    va_start(ap, fmt);
  2537. X    vfprintf(stderr, fmt, ap);
  2538. X    va_end(ap);
  2539. X}
  2540. X#else
  2541. X
  2542. Xvoid
  2543. Xplog(va_alist)
  2544. Xva_dcl
  2545. X{
  2546. X    int lvl;
  2547. X    char *fmt;
  2548. X
  2549. X    va_list ap;
  2550. X    va_start(ap);
  2551. X    lvl = va_arg(ap, int);
  2552. X    fmt = va_arg(ap, char *);
  2553. X    vfprintf(stderr, fmt, ap);
  2554. X    va_end(ap);
  2555. X}
  2556. X#endif /* __STDC__ */
  2557. X
  2558. X#ifndef DEBUG_MALLOC
  2559. X#if defined(NeXT) || defined(vax) || defined(ultrix) || defined(sony) || defined(luna)
  2560. Xchar *
  2561. Xstrdup(str)
  2562. Xchar *str;
  2563. X{
  2564. X    char *sp;
  2565. X    int len;
  2566. X
  2567. X    len = strlen(str);
  2568. X    sp = (char *) malloc(len+1);
  2569. X    bcopy(str, sp, len);
  2570. X    sp[len] = 0;
  2571. X
  2572. X    return sp;
  2573. X}
  2574. X#endif
  2575. X#endif
  2576. END_OF_FILE
  2577.   if test 2352 -ne `wc -c <'wwmount/am_compat.c'`; then
  2578.     echo shar: \"'wwmount/am_compat.c'\" unpacked with wrong size!
  2579.   fi
  2580.   # end of 'wwmount/am_compat.c'
  2581. fi
  2582. echo shar: End of archive 20 \(of 22\).
  2583. cp /dev/null ark20isdone
  2584. MISSING=""
  2585. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ; do
  2586.     if test ! -f ark${I}isdone ; then
  2587.     MISSING="${MISSING} ${I}"
  2588.     fi
  2589. done
  2590. if test "${MISSING}" = "" ; then
  2591.     echo You have unpacked all 22 archives.
  2592.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2593. else
  2594.     echo You still must unpack the following archives:
  2595.     echo "        " ${MISSING}
  2596. fi
  2597. exit 0
  2598. exit 0 # Just in case...
  2599.