home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sources / x / 452 next >
Encoding:
Internet Message Format  |  1992-08-17  |  50.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!msi!dcmartin
  2. From: Mike.Sullivan@EBay.Sun.COM (Mike Sullivan {AKA Simon BarSinister})
  3. Newsgroups: comp.sources.x
  4. Subject: v18i083: Ftptool 4.3 (XVIEW), Part01/12
  5. Message-ID: <csx-18i083-ftptool-4.3@uunet.UU.NET>
  6. Date: 18 Aug 92 15:35:01 GMT
  7. Sender: dcmartin@msi.com (David C. Martin - Moderator)
  8. Organization: Molecular Simulations, Inc.
  9. Lines: 1653
  10. Approved: dcmartin@msi.com
  11. Originator: dcmartin@fascet
  12.  
  13. Submitted-by: Mike.Sullivan@EBay.Sun.COM (Mike Sullivan {AKA Simon BarSinister})
  14. Posting-number: Volume 18, Issue 83
  15. Archive-name: ftptool-4.3/part01
  16.  
  17. [From the README - dcm]
  18.  
  19. You should be able to compile and run it on 4.1.X, OW2 or better. You
  20. might want to use xview3, which is available with the OW3 CD or from
  21. export.lcs.mit.edu in /contrib/xview3. For a sun3, you may also need
  22. the unofficial patch /contrib/xview3/Fixes/xview3.0_unofficial_patch
  23. (unless Patch-02 fixed those problems).  Other operating
  24. systems (besides SunOS 5.0) have not been tested by me, though I believe 
  25. it works under Ultrix and 386SVR4.
  26.  
  27. #!/bin/sh
  28. # This is a shell archive (produced by shar 3.50)
  29. # To extract the files from this archive, save it to a file, remove
  30. # everything above the "!/bin/sh" line above, and type "sh file_name".
  31. #
  32. # made 08/18/1992 15:30 UTC by dcmartin@fascet
  33. # Source directory /home/fascet/dcmartin/csx/src/ftptool/Ftptool4.3
  34. #
  35. # existing files will NOT be overwritten unless -c is specified
  36. #
  37. # This is part 1 of a multipart archive                                    
  38. # do not concatenate these parts, unpack them in order with /bin/sh        
  39. #
  40. # This shar contains:
  41. # length  mode       name
  42. # ------ ---------- ------------------------------------------
  43. #   1989 -rw-r--r-- Imakefile
  44. #   2808 -rw-r--r-- LEGAL_NOTICE
  45. #   2480 -rw-r--r-- Makefile.sunpro
  46. #    268 -rw-r--r-- README.FIRST
  47. #    771 -rw-r--r-- batch.h
  48. #     75 -rw-r--r-- batch_struct.h
  49. #   2190 -rw-r--r-- busy1.ftptool.icon
  50. #   2190 -rw-r--r-- busy2.ftptool.icon
  51. #   2190 -rw-r--r-- busy3.ftptool.icon
  52. #   2190 -rw-r--r-- busy4.ftptool.icon
  53. #    672 -rw-r--r-- change_dir.h
  54. #   1749 -rw-r--r-- config.h
  55. #    224 -rw-r--r-- create_main.h
  56. #    704 -rw-r--r-- create_other.h
  57. #    747 -rw-r--r-- dircache.h
  58. #    235 -rw-r--r-- dircache_struct.h
  59. #    194 -rw-r--r-- directory.pr
  60. #   1869 -rw-r--r-- dirlist.h
  61. #    295 -rw-r--r-- dirlist_struct.h
  62. #    849 -rw-r--r-- dofuncs.h
  63. #    221 -rw-r--r-- dotdot.pr
  64. #   1304 -rw-r--r-- event.h
  65. #    194 -rw-r--r-- file.pr
  66. #   2190 -rw-r--r-- ftptool.icon
  67. #   2682 -rw-r--r-- host_list.h
  68. #    248 -rw-r--r-- host_list_struct.h
  69. #    562 -rw-r--r-- lex.l
  70. #    330 -rw-r--r-- main.h
  71. #    770 -rw-r--r-- menu_funcs.h
  72. #   2248 -rw-r--r-- misc.h
  73. #     29 -rw-r--r-- more
  74. #     40 -rw-r--r-- patchlevel.h
  75. #    646 -rw-r--r-- readdir.h
  76. #   1700 -rw-r--r-- schedule.h
  77. #    165 -rw-r--r-- schedule_struct.h
  78. #   2190 -rw-r--r-- tar.viewer.icon
  79. #    548 -rw-r--r-- tar_view.h
  80. #   1071 -rw-r--r-- transfer.h
  81. #    222 -rw-r--r-- unknown.pr
  82. #    675 -rw-r--r-- view_file.h
  83. #   3069 -rw-r--r-- README
  84. #  10213 -rw-r--r-- batch.c
  85. #   4698 -rw-r--r-- button_funcs.h
  86. #   4331 -rw-r--r-- dircache.c
  87. #   2888 -rw-r--r-- ftp_var.h
  88. #   9377 -rw-r--r-- ftptool.h
  89. #   7548 -rw-r--r-- tar_view.c
  90. #   6916 -rw-r--r-- view_file.c
  91. #  11937 -rw-r--r-- Makefile
  92. #  12320 -rw-r--r-- dirlist.c
  93. #  11513 -rw-r--r-- lex.c
  94. #  13063 -rw-r--r-- readdir.c
  95. #  14252 -rw-r--r-- change_dir.c
  96. #  13307 -rw-r--r-- event.c
  97. #  16551 -rw-r--r-- menu_funcs.c
  98. #  18272 -rw-r--r-- HISTORY
  99. #  17319 -rw-r--r-- schedule.c
  100. #  16747 -rw-r--r-- transfer.c
  101. #  20039 -rw-r--r-- dofuncs.c
  102. #  18317 -rw-r--r-- main.c
  103. #  20101 -rw-r--r-- ftptool.man
  104. #  23290 -rw-r--r-- misc.c
  105. #  27153 -rw-r--r-- create_main.c
  106. #  30712 -rw-r--r-- ftp.c
  107. #  30792 -rw-r--r-- host_list.c
  108. #  32541 -rw-r--r-- ftptool.info
  109. #  40591 -rw-r--r-- create_other.c
  110. #  44896 -rw-r--r-- button_funcs.c
  111. #
  112. if test -r _shar_seq_.tmp; then
  113.     echo 'Must unpack archives in sequence!'
  114.     echo Please unpack part `cat _shar_seq_.tmp` next
  115.     exit 1
  116. fi
  117. # ============= Imakefile ==============
  118. if test -f 'Imakefile' -a X"$1" != X"-c"; then
  119.     echo 'x - skipping Imakefile (File already exists)'
  120.     rm -f _shar_wnt_.tmp
  121. else
  122. > _shar_wnt_.tmp
  123. echo 'x - extracting Imakefile (Text)'
  124. sed 's/^X//' << 'SHAR_EOF' > 'Imakefile' &&
  125. /* Where do you have OpenWindows 3 installed? */
  126. #OPENWINHOME = /usr/local/OW3
  127. X
  128. #Uncomment the appropriate one if necessary. You should not need
  129. #either, as it should be determined by the program.
  130. #XVIEW= -DXVIEW3
  131. #XVIEW= -DXVIEW2
  132. X
  133. #Uncomment the following line for SunOS 4.X
  134. DEFINES= $(XVIEW)
  135. X
  136. #Uncomment the following lines for SunOS 5.0. 
  137. #DEFINES= -DSYSV -DSVR4 
  138. #LIBSUNOS5= -R /usr/openwin/lib:/opt/openwin/lib:/usr/opt/openwin/lib \
  139. #    -lsocket -lnsl
  140. X
  141. #Uncomment the following line for 386 SVR4.
  142. #DEFINES= -DSYSV386 -DSYSV -DSVR4
  143. X
  144. SYS_LIBRARIES     = -lm
  145. LOCAL_LIBRARIES = -lxview -lolgx $(XLIB) $(LIBSUNOS5)
  146. LDOPTIONS         = -L$(OPENWINHOME)/lib
  147. INCLUDES         = -I$(OPENWINHOME)/include
  148. X
  149. /* this probably needs to be changed to suit your site. */
  150. HELPDIR            = $(OPENWINHOME)/lib/help
  151. X
  152. ICONS = busy1.ftptool.icon busy2.ftptool.icon busy3.ftptool.icon \
  153. X    busy4.ftptool.icon ftptool.icon tar.viewer.icon
  154. X
  155. HEADERS = ftptool.h
  156. X
  157. SUBHEADERS= batch.h batch_struct.h button_funcs.h change_dir.h config.h \
  158. X    create_main.h create_other.h dircache.h dircache_struct.h dirlist.h \
  159. X    dirlist_struct.h dofuncs.h event.h ftp_var.h host_list.h \
  160. X    host_list_struct.h main.h menu_funcs.h misc.h patchlevel.h readdir.h \
  161. X    schedule.h schedule_struct.h tar_view.h transfer.h view_file.h
  162. X
  163. INFOFILES = ftptool.info
  164. X
  165. MANPAGES = ftptool.man
  166. X
  167. SRCS = batch.c button_funcs.c change_dir.c create_main.c create_other.c \
  168. X    dircache.c dirlist.c dofuncs.c event.c ftp.c host_list.c lex.l main.c \
  169. X    menu_funcs.c misc.c readdir.c schedule.c tar_view.c transfer.c view_file.c
  170. X
  171. OBJS = batch.o button_funcs.o change_dir.o create_main.o create_other.o \
  172. X    dircache.o dirlist.o dofuncs.o event.o ftp.o host_list.o lex.o main.o \
  173. X    menu_funcs.o misc.o readdir.o schedule.o tar_view.o transfer.o view_file.o 
  174. X
  175. ALLFILES = ${HEADERS} ${INFOFILES} ${MANPAGES} ${ICONS} ${SRCS}
  176. X
  177. AllTarget(ftptool)
  178. X
  179. $(OBJS): $(HEADERS) $(SUBHEADERS)
  180. X
  181. ComplexProgramTarget(ftptool)
  182. X
  183. install::
  184. X    $(INSTALL) -c $(INSTMANFLAGS) ftptool.info $(HELPDIR)/ftptool.info
  185. SHAR_EOF
  186. chmod 0644 Imakefile ||
  187. echo 'restore of Imakefile failed'
  188. Wc_c="`wc -c < 'Imakefile'`"
  189. test 1989 -eq "$Wc_c" ||
  190.     echo 'Imakefile: original size 1989, current size' "$Wc_c"
  191. rm -f _shar_wnt_.tmp
  192. fi
  193. # ============= LEGAL_NOTICE ==============
  194. if test -f 'LEGAL_NOTICE' -a X"$1" != X"-c"; then
  195.     echo 'x - skipping LEGAL_NOTICE (File already exists)'
  196.     rm -f _shar_wnt_.tmp
  197. else
  198. > _shar_wnt_.tmp
  199. echo 'x - extracting LEGAL_NOTICE (Text)'
  200. sed 's/^X//' << 'SHAR_EOF' > 'LEGAL_NOTICE' &&
  201. X    NOTICE TO USER: The source code, including the glyphs or icons 
  202. X    forming a par of the OPEN LOOK TM Graphic User Interface, on this 
  203. X    tape and in these files is copyrighted under U.S. and international
  204. X    laws. Sun Microsystems, Inc. of Mountain View, California owns
  205. X    the copyright and has design patents pending on many of the icons. 
  206. X    AT&T is the owner of the OPEN LOOK trademark associated with the
  207. X    materials on this tape. Users and possessors of this source code 
  208. X    are hereby granted a nonexclusive, royalty-free copyright and 
  209. X    design patent license to use this code in individual and 
  210. X    commercial software. A royalty-free, nonexclusive trademark
  211. X    license to refer to the code and output as "OPEN LOOK" compatible 
  212. X    is available from AT&T if, and only if, the appearance of the 
  213. X    icons or glyphs is not changed in any manner except as absolutely
  214. X    necessary to accommodate the standard resolution of the screen or
  215. X    other output device, the code and output is not changed except as 
  216. X    authorized herein, and the code and output is validated by AT&T. 
  217. X    Bigelow & Holmes is the owner of the Lucida (R) trademark for the
  218. X    fonts and bit-mapped images associated with the materials on this 
  219. X    tape. Users are granted a royalty-free, nonexclusive license to use
  220. X    the trademark only to identify the fonts and bit-mapped images if, 
  221. X    and only if, the fonts and bit-mapped images are not modified in any
  222. X    way by the user. 
  223. X
  224. X
  225. X    Any use of this source code must include, in the user documentation 
  226. X    and internal comments to the code, notices to the end user as  
  227. X    follows:
  228. X
  229. X
  230. X    (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
  231. X    pending in the U.S. and foreign countries. OPEN LOOK is a 
  232. X    trademark of AT&T. Used by written permission of the owners.
  233. X
  234. X
  235. X     (c) Copyright Bigelow & Holmes 1986, 1985. Lucida is a registered 
  236. X    trademark of Bigelow & Holmes. Permission to use the Lucida 
  237. X    trademark is hereby granted only in association with the images 
  238. X    and fonts described in this file.
  239. X
  240. X
  241. X
  242. X    SUN MICROSYSTEMS, INC., AT&T, AND BIGELOW & HOLMES 
  243. X    MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF
  244. X     THIS SOURCE CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" 
  245. X    WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND. 
  246. X    SUN  MICROSYSTEMS, INC., AT&T AND BIGELOW  & HOLMES, 
  247. X    SEVERALLY AND INDIVIDUALLY, DISCLAIM ALL WARRANTIES 
  248. X    WITH REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED
  249. X    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  250. X    PARTICULAR PURPOSE. IN NO EVENT SHALL SUN MICROSYSTEMS,
  251. X    INC., AT&T OR BIGELOW & HOLMES BE LIABLE FOR ANY
  252. X    SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
  253. X    OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA     
  254. X    OR PROFITS, WHETHER IN AN ACTION OF  CONTRACT, NEGLIGENCE
  255. X    OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  256. X    WITH THE USE OR PERFORMANCE OF THIS SOURCE CODE.
  257. SHAR_EOF
  258. chmod 0644 LEGAL_NOTICE ||
  259. echo 'restore of LEGAL_NOTICE failed'
  260. Wc_c="`wc -c < 'LEGAL_NOTICE'`"
  261. test 2808 -eq "$Wc_c" ||
  262.     echo 'LEGAL_NOTICE: original size 2808, current size' "$Wc_c"
  263. rm -f _shar_wnt_.tmp
  264. fi
  265. # ============= Makefile.sunpro ==============
  266. if test -f 'Makefile.sunpro' -a X"$1" != X"-c"; then
  267.     echo 'x - skipping Makefile.sunpro (File already exists)'
  268.     rm -f _shar_wnt_.tmp
  269. else
  270. > _shar_wnt_.tmp
  271. echo 'x - extracting Makefile.sunpro (Text)'
  272. sed 's/^X//' << 'SHAR_EOF' > 'Makefile.sunpro' &&
  273. OFILES= batch.o button_funcs.o change_dir.o create_main.o create_other.o \
  274. X    dircache.o dirlist.o dofuncs.o event.o ftp.o host_list.o lex.o main.o \
  275. X    menu_funcs.o misc.o readdir.o schedule.o tar_view.o transfer.o view_file.o
  276. X
  277. CFILES= batch.c button_funcs.c change_dir.c create_main.c create_other.c \
  278. X    dircache.c dirlist.c dofuncs.c event.c ftp.c host_list.c lex.l main.c \
  279. X    menu_funcs.c misc.c readdir.c schedule.c tar_view.c transfer.c view_file.c
  280. X
  281. ICONS= busy1.ftptool.icon busy2.ftptool.icon busy3.ftptool.icon \
  282. X    busy4.ftptool.icon ftptool.icon tar.viewer.icon
  283. X
  284. SUBHEADERS= batch.h batch_struct.h button_funcs.h change_dir.h config.h \
  285. X    create_main.h create_other.h dircache.h dircache_struct.h dirlist.h \
  286. X    dirlist_struct.h dofuncs.h event.h ftp_var.h host_list.h \
  287. X    host_list_struct.h main.h menu_funcs.h misc.h patchlevel.h readdir.h \
  288. X    schedule.h schedule_struct.h tar_view.h transfer.h view_file.h
  289. X
  290. HEADERS= ftptool.h
  291. X
  292. #Uncomment the following if ftptool should use the resolver only.
  293. #to make sure the static ftptool can use the resolver
  294. #RES= -lresolv
  295. X
  296. #Uncomment if OPENWINHOME is not set
  297. #OPENWINHOME=/usr/openwin
  298. X
  299. #Uncomment the appropriate one if necessary. You should not need
  300. #either, as it should be determined by the program.
  301. #XVIEW= -DXVIEW3
  302. #XVIEW= -DXVIEW2
  303. X
  304. #Uncomment the following lines for SunOS 4.X
  305. LIBS= -Bstatic -L$$OPENWINHOME/lib -lxview -lolgx -lX11 -Bdynamic $(RES) -lm
  306. DEFINES= $(XVIEW)
  307. #Choose a CC. Any CC (only tested under cc and gcc though)
  308. CC=cc 
  309. #CC=gcc -ansi
  310. X
  311. #Uncomment the following lines for SunOS 5.0
  312. #DEFINES= -DSYSV -DSVR4 $(XVIEW)
  313. #LIBS= -R /usr/openwin/lib:/opt/openwin/lib:/usr/opt/openwin/lib \
  314. #    -L${OPENWINHOME}/lib -lxview -lolgx -lX11 -lsocket -lnsl -lm
  315. #CC=cc -Xa
  316. X
  317. X
  318. X
  319. #Uncomment the following line for 386 SVR4.
  320. #DEFINES= -DSYSV -DSVR4 -DSYSV386
  321. X
  322. CFLAGS= -I$$OPENWINHOME/include  -O $(DEFINES)
  323. X
  324. BINDIR=/usr/local/Xbin
  325. HELPDIR=$$OPENWINHOME/lib/help
  326. MANDIR=/usr/local/man
  327. MANSECT=1
  328. X
  329. #BINDIR=/net/enterprise/export/local/Xbin
  330. #HELPDIR=/net/enterprise/export/unbundled/OW3/lib/help
  331. #MANDIR=/net/enterprise/export/local/man
  332. #MANSECT=1
  333. X
  334. ftptool: $(OFILES)
  335. X    $(CC) -o ftptool $(OFILES) $(STATIC) $(LIBS)
  336. X
  337. $(OFILES): $(HEADERS) $(SUBHEADERS) $(ICONS)
  338. X
  339. lint:
  340. X    /usr/bin/lint -DLINT -I$$OPENWINHOME/include $(CFILES)
  341. X
  342. vgrind:
  343. X    vgrind $(CFILES) -s11 -t | lpr -t
  344. X
  345. clean:
  346. X    rm -f $(OFILES) ftptool
  347. X
  348. install: ftptool
  349. X    install ftptool $(BINDIR)
  350. X    install ftptool.info $(HELPDIR)
  351. X    install ftptool.man $(MANDIR)/man$(MANSECT)/ftptool.$(MANSECT)
  352. SHAR_EOF
  353. chmod 0644 Makefile.sunpro ||
  354. echo 'restore of Makefile.sunpro failed'
  355. Wc_c="`wc -c < 'Makefile.sunpro'`"
  356. test 2480 -eq "$Wc_c" ||
  357.     echo 'Makefile.sunpro: original size 2480, current size' "$Wc_c"
  358. rm -f _shar_wnt_.tmp
  359. fi
  360. # ============= README.FIRST ==============
  361. if test -f 'README.FIRST' -a X"$1" != X"-c"; then
  362.     echo 'x - skipping README.FIRST (File already exists)'
  363.     rm -f _shar_wnt_.tmp
  364. else
  365. > _shar_wnt_.tmp
  366. echo 'x - extracting README.FIRST (Text)'
  367. sed 's/^X//' << 'SHAR_EOF' > 'README.FIRST' &&
  368. X
  369. As of ftptool 4.3, ftptool will automatically try to use Sun 
  370. Consulting's proxy ftp to get to the named host. This is _not_ enabled
  371. by default. Enable it in the Properties window. This is primarily for
  372. use by Sun people, who need it to get to hosts on the Internet.
  373. SHAR_EOF
  374. chmod 0644 README.FIRST ||
  375. echo 'restore of README.FIRST failed'
  376. Wc_c="`wc -c < 'README.FIRST'`"
  377. test 268 -eq "$Wc_c" ||
  378.     echo 'README.FIRST: original size 268, current size' "$Wc_c"
  379. rm -f _shar_wnt_.tmp
  380. fi
  381. # ============= batch.h ==============
  382. if test -f 'batch.h' -a X"$1" != X"-c"; then
  383.     echo 'x - skipping batch.h (File already exists)'
  384.     rm -f _shar_wnt_.tmp
  385. else
  386. > _shar_wnt_.tmp
  387. echo 'x - extracting batch.h (Text)'
  388. sed 's/^X//' << 'SHAR_EOF' > 'batch.h' &&
  389. X
  390. #ifdef USE_PROTOTYPES
  391. X
  392. struct batchlist *new_batchlist(void);
  393. struct batchlist *add_batchname(Panel panel_list, char *name, mode_t mode,
  394. X    size_t size, char *dir);
  395. void free_batchlist(Panel panel_list, int only_selected);
  396. int batchentry_exists(Panel panel_list, char *name);
  397. void receive_list_delete_proc(void);
  398. void send_list_delete_proc(void);
  399. void dobatchget(void);
  400. void dobatchput(void);
  401. int save_batch_list(Panel list, char *filename);
  402. int load_batch_list(Panel list, char *filename);
  403. X
  404. #else
  405. X
  406. struct batchlist *new_batchlist();
  407. struct batchlist *add_batchname();
  408. void free_batchlist();
  409. int batchentry_exists();
  410. void receive_list_delete_proc();
  411. void send_list_delete_proc();
  412. void dobatchget();
  413. void dobatchput();
  414. int save_batch_list();
  415. int load_batch_list();
  416. X
  417. #endif
  418. SHAR_EOF
  419. chmod 0644 batch.h ||
  420. echo 'restore of batch.h failed'
  421. Wc_c="`wc -c < 'batch.h'`"
  422. test 771 -eq "$Wc_c" ||
  423.     echo 'batch.h: original size 771, current size' "$Wc_c"
  424. rm -f _shar_wnt_.tmp
  425. fi
  426. # ============= batch_struct.h ==============
  427. if test -f 'batch_struct.h' -a X"$1" != X"-c"; then
  428.     echo 'x - skipping batch_struct.h (File already exists)'
  429.     rm -f _shar_wnt_.tmp
  430. else
  431. > _shar_wnt_.tmp
  432. echo 'x - extracting batch_struct.h (Text)'
  433. sed 's/^X//' << 'SHAR_EOF' > 'batch_struct.h' &&
  434. struct batchlist {
  435. X    char    *name;
  436. X    mode_t    mode;
  437. X    int        row;
  438. X    size_t    size;
  439. };
  440. X
  441. SHAR_EOF
  442. chmod 0644 batch_struct.h ||
  443. echo 'restore of batch_struct.h failed'
  444. Wc_c="`wc -c < 'batch_struct.h'`"
  445. test 75 -eq "$Wc_c" ||
  446.     echo 'batch_struct.h: original size 75, current size' "$Wc_c"
  447. rm -f _shar_wnt_.tmp
  448. fi
  449. # ============= busy1.ftptool.icon ==============
  450. if test -f 'busy1.ftptool.icon' -a X"$1" != X"-c"; then
  451.     echo 'x - skipping busy1.ftptool.icon (File already exists)'
  452.     rm -f _shar_wnt_.tmp
  453. else
  454. > _shar_wnt_.tmp
  455. echo 'x - extracting busy1.ftptool.icon (Text)'
  456. sed 's/^X//' << 'SHAR_EOF' > 'busy1.ftptool.icon' &&
  457. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
  458. X */
  459. X    0x0000,    0x0000,    0x0000,    0x0000,
  460. X    0x0000,    0x0000,    0x0000,    0x0000,
  461. X    0x0000,    0x0000,    0x0000,    0x0000,
  462. X    0x0000,    0x0000,    0x0000,    0x0000,
  463. X    0x0000,    0x0000,    0x0000,    0x0000,
  464. X    0x001F,    0xFEFF,    0xFE7F,    0xF000,
  465. X    0x001F,    0xFEFF,    0xFE7F,    0xFC00,
  466. X    0x001C,    0x0003,    0x8070,    0x1C00,
  467. X    0x001C,    0x0003,    0x8070,    0x0E00,
  468. X    0x001C,    0x0003,    0x8070,    0x0E00,
  469. X    0x001C,    0x0003,    0x8070,    0x0E00,
  470. X    0x001C,    0x0003,    0x8070,    0x0E00,
  471. X    0x001C,    0x0003,    0x8070,    0x1C00,
  472. X    0x001F,    0xFC03,    0x807F,    0xFC00,
  473. X    0x001F,    0xFC03,    0x807F,    0xF800,
  474. X    0x001C,    0x0003,    0x8070,    0x0000,
  475. X    0x001C,    0x0003,    0x8070,    0x0000,
  476. X    0x001C,    0x0003,    0x8070,    0x0000,
  477. X    0x001C,    0x0003,    0x8070,    0x0000,
  478. X    0x001C,    0x0003,    0x8070,    0x0000,
  479. X    0x001C,    0x0003,    0x8070,    0x0000,
  480. X    0x001C,    0x0003,    0x8070,    0x0000,
  481. X    0x001C,    0x0003,    0x8070,    0x0000,
  482. X    0x001C,    0x0003,    0x8070,    0x0000,
  483. X    0x0000,    0x0000,    0x0000,    0x0000,
  484. X    0x0000,    0x0000,    0x0000,    0x0000,
  485. X    0x0000,    0x0000,    0x0000,    0x0000,
  486. X    0x0000,    0x0000,    0x0000,    0x0000,
  487. X    0x0010,    0x0000,    0x0000,    0x1000,
  488. X    0x0030,    0x0000,    0x0000,    0x1800,
  489. X    0x0070,    0x0000,    0x0000,    0x1C00,
  490. X    0x00F0,    0x0000,    0x0000,    0x1A00,
  491. X    0x0170,    0x0000,    0x0000,    0x1900,
  492. X    0x027F,    0xFFFF,    0xFFFF,    0xF880,
  493. X    0x0478,    0x7878,    0x7878,    0x7840,
  494. X    0x0878,    0x7878,    0x7878,    0x7820,
  495. X    0x0478,    0x7878,    0x7878,    0x7840,
  496. X    0x027F,    0xFFFF,    0xFFFF,    0xF880,
  497. X    0x0170,    0x0000,    0x0000,    0x1900,
  498. X    0x00F0,    0x0000,    0x0000,    0x1A00,
  499. X    0x0070,    0x0000,    0x0000,    0x1C00,
  500. X    0x0030,    0x0000,    0x0000,    0x1800,
  501. X    0x0010,    0x0000,    0x0000,    0x1000,
  502. X    0x0000,    0x0000,    0x0000,    0x0000,
  503. X    0x0000,    0x0000,    0x0000,    0x0000,
  504. X    0x0000,    0x0000,    0x0000,    0x0000,
  505. X    0x0000,    0x0000,    0x0000,    0x0000,
  506. X    0x0000,    0x0000,    0x0000,    0x0000,
  507. X    0x0000,    0x0000,    0x0000,    0x0000,
  508. X    0x0000,    0x0000,    0x0000,    0x0000,
  509. X    0x0000,    0x0000,    0x0000,    0x0000,
  510. X    0x0000,    0x0000,    0x0000,    0x0000,
  511. X    0x0000,    0x0000,    0x0000,    0x0000,
  512. X    0x0000,    0x0000,    0x0000,    0x0000,
  513. X    0x0000,    0x0000,    0x0000,    0x0000,
  514. X    0x0000,    0x0000,    0x0000,    0x0000,
  515. X    0x0000,    0x0000,    0x0000,    0x0000,
  516. X    0x0000,    0x0000,    0x0000,    0x0000,
  517. X    0x0000,    0x0000,    0x0000,    0x0000,
  518. X    0x0000,    0x0000,    0x0000,    0x0000,
  519. X    0x0000,    0x0000,    0x0000,    0x0000,
  520. X    0x0000,    0x0000,    0x0000,    0x0000,
  521. X    0x0000,    0x0000,    0x0000,    0x0000,
  522. X    0x0000,    0x0000,    0x0000,    0x0000,
  523. SHAR_EOF
  524. chmod 0644 busy1.ftptool.icon ||
  525. echo 'restore of busy1.ftptool.icon failed'
  526. Wc_c="`wc -c < 'busy1.ftptool.icon'`"
  527. test 2190 -eq "$Wc_c" ||
  528.     echo 'busy1.ftptool.icon: original size 2190, current size' "$Wc_c"
  529. rm -f _shar_wnt_.tmp
  530. fi
  531. # ============= busy2.ftptool.icon ==============
  532. if test -f 'busy2.ftptool.icon' -a X"$1" != X"-c"; then
  533.     echo 'x - skipping busy2.ftptool.icon (File already exists)'
  534.     rm -f _shar_wnt_.tmp
  535. else
  536. > _shar_wnt_.tmp
  537. echo 'x - extracting busy2.ftptool.icon (Text)'
  538. sed 's/^X//' << 'SHAR_EOF' > 'busy2.ftptool.icon' &&
  539. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
  540. X */
  541. X    0x0000,    0x0000,    0x0000,    0x0000,
  542. X    0x0000,    0x0000,    0x0000,    0x0000,
  543. X    0x0000,    0x0000,    0x0000,    0x0000,
  544. X    0x0000,    0x0000,    0x0000,    0x0000,
  545. X    0x0000,    0x0000,    0x0000,    0x0000,
  546. X    0x001F,    0xFEFF,    0xFE7F,    0xF000,
  547. X    0x001F,    0xFEFF,    0xFE7F,    0xFC00,
  548. X    0x001C,    0x0003,    0x8070,    0x1C00,
  549. X    0x001C,    0x0003,    0x8070,    0x0E00,
  550. X    0x001C,    0x0003,    0x8070,    0x0E00,
  551. X    0x001C,    0x0003,    0x8070,    0x0E00,
  552. X    0x001C,    0x0003,    0x8070,    0x0E00,
  553. X    0x001C,    0x0003,    0x8070,    0x1C00,
  554. X    0x001F,    0xFC03,    0x807F,    0xFC00,
  555. X    0x001F,    0xFC03,    0x807F,    0xF800,
  556. X    0x001C,    0x0003,    0x8070,    0x0000,
  557. X    0x001C,    0x0003,    0x8070,    0x0000,
  558. X    0x001C,    0x0003,    0x8070,    0x0000,
  559. X    0x001C,    0x0003,    0x8070,    0x0000,
  560. X    0x001C,    0x0003,    0x8070,    0x0000,
  561. X    0x001C,    0x0003,    0x8070,    0x0000,
  562. X    0x001C,    0x0003,    0x8070,    0x0000,
  563. X    0x001C,    0x0003,    0x8070,    0x0000,
  564. X    0x001C,    0x0003,    0x8070,    0x0000,
  565. X    0x0000,    0x0000,    0x0000,    0x0000,
  566. X    0x0000,    0x0000,    0x0000,    0x0000,
  567. X    0x0000,    0x0000,    0x0000,    0x0000,
  568. X    0x0000,    0x0000,    0x0000,    0x0000,
  569. X    0x0010,    0x0000,    0x0000,    0x1000,
  570. X    0x0030,    0x0000,    0x0000,    0x1800,
  571. X    0x0050,    0x0000,    0x0000,    0x1C00,
  572. X    0x0090,    0x0000,    0x0000,    0x1E00,
  573. X    0x0110,    0x0000,    0x0000,    0x1F00,
  574. X    0x021F,    0xFFFF,    0xFFFF,    0xFE80,
  575. X    0x061E,    0x1E1E,    0x1E1E,    0x1E40,
  576. X    0x0E1E,    0x1E1E,    0x1E1E,    0x1E20,
  577. X    0x061E,    0x1E1E,    0x1E1E,    0x1E40,
  578. X    0x021F,    0xFFFF,    0xFFFF,    0xFE80,
  579. X    0x0110,    0x0000,    0x0000,    0x1F00,
  580. X    0x0090,    0x0000,    0x0000,    0x1E00,
  581. X    0x0050,    0x0000,    0x0000,    0x1C00,
  582. X    0x0030,    0x0000,    0x0000,    0x1800,
  583. X    0x0010,    0x0000,    0x0000,    0x1000,
  584. X    0x0000,    0x0000,    0x0000,    0x0000,
  585. X    0x0000,    0x0000,    0x0000,    0x0000,
  586. X    0x0000,    0x0000,    0x0000,    0x0000,
  587. X    0x0000,    0x0000,    0x0000,    0x0000,
  588. X    0x0000,    0x0000,    0x0000,    0x0000,
  589. X    0x0000,    0x0000,    0x0000,    0x0000,
  590. X    0x0000,    0x0000,    0x0000,    0x0000,
  591. X    0x0000,    0x0000,    0x0000,    0x0000,
  592. X    0x0000,    0x0000,    0x0000,    0x0000,
  593. X    0x0000,    0x0000,    0x0000,    0x0000,
  594. X    0x0000,    0x0000,    0x0000,    0x0000,
  595. X    0x0000,    0x0000,    0x0000,    0x0000,
  596. X    0x0000,    0x0000,    0x0000,    0x0000,
  597. X    0x0000,    0x0000,    0x0000,    0x0000,
  598. X    0x0000,    0x0000,    0x0000,    0x0000,
  599. X    0x0000,    0x0000,    0x0000,    0x0000,
  600. X    0x0000,    0x0000,    0x0000,    0x0000,
  601. X    0x0000,    0x0000,    0x0000,    0x0000,
  602. X    0x0000,    0x0000,    0x0000,    0x0000,
  603. X    0x0000,    0x0000,    0x0000,    0x0000,
  604. X    0x0000,    0x0000,    0x0000,    0x0000,
  605. SHAR_EOF
  606. chmod 0644 busy2.ftptool.icon ||
  607. echo 'restore of busy2.ftptool.icon failed'
  608. Wc_c="`wc -c < 'busy2.ftptool.icon'`"
  609. test 2190 -eq "$Wc_c" ||
  610.     echo 'busy2.ftptool.icon: original size 2190, current size' "$Wc_c"
  611. rm -f _shar_wnt_.tmp
  612. fi
  613. # ============= busy3.ftptool.icon ==============
  614. if test -f 'busy3.ftptool.icon' -a X"$1" != X"-c"; then
  615.     echo 'x - skipping busy3.ftptool.icon (File already exists)'
  616.     rm -f _shar_wnt_.tmp
  617. else
  618. > _shar_wnt_.tmp
  619. echo 'x - extracting busy3.ftptool.icon (Text)'
  620. sed 's/^X//' << 'SHAR_EOF' > 'busy3.ftptool.icon' &&
  621. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
  622. X */
  623. X    0x0000,    0x0000,    0x0000,    0x0000,
  624. X    0x0000,    0x0000,    0x0000,    0x0000,
  625. X    0x0000,    0x0000,    0x0000,    0x0000,
  626. X    0x0000,    0x0000,    0x0000,    0x0000,
  627. X    0x0000,    0x0000,    0x0000,    0x0000,
  628. X    0x001F,    0xFEFF,    0xFE7F,    0xF000,
  629. X    0x001F,    0xFEFF,    0xFE7F,    0xFC00,
  630. X    0x001C,    0x0003,    0x8070,    0x1C00,
  631. X    0x001C,    0x0003,    0x8070,    0x0E00,
  632. X    0x001C,    0x0003,    0x8070,    0x0E00,
  633. X    0x001C,    0x0003,    0x8070,    0x0E00,
  634. X    0x001C,    0x0003,    0x8070,    0x0E00,
  635. X    0x001C,    0x0003,    0x8070,    0x1C00,
  636. X    0x001F,    0xFC03,    0x807F,    0xFC00,
  637. X    0x001F,    0xFC03,    0x807F,    0xF800,
  638. X    0x001C,    0x0003,    0x8070,    0x0000,
  639. X    0x001C,    0x0003,    0x8070,    0x0000,
  640. X    0x001C,    0x0003,    0x8070,    0x0000,
  641. X    0x001C,    0x0003,    0x8070,    0x0000,
  642. X    0x001C,    0x0003,    0x8070,    0x0000,
  643. X    0x001C,    0x0003,    0x8070,    0x0000,
  644. X    0x001C,    0x0003,    0x8070,    0x0000,
  645. X    0x001C,    0x0003,    0x8070,    0x0000,
  646. X    0x001C,    0x0003,    0x8070,    0x0000,
  647. X    0x0000,    0x0000,    0x0000,    0x0000,
  648. X    0x0000,    0x0000,    0x0000,    0x0000,
  649. X    0x0000,    0x0000,    0x0000,    0x0000,
  650. X    0x0000,    0x0000,    0x0000,    0x0000,
  651. X    0x0010,    0x0000,    0x0000,    0x1000,
  652. X    0x0030,    0x0000,    0x0000,    0x1800,
  653. X    0x0050,    0x0000,    0x0000,    0x1400,
  654. X    0x0090,    0x0000,    0x0000,    0x1600,
  655. X    0x0190,    0x0000,    0x0000,    0x1700,
  656. X    0x039F,    0xFFFF,    0xFFFF,    0xF780,
  657. X    0x0787,    0x8787,    0x8787,    0x87C0,
  658. X    0x0F87,    0x8787,    0x8787,    0x87A0,
  659. X    0x0787,    0x8787,    0x8787,    0x87C0,
  660. X    0x039F,    0xFFFF,    0xFFFF,    0xF780,
  661. X    0x0190,    0x0000,    0x0000,    0x1700,
  662. X    0x0090,    0x0000,    0x0000,    0x1600,
  663. X    0x0050,    0x0000,    0x0000,    0x1400,
  664. X    0x0030,    0x0000,    0x0000,    0x1800,
  665. X    0x0010,    0x0000,    0x0000,    0x1000,
  666. X    0x0000,    0x0000,    0x0000,    0x0000,
  667. X    0x0000,    0x0000,    0x0000,    0x0000,
  668. X    0x0000,    0x0000,    0x0000,    0x0000,
  669. X    0x0000,    0x0000,    0x0000,    0x0000,
  670. X    0x0000,    0x0000,    0x0000,    0x0000,
  671. X    0x0000,    0x0000,    0x0000,    0x0000,
  672. X    0x0000,    0x0000,    0x0000,    0x0000,
  673. X    0x0000,    0x0000,    0x0000,    0x0000,
  674. X    0x0000,    0x0000,    0x0000,    0x0000,
  675. X    0x0000,    0x0000,    0x0000,    0x0000,
  676. X    0x0000,    0x0000,    0x0000,    0x0000,
  677. X    0x0000,    0x0000,    0x0000,    0x0000,
  678. X    0x0000,    0x0000,    0x0000,    0x0000,
  679. X    0x0000,    0x0000,    0x0000,    0x0000,
  680. X    0x0000,    0x0000,    0x0000,    0x0000,
  681. X    0x0000,    0x0000,    0x0000,    0x0000,
  682. X    0x0000,    0x0000,    0x0000,    0x0000,
  683. X    0x0000,    0x0000,    0x0000,    0x0000,
  684. X    0x0000,    0x0000,    0x0000,    0x0000,
  685. X    0x0000,    0x0000,    0x0000,    0x0000,
  686. X    0x0000,    0x0000,    0x0000,    0x0000,
  687. SHAR_EOF
  688. chmod 0644 busy3.ftptool.icon ||
  689. echo 'restore of busy3.ftptool.icon failed'
  690. Wc_c="`wc -c < 'busy3.ftptool.icon'`"
  691. test 2190 -eq "$Wc_c" ||
  692.     echo 'busy3.ftptool.icon: original size 2190, current size' "$Wc_c"
  693. rm -f _shar_wnt_.tmp
  694. fi
  695. # ============= busy4.ftptool.icon ==============
  696. if test -f 'busy4.ftptool.icon' -a X"$1" != X"-c"; then
  697.     echo 'x - skipping busy4.ftptool.icon (File already exists)'
  698.     rm -f _shar_wnt_.tmp
  699. else
  700. > _shar_wnt_.tmp
  701. echo 'x - extracting busy4.ftptool.icon (Text)'
  702. sed 's/^X//' << 'SHAR_EOF' > 'busy4.ftptool.icon' &&
  703. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
  704. X */
  705. X    0x0000,    0x0000,    0x0000,    0x0000,
  706. X    0x0000,    0x0000,    0x0000,    0x0000,
  707. X    0x0000,    0x0000,    0x0000,    0x0000,
  708. X    0x0000,    0x0000,    0x0000,    0x0000,
  709. X    0x0000,    0x0000,    0x0000,    0x0000,
  710. X    0x001F,    0xFEFF,    0xFE7F,    0xF000,
  711. X    0x001F,    0xFEFF,    0xFE7F,    0xFC00,
  712. X    0x001C,    0x0003,    0x8070,    0x1C00,
  713. X    0x001C,    0x0003,    0x8070,    0x0E00,
  714. X    0x001C,    0x0003,    0x8070,    0x0E00,
  715. X    0x001C,    0x0003,    0x8070,    0x0E00,
  716. X    0x001C,    0x0003,    0x8070,    0x0E00,
  717. X    0x001C,    0x0003,    0x8070,    0x1C00,
  718. X    0x001F,    0xFC03,    0x807F,    0xFC00,
  719. X    0x001F,    0xFC03,    0x807F,    0xF800,
  720. X    0x001C,    0x0003,    0x8070,    0x0000,
  721. X    0x001C,    0x0003,    0x8070,    0x0000,
  722. X    0x001C,    0x0003,    0x8070,    0x0000,
  723. X    0x001C,    0x0003,    0x8070,    0x0000,
  724. X    0x001C,    0x0003,    0x8070,    0x0000,
  725. X    0x001C,    0x0003,    0x8070,    0x0000,
  726. X    0x001C,    0x0003,    0x8070,    0x0000,
  727. X    0x001C,    0x0003,    0x8070,    0x0000,
  728. X    0x001C,    0x0003,    0x8070,    0x0000,
  729. X    0x0000,    0x0000,    0x0000,    0x0000,
  730. X    0x0000,    0x0000,    0x0000,    0x0000,
  731. X    0x0000,    0x0000,    0x0000,    0x0000,
  732. X    0x0000,    0x0000,    0x0000,    0x0000,
  733. X    0x0010,    0x0000,    0x0000,    0x1000,
  734. X    0x0030,    0x0000,    0x0000,    0x1800,
  735. X    0x0070,    0x0000,    0x0000,    0x1400,
  736. X    0x00F0,    0x0000,    0x0000,    0x1200,
  737. X    0x01F0,    0x0000,    0x0000,    0x1100,
  738. X    0x03FF,    0xFFFF,    0xFFFF,    0xF180,
  739. X    0x05E1,    0xE1E1,    0xE1E1,    0xE1C0,
  740. X    0x09E1,    0xE1E1,    0xE1E1,    0xE1E0,
  741. X    0x05E1,    0xE1E1,    0xE1E1,    0xE1C0,
  742. X    0x03FF,    0xFFFF,    0xFFFF,    0xF180,
  743. X    0x01F0,    0x0000,    0x0000,    0x1100,
  744. X    0x00F0,    0x0000,    0x0000,    0x1200,
  745. X    0x0070,    0x0000,    0x0000,    0x1400,
  746. X    0x0030,    0x0000,    0x0000,    0x1800,
  747. X    0x0010,    0x0000,    0x0000,    0x1000,
  748. X    0x0000,    0x0000,    0x0000,    0x0000,
  749. X    0x0000,    0x0000,    0x0000,    0x0000,
  750. X    0x0000,    0x0000,    0x0000,    0x0000,
  751. X    0x0000,    0x0000,    0x0000,    0x0000,
  752. X    0x0000,    0x0000,    0x0000,    0x0000,
  753. X    0x0000,    0x0000,    0x0000,    0x0000,
  754. X    0x0000,    0x0000,    0x0000,    0x0000,
  755. X    0x0000,    0x0000,    0x0000,    0x0000,
  756. X    0x0000,    0x0000,    0x0000,    0x0000,
  757. X    0x0000,    0x0000,    0x0000,    0x0000,
  758. X    0x0000,    0x0000,    0x0000,    0x0000,
  759. X    0x0000,    0x0000,    0x0000,    0x0000,
  760. X    0x0000,    0x0000,    0x0000,    0x0000,
  761. X    0x0000,    0x0000,    0x0000,    0x0000,
  762. X    0x0000,    0x0000,    0x0000,    0x0000,
  763. X    0x0000,    0x0000,    0x0000,    0x0000,
  764. X    0x0000,    0x0000,    0x0000,    0x0000,
  765. X    0x0000,    0x0000,    0x0000,    0x0000,
  766. X    0x0000,    0x0000,    0x0000,    0x0000,
  767. X    0x0000,    0x0000,    0x0000,    0x0000,
  768. X    0x0000,    0x0000,    0x0000,    0x0000,
  769. SHAR_EOF
  770. chmod 0644 busy4.ftptool.icon ||
  771. echo 'restore of busy4.ftptool.icon failed'
  772. Wc_c="`wc -c < 'busy4.ftptool.icon'`"
  773. test 2190 -eq "$Wc_c" ||
  774.     echo 'busy4.ftptool.icon: original size 2190, current size' "$Wc_c"
  775. rm -f _shar_wnt_.tmp
  776. fi
  777. # ============= change_dir.h ==============
  778. if test -f 'change_dir.h' -a X"$1" != X"-c"; then
  779.     echo 'x - skipping change_dir.h (File already exists)'
  780.     rm -f _shar_wnt_.tmp
  781. else
  782. > _shar_wnt_.tmp
  783. echo 'x - extracting change_dir.h (Text)'
  784. sed 's/^X//' << 'SHAR_EOF' > 'change_dir.h' &&
  785. X
  786. #ifdef USE_PROTOTYPES
  787. X
  788. int    checkdir(char *dirname);
  789. int dirwasmodified(void);
  790. int change_local_dir(char *s, int force);
  791. int change_remote_dir(char *s, int force);
  792. char *expand_dirname(char *arg);
  793. int    delete_local_dir(char *dir);
  794. int delete_local_file(char *filename, int (*deletefunc)(const char *filename));
  795. int    delete_remote_dir(char *dir);
  796. int delete_remote_file(char *filename, char *deletecmd);
  797. int up_one_level(void);
  798. X
  799. #else
  800. X
  801. int    checkdir();
  802. int dirwasmodified();
  803. int change_local_dir();
  804. int change_remote_dir();
  805. char *expand_dirname();
  806. int    delete_local_dir();
  807. int delete_local_file();
  808. int    delete_remote_dir();
  809. int delete_remote_file();
  810. int up_one_level();
  811. X
  812. #endif
  813. SHAR_EOF
  814. chmod 0644 change_dir.h ||
  815. echo 'restore of change_dir.h failed'
  816. Wc_c="`wc -c < 'change_dir.h'`"
  817. test 672 -eq "$Wc_c" ||
  818.     echo 'change_dir.h: original size 672, current size' "$Wc_c"
  819. rm -f _shar_wnt_.tmp
  820. fi
  821. # ============= config.h ==============
  822. if test -f 'config.h' -a X"$1" != X"-c"; then
  823.     echo 'x - skipping config.h (File already exists)'
  824.     rm -f _shar_wnt_.tmp
  825. else
  826. > _shar_wnt_.tmp
  827. echo 'x - extracting config.h (Text)'
  828. sed 's/^X//' << 'SHAR_EOF' > 'config.h' &&
  829. /* 
  830. X If you use Sun Consulting's Proxy FTP, set this up appropriately
  831. X    DEFAULT_PROXY is the ftp gateway
  832. */
  833. #define DEFAULT_HOST  "yavin.EBay"
  834. #define DEFAULT_PROXY "sun-barr.EBay"
  835. X
  836. #define DEFAULT_PARSE "PERMS LINKS USER GROUP SIZE MONTH DAY TIME NAME"
  837. X
  838. /* define this to be a global .ftptoolrc */
  839. /* ftptool will load this if $HOME/.ftptoolrc does not exist */
  840. #define GLOBAL_FTPTOOLRC "/usr/local/lib/ftptoolrc"
  841. X
  842. /* The following are the filenames that ftptool will create in the */
  843. /* users home directory. You probably don't want to change this. */
  844. #define FTPTOOL_RC            ".ftptoolrc"
  845. #define FTPTOOL_LAYOUT        ".ftptoollayout"
  846. #define FTPTOOL_DEFAULTS    ".ftptooldefaults"
  847. X
  848. #if defined(SYSV) || defined(SYSV386)
  849. X
  850. #    include <memory.h>
  851. X
  852. #    define bzero(b, length)            memset(b, '\0', length)
  853. #    define bcopy(b1, b2, length)    memcpy(b2, b1, length)
  854. X
  855. #else
  856. X
  857. void bzero();
  858. void bcopy();
  859. X
  860. #endif
  861. X
  862. /* USE_PROTOTYPES also implies you use <stdarg.h> and not <varargs.h> */
  863. #ifndef USE_PROTOTYPES
  864. #if __STDC__ == 1 || defined(SYSV) || defined(SVR4) || defined(SYSV386)
  865. #define USE_PROTOTYPES
  866. #endif
  867. #endif
  868. X
  869. /* Define NEED_STRCASECMP if you don't have it */
  870. #ifndef NEED_STRCASECMP
  871. #if defined(SYSV386)
  872. #define NEED_STRCASECMP
  873. #endif
  874. #endif
  875. X
  876. /* The following are used to determine the max size of ftptoolrc */
  877. /* fields that ftptool can read in */
  878. #define MAXLOGINLEN        64
  879. #define MAXPASSWORDLEN    1024
  880. #define MAXCOMMENTLEN    1024
  881. #define MAXALIASLEN        1024
  882. X
  883. /* The following are the default port numbers to use if ftptool cannot */
  884. /* find the 'ftp,tcp' service or 'ftp-passthru, tcp service'. */
  885. /* ftp is usually 21, ftp-passthru can vary */
  886. #define FTP_PORT    21
  887. #define FTP_PASSTHRU_PORT    4666
  888. X
  889. #ifndef S_ISLNK
  890. #define    S_ISLNK(mode)    ((mode & S_IFMT) == S_IFLNK)
  891. #endif
  892. SHAR_EOF
  893. chmod 0644 config.h ||
  894. echo 'restore of config.h failed'
  895. Wc_c="`wc -c < 'config.h'`"
  896. test 1749 -eq "$Wc_c" ||
  897.     echo 'config.h: original size 1749, current size' "$Wc_c"
  898. rm -f _shar_wnt_.tmp
  899. fi
  900. # ============= create_main.h ==============
  901. if test -f 'create_main.h' -a X"$1" != X"-c"; then
  902.     echo 'x - skipping create_main.h (File already exists)'
  903.     rm -f _shar_wnt_.tmp
  904. else
  905. > _shar_wnt_.tmp
  906. echo 'x - extracting create_main.h (Text)'
  907. sed 's/^X//' << 'SHAR_EOF' > 'create_main.h' &&
  908. X
  909. #ifdef USE_PROTOTYPES
  910. X
  911. void create_base_window(void);
  912. void create_property_window(void);
  913. void create_local_window(void);
  914. X
  915. #else
  916. X
  917. void create_base_window();
  918. void create_property_window();
  919. void create_local_window();
  920. X
  921. #endif
  922. SHAR_EOF
  923. chmod 0644 create_main.h ||
  924. echo 'restore of create_main.h failed'
  925. Wc_c="`wc -c < 'create_main.h'`"
  926. test 224 -eq "$Wc_c" ||
  927.     echo 'create_main.h: original size 224, current size' "$Wc_c"
  928. rm -f _shar_wnt_.tmp
  929. fi
  930. # ============= create_other.h ==============
  931. if test -f 'create_other.h' -a X"$1" != X"-c"; then
  932.     echo 'x - skipping create_other.h (File already exists)'
  933.     rm -f _shar_wnt_.tmp
  934. else
  935. > _shar_wnt_.tmp
  936. echo 'x - extracting create_other.h (Text)'
  937. sed 's/^X//' << 'SHAR_EOF' > 'create_other.h' &&
  938. X
  939. #ifdef USE_PROTOTYPES
  940. X
  941. void create_host_popup(void);
  942. void create_session_log(void);
  943. void create_about_window(void);
  944. void create_feedback_window(void);
  945. void create_file_property_window(struct file_property_window *file_props, 
  946. X    char *header);
  947. void create_tar_file_popup(void);
  948. void create_load_save_popup(Frame *framep, Panel *textp, Panel *buttonp);
  949. void create_schedule_window(void);
  950. void create_status_window(void);
  951. X
  952. #else
  953. X
  954. void create_host_popup();
  955. void create_session_log();
  956. void create_about_window();
  957. void create_feedback_window();
  958. void create_file_property_window();
  959. void create_tar_file_popup();
  960. void create_load_save_popup();
  961. void create_schedule_window();
  962. void create_status_window();
  963. X
  964. #endif
  965. SHAR_EOF
  966. chmod 0644 create_other.h ||
  967. echo 'restore of create_other.h failed'
  968. Wc_c="`wc -c < 'create_other.h'`"
  969. test 704 -eq "$Wc_c" ||
  970.     echo 'create_other.h: original size 704, current size' "$Wc_c"
  971. rm -f _shar_wnt_.tmp
  972. fi
  973. # ============= dircache.h ==============
  974. if test -f 'dircache.h' -a X"$1" != X"-c"; then
  975.     echo 'x - skipping dircache.h (File already exists)'
  976.     rm -f _shar_wnt_.tmp
  977. else
  978. > _shar_wnt_.tmp
  979. echo 'x - extracting dircache.h (Text)'
  980. sed 's/^X//' << 'SHAR_EOF' > 'dircache.h' &&
  981. X
  982. #ifdef USE_PROTOTYPES
  983. X
  984. int dircache_add(struct dircache *dcache, char *name, struct dirlist *dlist);
  985. void dircache_delete(struct dircache *dcache, char *name);
  986. void dircache_shrink(struct dircache *dcache, int newsize);
  987. void free_dircache(struct dircache *dcache);
  988. struct dirlist *cache_lookup(struct dircache *dcache, char *dirname);
  989. struct dirlist_header *new_dirlist_header(char *name, struct dirlist *dlist);
  990. void free_dirlist_header(struct dirlist_header *head);
  991. void show_dircache(struct dircache *dcache);
  992. X
  993. #else
  994. X
  995. int dircache_add();
  996. void dircache_delete();
  997. void dircache_shrink();
  998. void free_dircache();
  999. struct dirlist *cache_lookup();
  1000. struct dirlist_header *new_dirlist_header();
  1001. void free_dirlist_header();
  1002. void show_dircache();
  1003. X
  1004. #endif
  1005. SHAR_EOF
  1006. chmod 0644 dircache.h ||
  1007. echo 'restore of dircache.h failed'
  1008. Wc_c="`wc -c < 'dircache.h'`"
  1009. test 747 -eq "$Wc_c" ||
  1010.     echo 'dircache.h: original size 747, current size' "$Wc_c"
  1011. rm -f _shar_wnt_.tmp
  1012. fi
  1013. # ============= dircache_struct.h ==============
  1014. if test -f 'dircache_struct.h' -a X"$1" != X"-c"; then
  1015.     echo 'x - skipping dircache_struct.h (File already exists)'
  1016.     rm -f _shar_wnt_.tmp
  1017. else
  1018. > _shar_wnt_.tmp
  1019. echo 'x - extracting dircache_struct.h (Text)'
  1020. sed 's/^X//' << 'SHAR_EOF' > 'dircache_struct.h' &&
  1021. struct dirlist_header {
  1022. X    struct dirlist_header *next;
  1023. X    struct dirlist_header *prev;
  1024. X    struct dirlist *dlist;
  1025. X    char    *name;
  1026. X    int        mtime;
  1027. };
  1028. X
  1029. struct dircache {
  1030. X    int        ndirs; 
  1031. X    struct dirlist_header *first;
  1032. X    struct dirlist_header *last;
  1033. };
  1034. X
  1035. SHAR_EOF
  1036. chmod 0644 dircache_struct.h ||
  1037. echo 'restore of dircache_struct.h failed'
  1038. Wc_c="`wc -c < 'dircache_struct.h'`"
  1039. test 235 -eq "$Wc_c" ||
  1040.     echo 'dircache_struct.h: original size 235, current size' "$Wc_c"
  1041. rm -f _shar_wnt_.tmp
  1042. fi
  1043. # ============= directory.pr ==============
  1044. if test -f 'directory.pr' -a X"$1" != X"-c"; then
  1045.     echo 'x - skipping directory.pr (File already exists)'
  1046.     rm -f _shar_wnt_.tmp
  1047. else
  1048. > _shar_wnt_.tmp
  1049. echo 'x - extracting directory.pr (Text)'
  1050. sed 's/^X//' << 'SHAR_EOF' > 'directory.pr' &&
  1051. /* Format_version=1, Width=16, Height=16, Depth=1, Valid_bits_per_item=16
  1052. X */
  1053. X    0x0000,0x0000,0x0000,0x003C,0x0042,0xFF81,0x8001,0x8001,
  1054. X    0x8001,0x8001,0x8001,0x8001,0x8001,0x8001,0x8001,0xFFFF
  1055. X
  1056. SHAR_EOF
  1057. chmod 0644 directory.pr ||
  1058. echo 'restore of directory.pr failed'
  1059. Wc_c="`wc -c < 'directory.pr'`"
  1060. test 194 -eq "$Wc_c" ||
  1061.     echo 'directory.pr: original size 194, current size' "$Wc_c"
  1062. rm -f _shar_wnt_.tmp
  1063. fi
  1064. # ============= dirlist.h ==============
  1065. if test -f 'dirlist.h' -a X"$1" != X"-c"; then
  1066.     echo 'x - skipping dirlist.h (File already exists)'
  1067.     rm -f _shar_wnt_.tmp
  1068. else
  1069. > _shar_wnt_.tmp
  1070. echo 'x - extracting dirlist.h (Text)'
  1071. sed 's/^X//' << 'SHAR_EOF' > 'dirlist.h' &&
  1072. X
  1073. #ifdef USE_PROTOTYPES
  1074. X
  1075. struct dirlist *new_dirlist(char *name, char *date, char *owner, 
  1076. X    char *group, mode_t mode, size_t size);
  1077. struct dirlist *add_dirname(struct dirlist *head, char *name, char *date, 
  1078. X    char *owner, char *group, mode_t mode, size_t size, int sort_mode, 
  1079. X    int sort_direction);
  1080. struct dirlist *add_dirlist_struct(struct dirlist *head, 
  1081. X    struct dirlist *dlist, int sort_mode, int sort_direction);
  1082. void free_dirlist(struct dirlist *head);
  1083. struct dirlist *sortupbyname(struct dirlist *head, char *name);
  1084. struct dirlist *sortupbydate(struct dirlist *head, char *date);
  1085. struct dirlist *sortupbysize(struct dirlist *head, size_t size);
  1086. long    datetotime(char *date);
  1087. int isearlier(char *date1, char *date2);
  1088. struct dirlist *sortdownbyname(struct dirlist *head, char *name);
  1089. struct dirlist *sortdownbydate(struct dirlist *head, char *date);
  1090. struct dirlist *sortdownbysize(struct dirlist *head, size_t size);
  1091. void clear_slist(Panel panel_list);
  1092. void actual_dirlist_to_slist(Panel panel_list, struct dirlist *head, 
  1093. X    mode_t type, int showdotfiles);
  1094. void dirlist_to_slist(Panel panel_list, struct dirlist *head);
  1095. void add_dotdot(struct dirlist *head);
  1096. struct dirlist *sort_dirlist(struct dirlist *head, int sort_mode, 
  1097. X    int sort_direction);
  1098. void hour_time(char *date, struct tm *tm);
  1099. void year_time(char *date, struct tm *tm);
  1100. X
  1101. #else
  1102. X
  1103. struct dirlist *new_dirlist();
  1104. struct dirlist *add_dirname();
  1105. struct dirlist *add_dirlist_struct();
  1106. void free_dirlist();
  1107. struct dirlist *sortupbyname();
  1108. struct dirlist *sortupbydate();
  1109. struct dirlist *sortupbysize();
  1110. long    datetotime();
  1111. int isearlier();
  1112. struct dirlist *sortdownbyname();
  1113. struct dirlist *sortdownbydate();
  1114. struct dirlist *sortdownbysize();
  1115. void clear_slist();
  1116. void actual_dirlist_to_slist();
  1117. void dirlist_to_slist();
  1118. void add_dotdot();
  1119. struct dirlist *sort_dirlist();
  1120. void hour_time();
  1121. void year_time();
  1122. X
  1123. #endif
  1124. SHAR_EOF
  1125. chmod 0644 dirlist.h ||
  1126. echo 'restore of dirlist.h failed'
  1127. Wc_c="`wc -c < 'dirlist.h'`"
  1128. test 1869 -eq "$Wc_c" ||
  1129.     echo 'dirlist.h: original size 1869, current size' "$Wc_c"
  1130. rm -f _shar_wnt_.tmp
  1131. fi
  1132. # ============= dirlist_struct.h ==============
  1133. if test -f 'dirlist_struct.h' -a X"$1" != X"-c"; then
  1134.     echo 'x - skipping dirlist_struct.h (File already exists)'
  1135.     rm -f _shar_wnt_.tmp
  1136. else
  1137. > _shar_wnt_.tmp
  1138. echo 'x - extracting dirlist_struct.h (Text)'
  1139. sed 's/^X//' << 'SHAR_EOF' > 'dirlist_struct.h' &&
  1140. #define DATELEN 20
  1141. X
  1142. struct dirlist {
  1143. X    struct dirlist *next;
  1144. X    char    *name;
  1145. X    char    *date;
  1146. X    char    *owner;
  1147. X    char    *group;
  1148. X    mode_t    mode;
  1149. X    size_t    size;
  1150. };
  1151. X
  1152. #define SORTBYNAME    0
  1153. #define SORTBYDATE    1
  1154. #define SORTBYSIZE    2
  1155. X
  1156. #define ASCENDING    0
  1157. #define DESCENDING    1
  1158. X
  1159. #define GROUPBYTYPE 0
  1160. #define    GROUPNONE    1
  1161. X
  1162. SHAR_EOF
  1163. chmod 0644 dirlist_struct.h ||
  1164. echo 'restore of dirlist_struct.h failed'
  1165. Wc_c="`wc -c < 'dirlist_struct.h'`"
  1166. test 295 -eq "$Wc_c" ||
  1167.     echo 'dirlist_struct.h: original size 295, current size' "$Wc_c"
  1168. rm -f _shar_wnt_.tmp
  1169. fi
  1170. # ============= dofuncs.h ==============
  1171. if test -f 'dofuncs.h' -a X"$1" != X"-c"; then
  1172.     echo 'x - skipping dofuncs.h (File already exists)'
  1173.     rm -f _shar_wnt_.tmp
  1174. else
  1175. > _shar_wnt_.tmp
  1176. echo 'x - extracting dofuncs.h (Text)'
  1177. sed 's/^X//' << 'SHAR_EOF' > 'dofuncs.h' &&
  1178. X
  1179. #define DOCONNECT            1
  1180. #define DOGET                2
  1181. #define DOPUT                3
  1182. #define DOLOCALVIEW            4
  1183. #define DOREMOTEVIEW        5
  1184. #define DOUNCOMPRESS        6
  1185. #define DOEXTRACT            7
  1186. #define DOCOMPRESS            8
  1187. #define DOGETTARFILENAME    9
  1188. #define DOTAR                10
  1189. #define DOREMOTECD            11
  1190. #define DOREMOTECDFORCE        12
  1191. #define DOBATCHGET            13
  1192. #define DOBATCHPUT            14
  1193. #define DOSCHEDULE            15
  1194. #define DODIR                16
  1195. #define DOLS                17
  1196. #define DOREMOTEDOUBLECLICK    18
  1197. #define DOQUIT                (-1)
  1198. X
  1199. #ifdef USE_PROTOTYPES
  1200. X
  1201. int    doconnect(void);
  1202. int openhost(char *ftphost, char *login, char *password, int port);
  1203. void doget(void);
  1204. void doput(void);
  1205. void dofileop(int which);
  1206. void doview(int which);
  1207. void create_tar_file(void);
  1208. void doremotecd(int force);
  1209. X
  1210. #else
  1211. X
  1212. int    doconnect();
  1213. int openhost();
  1214. void doget();
  1215. void doput();
  1216. void dofileop();
  1217. void doview();
  1218. void create_tar_file();
  1219. void doremotecd();
  1220. X
  1221. #endif
  1222. SHAR_EOF
  1223. chmod 0644 dofuncs.h ||
  1224. echo 'restore of dofuncs.h failed'
  1225. Wc_c="`wc -c < 'dofuncs.h'`"
  1226. test 849 -eq "$Wc_c" ||
  1227.     echo 'dofuncs.h: original size 849, current size' "$Wc_c"
  1228. rm -f _shar_wnt_.tmp
  1229. fi
  1230. # ============= dotdot.pr ==============
  1231. if test -f 'dotdot.pr' -a X"$1" != X"-c"; then
  1232.     echo 'x - skipping dotdot.pr (File already exists)'
  1233.     rm -f _shar_wnt_.tmp
  1234. else
  1235. > _shar_wnt_.tmp
  1236. echo 'x - extracting dotdot.pr (Text)'
  1237. sed 's/^X//' << 'SHAR_EOF' > 'dotdot.pr' &&
  1238. /* Format_version=1, Width=16, Height=16, Depth=1, Valid_bits_per_item=16
  1239. X */
  1240. X    0x0180,
  1241. X    0x03C0,
  1242. X    0x07E0,
  1243. X    0x0FF0,
  1244. X    0x1FF8,
  1245. X    0x3FFC,
  1246. X    0x7FFE,
  1247. X    0xFFFF,
  1248. X    0x07E0,
  1249. X    0x07E0,
  1250. X    0x07E0,
  1251. X    0x07E0,
  1252. X    0x07E0,
  1253. X    0x07E0,
  1254. X    0x07E0,
  1255. X    0x07E0
  1256. SHAR_EOF
  1257. chmod 0644 dotdot.pr ||
  1258. echo 'restore of dotdot.pr failed'
  1259. Wc_c="`wc -c < 'dotdot.pr'`"
  1260. test 221 -eq "$Wc_c" ||
  1261.     echo 'dotdot.pr: original size 221, current size' "$Wc_c"
  1262. rm -f _shar_wnt_.tmp
  1263. fi
  1264. # ============= event.h ==============
  1265. if test -f 'event.h' -a X"$1" != X"-c"; then
  1266.     echo 'x - skipping event.h (File already exists)'
  1267.     rm -f _shar_wnt_.tmp
  1268. else
  1269. > _shar_wnt_.tmp
  1270. echo 'x - extracting event.h (Text)'
  1271. sed 's/^X//' << 'SHAR_EOF' > 'event.h' &&
  1272. X
  1273. #ifdef USE_PROTOTYPES
  1274. X
  1275. void local_cd_select(void);
  1276. void local_cd_text(void);
  1277. void local_cd_dotdot(void);
  1278. void remote_cd_select(void);
  1279. void remote_cd_text(void);
  1280. void remote_cd_dotdot(void);
  1281. Notify_value destroy_func(Notify_client client, Destroy_status status);
  1282. Notify_value sig_func(void);
  1283. void cycle_busy_icon(void);
  1284. void start_busy_cycle(void);
  1285. void end_busy_cycle(void);
  1286. void props_event_proc(Panel panel, Event *event);
  1287. void base_event_proc(Xv_Window window, Event *event);
  1288. void resize_window(Panel panel, Panel_item list, Panel_item dismiss);
  1289. void local_event_proc(Xv_Window window, Event *event);
  1290. void schedule_event_proc(Xv_Window window, Event *event);
  1291. void host_event_proc(Xv_Window window, Event *event);
  1292. void send_noop_command(void);
  1293. void idle_timer_on(void);
  1294. void idle_timer_off(void);
  1295. X
  1296. #else
  1297. X
  1298. void local_cd_select();
  1299. void local_cd_text();
  1300. void local_cd_dotdot();
  1301. void remote_cd_select();
  1302. void remote_cd_text();
  1303. void remote_cd_dotdot();
  1304. Notify_value destroy_func();
  1305. Notify_value sig_func();
  1306. void cycle_busy_icon();
  1307. void start_busy_cycle();
  1308. void end_busy_cycle();
  1309. void props_event_proc();
  1310. void base_event_proc();
  1311. void resize_window();
  1312. void local_event_proc();
  1313. void schedule_event_proc();
  1314. void host_event_proc();
  1315. void send_noop_command();
  1316. void idle_timer_on();
  1317. void idle_timer_off();
  1318. X
  1319. #endif
  1320. SHAR_EOF
  1321. chmod 0644 event.h ||
  1322. echo 'restore of event.h failed'
  1323. Wc_c="`wc -c < 'event.h'`"
  1324. test 1304 -eq "$Wc_c" ||
  1325.     echo 'event.h: original size 1304, current size' "$Wc_c"
  1326. rm -f _shar_wnt_.tmp
  1327. fi
  1328. # ============= file.pr ==============
  1329. if test -f 'file.pr' -a X"$1" != X"-c"; then
  1330.     echo 'x - skipping file.pr (File already exists)'
  1331.     rm -f _shar_wnt_.tmp
  1332. else
  1333. > _shar_wnt_.tmp
  1334. echo 'x - extracting file.pr (Text)'
  1335. sed 's/^X//' << 'SHAR_EOF' > 'file.pr' &&
  1336. /* Format_version=1, Width=16, Height=16, Depth=1, Valid_bits_per_item=16
  1337. X */
  1338. X    0x7FE0,0x4030,0x4028,0x4024,0x403E,0x4002,0x4002,0x4002,
  1339. X    0x4002,0x4002,0x4002,0x4002,0x4002,0x4002,0x4002,0x7FFE
  1340. X
  1341. SHAR_EOF
  1342. chmod 0644 file.pr ||
  1343. echo 'restore of file.pr failed'
  1344. Wc_c="`wc -c < 'file.pr'`"
  1345. test 194 -eq "$Wc_c" ||
  1346.     echo 'file.pr: original size 194, current size' "$Wc_c"
  1347. rm -f _shar_wnt_.tmp
  1348. fi
  1349. # ============= ftptool.icon ==============
  1350. if test -f 'ftptool.icon' -a X"$1" != X"-c"; then
  1351.     echo 'x - skipping ftptool.icon (File already exists)'
  1352.     rm -f _shar_wnt_.tmp
  1353. else
  1354. > _shar_wnt_.tmp
  1355. echo 'x - extracting ftptool.icon (Text)'
  1356. sed 's/^X//' << 'SHAR_EOF' > 'ftptool.icon' &&
  1357. /* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
  1358. X */
  1359. X    0x0000,    0x0000,    0x0000,    0x0000,
  1360. X    0x0000,    0x0000,    0x0000,    0x0000,
  1361. X    0x0000,    0x0000,    0x0000,    0x0000,
  1362. X    0x0000,    0x0000,    0x0000,    0x0000,
  1363. X    0x0000,    0x0000,    0x0000,    0x0000,
  1364. X    0x001F,    0xFEFF,    0xFE7F,    0xF000,
  1365. X    0x001F,    0xFEFF,    0xFE7F,    0xFC00,
  1366. X    0x001C,    0x0003,    0x8070,    0x1C00,
  1367. X    0x001C,    0x0003,    0x8070,    0x0E00,
  1368. X    0x001C,    0x0003,    0x8070,    0x0E00,
  1369. X    0x001C,    0x0003,    0x8070,    0x0E00,
  1370. X    0x001C,    0x0003,    0x8070,    0x0E00,
  1371. X    0x001C,    0x0003,    0x8070,    0x1C00,
  1372. X    0x001F,    0xFC03,    0x807F,    0xFC00,
  1373. X    0x001F,    0xFC03,    0x807F,    0xF800,
  1374. X    0x001C,    0x0003,    0x8070,    0x0000,
  1375. X    0x001C,    0x0003,    0x8070,    0x0000,
  1376. X    0x001C,    0x0003,    0x8070,    0x0000,
  1377. X    0x001C,    0x0003,    0x8070,    0x0000,
  1378. X    0x001C,    0x0003,    0x8070,    0x0000,
  1379. X    0x001C,    0x0003,    0x8070,    0x0000,
  1380. X    0x001C,    0x0003,    0x8070,    0x0000,
  1381. X    0x001C,    0x0003,    0x8070,    0x0000,
  1382. X    0x001C,    0x0003,    0x8070,    0x0000,
  1383. X    0x0000,    0x0000,    0x0000,    0x0000,
  1384. X    0x0000,    0x0000,    0x0000,    0x0000,
  1385. X    0x0000,    0x0000,    0x0000,    0x0000,
  1386. X    0x0000,    0x0000,    0x0000,    0x0000,
  1387. X    0x0010,    0x0000,    0x0000,    0x1000,
  1388. X    0x0030,    0x0000,    0x0000,    0x1800,
  1389. X    0x0050,    0x0000,    0x0000,    0x1400,
  1390. X    0x0090,    0x0000,    0x0000,    0x1200,
  1391. X    0x0110,    0x0000,    0x0000,    0x1100,
  1392. X    0x021F,    0xFFFF,    0xFFFF,    0xF080,
  1393. X    0x0400,    0x0000,    0x0000,    0x0040,
  1394. X    0x0800,    0x0000,    0x0000,    0x0020,
  1395. X    0x0400,    0x0000,    0x0000,    0x0040,
  1396. X    0x021F,    0xFFFF,    0xFFFF,    0xF080,
  1397. X    0x0110,    0x0000,    0x0000,    0x1100,
  1398. X    0x0090,    0x0000,    0x0000,    0x1200,
  1399. X    0x0050,    0x0000,    0x0000,    0x1400,
  1400. X    0x0030,    0x0000,    0x0000,    0x1800,
  1401. X    0x0010,    0x0000,    0x0000,    0x1000,
  1402. X    0x0000,    0x0000,    0x0000,    0x0000,
  1403. X    0x0000,    0x0000,    0x0000,    0x0000,
  1404. X    0x0000,    0x0000,    0x0000,    0x0000,
  1405. X    0x0000,    0x0000,    0x0000,    0x0000,
  1406. X    0x0000,    0x0000,    0x0000,    0x0000,
  1407. X    0x0000,    0x0000,    0x0000,    0x0000,
  1408. X    0x0000,    0x0000,    0x0000,    0x0000,
  1409. X    0x0000,    0x0000,    0x0000,    0x0000,
  1410. X    0x0000,    0x0000,    0x0000,    0x0000,
  1411. X    0x0000,    0x0000,    0x0000,    0x0000,
  1412. X    0x0000,    0x0000,    0x0000,    0x0000,
  1413. X    0x0000,    0x0000,    0x0000,    0x0000,
  1414. X    0x0000,    0x0000,    0x0000,    0x0000,
  1415. X    0x0000,    0x0000,    0x0000,    0x0000,
  1416. X    0x0000,    0x0000,    0x0000,    0x0000,
  1417. X    0x0000,    0x0000,    0x0000,    0x0000,
  1418. X    0x0000,    0x0000,    0x0000,    0x0000,
  1419. X    0x0000,    0x0000,    0x0000,    0x0000,
  1420. X    0x0000,    0x0000,    0x0000,    0x0000,
  1421. X    0x0000,    0x0000,    0x0000,    0x0000,
  1422. X    0x0000,    0x0000,    0x0000,    0x0000,
  1423. SHAR_EOF
  1424. chmod 0644 ftptool.icon ||
  1425. echo 'restore of ftptool.icon failed'
  1426. Wc_c="`wc -c < 'ftptool.icon'`"
  1427. test 2190 -eq "$Wc_c" ||
  1428.     echo 'ftptool.icon: original size 2190, current size' "$Wc_c"
  1429. rm -f _shar_wnt_.tmp
  1430. fi
  1431. # ============= host_list.h ==============
  1432. if test -f 'host_list.h' -a X"$1" != X"-c"; then
  1433.     echo 'x - skipping host_list.h (File already exists)'
  1434.     rm -f _shar_wnt_.tmp
  1435. else
  1436. > _shar_wnt_.tmp
  1437. echo 'x - extracting host_list.h (Text)'
  1438. sed 's/^X//' << 'SHAR_EOF' > 'host_list.h' &&
  1439. X
  1440. #ifdef USE_PROTOTYPES
  1441. X
  1442. void host_list_clean_proc(Panel_item item, Event *event);
  1443. void host_list_item_proc(Menu menu, Menu_item menu_item);
  1444. void host_list_add_proc(Menu menu, Menu_item menu_item);
  1445. void host_list_change_proc(Menu menu, Menu_item menu_item);
  1446. void host_save_proc(Menu menu, Menu_item menu_item);
  1447. void host_load_proc(Menu menu, Menu_item menu_item);
  1448. void update_timestamp(void);
  1449. void enter_host_info(int warnchange);
  1450. void host_list_delete_proc(Menu menu, Menu_item menu_item);
  1451. int host_list_use_proc(Panel_item item, char *string, 
  1452. X    Xv_opaque client_data, Panel_list_op op, Event *event);
  1453. struct hostlist *new_hostlist(void);
  1454. struct hostlist *add_hostalias(struct hostlist *head, char *aliasname, 
  1455. X    char *last_visited, char *proxy, char *host, char *login, 
  1456. X    char *password, int transfer_mode, char *remote_directory, 
  1457. X    char *local_directory, char *dir_parse, char *comment);
  1458. void free_hostlist(struct hostlist *head);
  1459. struct hostlist *gethostlist(struct hostlist *head, char *aliasname);
  1460. int delete_hostlist(struct hostlist *head, char *aliasname);
  1461. void read_ftptoolrc(void);
  1462. int read_entry(int version, FILE *fp, char *aliasname, char *last_visited, 
  1463. X    char *proxy, char *host, char *login, char *password, int *transfer_mode, 
  1464. X    char *rdir, char *ldir, char *dir_parse, char *comment);
  1465. void read_newftptoolrc(void);
  1466. void write_ftptoolrc(void);
  1467. int ftptoolrc_fd(int flags, int mode);
  1468. void reload_host_list_menu(struct hostlist *head);
  1469. char *create_dotfile(char *dotfile, int mode);
  1470. char *find_dotfile(char *dotfile);
  1471. int netrc_token(FILE *fp);
  1472. void    host_append_netrc_proc(void);
  1473. void add_netrc(char *machine, char *login, char *password);
  1474. char key_to_char(char *key);
  1475. char *ftptool_encrypt(char *s, char *key);
  1476. char *ftptool_decrypt(char *s, char *key);
  1477. char *old_ftptool_decrypt(char *s, char *key);
  1478. struct hostlist *sort_hostlist(struct hostlist *head);
  1479. X
  1480. #else
  1481. X
  1482. void host_list_clean_proc();
  1483. void host_list_item_proc();
  1484. void host_list_add_proc();
  1485. void host_list_change_proc();
  1486. void host_save_proc();
  1487. void host_load_proc();
  1488. void update_timestamp();
  1489. void enter_host_info();
  1490. void host_list_delete_proc();
  1491. int host_list_use_proc();
  1492. struct hostlist *new_hostlist();
  1493. struct hostlist *add_hostalias();
  1494. void free_hostlist();
  1495. struct hostlist *gethostlist();
  1496. int delete_hostlist();
  1497. void read_ftptoolrc();
  1498. int read_entry();
  1499. void read_newftptoolrc();
  1500. void write_ftptoolrc();
  1501. int ftptoolrc_fd();
  1502. void reload_host_list_menu();
  1503. char *create_dotfile();
  1504. char *find_dotfile();
  1505. int netrc_token();
  1506. void host_append_netrc_proc();
  1507. void add_netrc();
  1508. char key_to_char();
  1509. char *ftptool_encrypt();
  1510. char *ftptool_decrypt();
  1511. char *old_ftptool_decrypt();
  1512. struct hostlist *sort_hostlist();
  1513. X
  1514. #endif
  1515. SHAR_EOF
  1516. chmod 0644 host_list.h ||
  1517. echo 'restore of host_list.h failed'
  1518. Wc_c="`wc -c < 'host_list.h'`"
  1519. test 2682 -eq "$Wc_c" ||
  1520.     echo 'host_list.h: original size 2682, current size' "$Wc_c"
  1521. rm -f _shar_wnt_.tmp
  1522. fi
  1523. # ============= host_list_struct.h ==============
  1524. if test -f 'host_list_struct.h' -a X"$1" != X"-c"; then
  1525.     echo 'x - skipping host_list_struct.h (File already exists)'
  1526.     rm -f _shar_wnt_.tmp
  1527. else
  1528. > _shar_wnt_.tmp
  1529. echo 'x - extracting host_list_struct.h (Text)'
  1530. sed 's/^X//' << 'SHAR_EOF' > 'host_list_struct.h' &&
  1531. X
  1532. struct hostlist {
  1533. X    struct hostlist *next;
  1534. X    char    *aliasname;
  1535. X    char    *last_visited;
  1536. X    char    *proxy;
  1537. X    char    *host;
  1538. X    char    *login;
  1539. X    char    *password;
  1540. X    int        transfer_mode;
  1541. X    char    *remote_directory;
  1542. X    char    *local_directory;
  1543. X    char    *dir_parse;
  1544. X    char    *comment;
  1545. };
  1546. X
  1547. SHAR_EOF
  1548. chmod 0644 host_list_struct.h ||
  1549. echo 'restore of host_list_struct.h failed'
  1550. Wc_c="`wc -c < 'host_list_struct.h'`"
  1551. test 248 -eq "$Wc_c" ||
  1552.     echo 'host_list_struct.h: original size 248, current size' "$Wc_c"
  1553. rm -f _shar_wnt_.tmp
  1554. fi
  1555. # ============= lex.l ==============
  1556. if test -f 'lex.l' -a X"$1" != X"-c"; then
  1557.     echo 'x - skipping lex.l (File already exists)'
  1558.     rm -f _shar_wnt_.tmp
  1559. else
  1560. > _shar_wnt_.tmp
  1561. echo 'x - extracting lex.l (Text)'
  1562. sed 's/^X//' << 'SHAR_EOF' > 'lex.l' &&
  1563. %{
  1564. #undef ECHO
  1565. #include "ftptool.h"
  1566. X
  1567. #undef input
  1568. extern char *lex_string;
  1569. # define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):*lex_string++)==10?(yylineno++,yytchar):yytchar)==0?0:yytchar)
  1570. %}
  1571. %%
  1572. [ \t\n]+    {return(' ');}
  1573. PERMS        {return(PERMS);}
  1574. LINKS        {return(LINKS);}
  1575. USER        {return(USER);}
  1576. GROUP        {return(GROUP);}
  1577. SIZE        {return(SIZE);}
  1578. MONTH        {return(MONTH);}
  1579. DAY            {return(DAY);}
  1580. TIME        {return(TIME);}
  1581. NAME        {return(NAME);}
  1582. SKIP        {return(SKIP);}
  1583. NONUNIX        {return(NONUNIX);}
  1584. \<NAME\>        {return(LOWERNAME);}
  1585. .            {return(yytext[0]);}
  1586. %%
  1587. X
  1588. yywrap()
  1589. {
  1590. X    return 1;
  1591. }
  1592. SHAR_EOF
  1593. chmod 0644 lex.l ||
  1594. echo 'restore of lex.l failed'
  1595. Wc_c="`wc -c < 'lex.l'`"
  1596. test 562 -eq "$Wc_c" ||
  1597.     echo 'lex.l: original size 562, current size' "$Wc_c"
  1598. rm -f _shar_wnt_.tmp
  1599. fi
  1600. # ============= main.h ==============
  1601. if test -f 'main.h' -a X"$1" != X"-c"; then
  1602.     echo 'x - skipping main.h (File already exists)'
  1603.     rm -f _shar_wnt_.tmp
  1604. else
  1605. > _shar_wnt_.tmp
  1606. echo 'x - extracting main.h (Text)'
  1607. sed 's/^X//' << 'SHAR_EOF' > 'main.h' &&
  1608. #define BINARY  0
  1609. #define ASCII   1
  1610. #define TENEX   2
  1611. /*
  1612. #define IMAGE   3
  1613. #define EBCDIC  4
  1614. X */
  1615. X
  1616. #ifdef USE_PROTOTYPES
  1617. X
  1618. int main(int argc, char **argv);
  1619. void load_xdefaults(void);
  1620. void set_xdefaults(void);
  1621. void save_xdefaults(void);
  1622. X
  1623. #else
  1624. X
  1625. int main();
  1626. void load_xdefaults();
  1627. void set_xdefaults();
  1628. void save_xdefaults();
  1629. X
  1630. #endif
  1631. SHAR_EOF
  1632. chmod 0644 main.h ||
  1633. echo 'restore of main.h failed'
  1634. Wc_c="`wc -c < 'main.h'`"
  1635. test 330 -eq "$Wc_c" ||
  1636.     echo 'main.h: original size 330, current size' "$Wc_c"
  1637. rm -f _shar_wnt_.tmp
  1638. fi
  1639. # ============= menu_funcs.h ==============
  1640. if test -f 'menu_funcs.h' -a X"$1" != X"-c"; then
  1641.     echo 'x - skipping menu_funcs.h (File already exists)'
  1642.     rm -f _shar_wnt_.tmp
  1643. else
  1644. > _shar_wnt_.tmp
  1645. echo 'x - extracting menu_funcs.h (Text)'
  1646. sed 's/^X//' << 'SHAR_EOF' > 'menu_funcs.h' &&
  1647. X
  1648. #ifdef USE_PROTOTYPES
  1649. X
  1650. Menu file_menu_gen(Menu m, Menu_generate op);
  1651. Menu file_copy_menu_gen(Menu m, Menu_generate op);
  1652. Menu file_delete_menu_gen(Menu m, Menu_generate op);
  1653. Menu view_menu_gen(Menu m, Menu_generate op);
  1654. SHAR_EOF
  1655. true || echo 'restore of menu_funcs.h failed'
  1656. fi
  1657. echo 'End of  part 1'
  1658. echo 'File menu_funcs.h is continued in part 2'
  1659. echo 2 > _shar_seq_.tmp
  1660. exit 0
  1661. -- 
  1662. Senior Systems Scientist        mail: dcmartin@msi.com
  1663. Molecular Simulations, Inc.        uucp: uunet!dcmartin
  1664. 796 North Pastoria Avenue        at&t: 408/522-9236
  1665. Sunnyvale, California 94086        fax: 408/732-0831
  1666.