home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume19 / xgetftp / patch01 < prev    next >
Encoding:
Text File  |  1993-04-27  |  26.1 KB  |  770 lines

  1. Newsgroups: comp.sources.x
  2. From: salim@tigger.cs.colorado.edu (Salim Alam)
  3. Subject: v19i043:  xgetftp - Friendly anonymous ftp tool, Patch01
  4. Message-ID: <1993Mar16.220946.8877@sparky.imd.sterling.com>
  5. X-Md4-Signature: 8bcedad93d24866d6b14a8cf10dd2c9d
  6. Date: Tue, 16 Mar 1993 22:09:46 GMT
  7. Approved: chris@sparky.imd.sterling.com
  8.  
  9. Submitted-by: salim@tigger.cs.colorado.edu (Salim Alam)
  10. Posting-number: Volume 19, Issue 43
  11. Archive-name: xgetftp/patch01
  12. Environment: X11, OSF/Motif
  13. Patch-To: xgetftp: Volume 19, Issue 22-25
  14.  
  15.  
  16. This patches xgetftp from v1.0 to v1.1.  The patch fixes a couple of bugs
  17. that were causing compilation problems for some people.  Also, the Makefile
  18. included is more easily editable in case xmkmf doesnt work.
  19.  
  20. The patch is in context-diff format and can be applied by redirecting to
  21. the patch program.
  22.  
  23. Thanks.
  24.  
  25. -Salim
  26.  
  27. ---------------------- cut here ----------------------------------------
  28. #! /bin/sh
  29. # This is a shell archive, meaning:
  30. # 1. Remove everything above the #! /bin/sh line.
  31. # 2. Save the resulting text in a file.
  32. # 3. Execute the file with /bin/sh (not csh) to create the files:
  33. #    xgetftp-patch
  34. # This archive created: Fri Mar 12 16:07:34 1993
  35. export PATH; PATH=/bin:$PATH
  36. if test -f 'xgetftp-patch'
  37. then
  38.     echo shar: will not over-write existing file "'xgetftp-patch'"
  39. else
  40. cat << \SHAR_EOF > 'xgetftp-patch'
  41. Index: patchlevel.h
  42. *** xgetftp-v1.0/patchlevel.h    Mon Mar  8 13:55:12 1993
  43. --- xgetftp-v1.1/patchlevel.h    Fri Mar 12 15:47:15 1993
  44. ***************
  45. *** 1,2 ****
  46.   #define VERSION        1
  47. ! #define PATCHLEVEL    0
  48. --- 1,2 ----
  49.   #define VERSION        1
  50. ! #define PATCHLEVEL    1
  51. Index: Makefile
  52. *** xgetftp-v1.0/Makefile    Mon Mar  8 13:55:11 1993
  53. --- xgetftp-v1.1/Makefile    Fri Mar 12 15:47:13 1993
  54. ***************
  55. *** 1,478 ****
  56. - # Makefile generated by imake - do not edit!
  57. - # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  58.   #
  59. ! # The cpp used on this machine replaces all newlines and multiple tabs and
  60. ! # spaces in a macro expansion with a single space.  Imake tries to compensate
  61. ! # for this, but is not always successful.
  62.   #
  63. ! # -------------------------------------------------------------------------
  64. ! # Makefile generated from "Imake.tmpl" and </tmp/IIf.022747>
  65. ! # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  66. ! #
  67. ! # Platform-specific parameters may be set in the appropriate <vendor>.cf
  68. ! # configuration files.  Site-specific parameters should be set in the file
  69. ! # site.def.  Full rebuilds are recommended if any parameters are changed.
  70. ! #
  71. ! # If your C preprocessor does not define any unique symbols, you will need
  72. ! # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  73. ! # "make World" the first time).
  74.   #
  75. ! # -------------------------------------------------------------------------
  76. ! # site-specific configuration parameters that need to come before
  77. ! # the platform-specific parameters - edit site.def to change
  78. ! # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  79. ! # -------------------------------------------------------------------------
  80. ! # platform-specific configuration parameters - edit sun.cf to change
  81. ! # platform:  $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
  82. ! # operating system:  SunOS 4.1
  83. ! # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
  84. ! # -------------------------------------------------------------------------
  85. ! # site-specific configuration parameters that go after
  86. ! # the platform-specific parameters - edit site.def to change
  87. ! # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  88. !             SHELL = /bin/sh
  89. !               TOP = .
  90. !       CURRENT_DIR = .
  91. !                AR = ar clq
  92. !   BOOTSTRAPCFLAGS =
  93. !                CC = cc
  94. !                AS = as
  95. !          COMPRESS = compress
  96. !               CPP = /lib/cpp $(STD_CPP_DEFINES)
  97. !     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  98. !           INSTALL = install
  99. !                LD = ld
  100. !              LINT = lint
  101. !       LINTLIBFLAG = -C
  102. !          LINTOPTS = -axz
  103. !                LN = ln -s
  104. !              MAKE = make
  105. !                MV = mv
  106. !                CP = cp
  107. !            RANLIB = ranlib
  108. !   RANLIBINSTFLAGS =
  109. !                RM = rm -f
  110. !             TROFF = psroff
  111. !          MSMACROS = -ms
  112. !               TBL = tbl
  113. !               EQN = eqn
  114. !      STD_INCLUDES =
  115. !   STD_CPP_DEFINES =
  116. !       STD_DEFINES =
  117. !  EXTRA_LOAD_FLAGS =
  118. !   EXTRA_LIBRARIES =
  119. !              TAGS = ctags
  120. !     SHAREDCODEDEF = -DSHAREDCODE
  121. !          SHLIBDEF = -DSUNSHLIB
  122. !     PROTO_DEFINES =
  123. !      INSTPGMFLAGS =
  124. !      INSTBINFLAGS = -m 0755
  125. !      INSTUIDFLAGS = -m 4755
  126. !      INSTLIBFLAGS = -m 0644
  127. !      INSTINCFLAGS = -m 0444
  128. !      INSTMANFLAGS = -m 0444
  129. !      INSTDATFLAGS = -m 0444
  130. !     INSTKMEMFLAGS = -g kmem -m 2755
  131. !       PROJECTROOT = /usr/local/X.V11R5
  132. !      TOP_INCLUDES = -I$(INCROOT)
  133. !       CDEBUGFLAGS = -O
  134. !         CCOPTIONS = -pipe
  135. !       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  136. !        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  137. !            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  138. !         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  139. !            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  140. !         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
  141. !    LDCOMBINEFLAGS = -X -r
  142. !       DEPENDFLAGS =
  143. !         MACROFILE = sun.cf
  144. !            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  145. !     IMAKE_DEFINES =
  146. !          IRULESRC = $(CONFIGDIR)
  147. !         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  148. !      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  149. !             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  150. !             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  151. ! # -------------------------------------------------------------------------
  152. ! # X Window System Build Parameters
  153. ! # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  154. ! # -------------------------------------------------------------------------
  155. ! # X Window System make variables; this need to be coordinated with rules
  156. !           PATHSEP = /
  157. !         USRLIBDIR = /usr/local/X.V11R5/lib
  158. !            BINDIR = /usr/local/X.V11R5/bin
  159. !           INCROOT = /usr/local/X.V11R5/include
  160. !      BUILDINCROOT = $(TOP)
  161. !       BUILDINCDIR = $(BUILDINCROOT)/X11
  162. !       BUILDINCTOP = ..
  163. !            INCDIR = $(INCROOT)/X11
  164. !            ADMDIR = /usr/adm
  165. !            LIBDIR = $(USRLIBDIR)
  166. !         CONFIGDIR = $(LIBDIR)/config
  167. !        LINTLIBDIR = $(USRLIBDIR)/lint
  168. !           FONTDIR = $(LIBDIR)/fonts
  169. !          XINITDIR = $(LIBDIR)/xinit
  170. !            XDMDIR = $(LIBDIR)/xdm
  171. !            TWMDIR = $(LIBDIR)/twm
  172. !           MANPATH = /usr/local/X.V11R5/man
  173. !     MANSOURCEPATH = $(MANPATH)/man
  174. !         MANSUFFIX = 1
  175. !      LIBMANSUFFIX = 3
  176. !            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  177. !         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  178. !            NLSDIR = $(LIBDIR)/nls
  179. !         PEXAPIDIR = $(LIBDIR)/PEX
  180. !       XAPPLOADDIR = $(LIBDIR)/app-defaults
  181. !        FONTCFLAGS = -t
  182. !      INSTAPPFLAGS = $(INSTDATFLAGS)
  183. !             IMAKE = imake
  184. !            DEPEND = makedepend
  185. !               RGB = rgb
  186. !             FONTC = bdftopcf
  187. !         MKFONTDIR = mkfontdir
  188. !         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  189. !         CONFIGSRC = $(TOP)/config
  190. !        DOCUTILSRC = $(TOP)/doc/util
  191. !         CLIENTSRC = $(TOP)/clients
  192. !           DEMOSRC = $(TOP)/demos
  193. !            LIBSRC = $(TOP)/lib
  194. !           FONTSRC = $(TOP)/fonts
  195. !        INCLUDESRC = $(TOP)/X11
  196. !         SERVERSRC = $(TOP)/server
  197. !           UTILSRC = $(TOP)/util
  198. !         SCRIPTSRC = $(UTILSRC)/scripts
  199. !        EXAMPLESRC = $(TOP)/examples
  200. !        CONTRIBSRC = $(TOP)/../contrib
  201. !            DOCSRC = $(TOP)/doc
  202. !            RGBSRC = $(TOP)/rgb
  203. !         DEPENDSRC = $(UTILSRC)/makedepend
  204. !          IMAKESRC = $(CONFIGSRC)
  205. !          XAUTHSRC = $(LIBSRC)/Xau
  206. !           XLIBSRC = $(LIBSRC)/X
  207. !            XMUSRC = $(LIBSRC)/Xmu
  208. !        TOOLKITSRC = $(LIBSRC)/Xt
  209. !        AWIDGETSRC = $(LIBSRC)/Xaw
  210. !        OLDXLIBSRC = $(LIBSRC)/oldX
  211. !       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  212. !       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  213. !       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  214. !       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  215. !      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  216. !          FSLIBSRC = $(FONTSRC)/lib/fs
  217. !     FONTSERVERSRC = $(FONTSRC)/server
  218. !      EXTENSIONSRC = $(TOP)/extensions
  219. !          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  220. !       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  221. ! # $XConsortium: sunLib.tmpl,v 1.14.1.1 92/03/17 14:58:46 rws Exp $
  222. ! SHLIBLDFLAGS = -assert pure-text
  223. ! PICFLAGS = -pic
  224. !   DEPEXTENSIONLIB =
  225. !      EXTENSIONLIB = -lXext
  226. !           DEPXLIB = $(DEPEXTENSIONLIB)
  227. !              XLIB = $(EXTENSIONLIB) -lX11
  228. !         DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
  229. !        XMULIBONLY = -lXmu
  230. !            XMULIB = -lXmu
  231. !        DEPOLDXLIB =
  232. !           OLDXLIB = -loldX
  233. !       DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
  234. !          XTOOLLIB = -lXt
  235. !         DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
  236. !            XAWLIB = -lXaw
  237. !         DEPXILIB =
  238. !            XILIB = -lXi
  239. !         SOXLIBREV = 4.10
  240. !           SOXTREV = 4.10
  241. !          SOXAWREV = 5.0
  242. !         SOOLDXREV = 4.10
  243. !          SOXMUREV = 4.10
  244. !         SOXEXTREV = 4.10
  245. !       SOXINPUTREV = 4.10
  246. !       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  247. !          XAUTHLIB =  -lXau
  248. !       DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  249. !          XDMCPLIB =  -lXdmcp
  250. !         DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  251. !            PHIGSLIB =  -lphigs
  252. !        DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  253. !           XBSDLIB =  -lXbsd
  254. !  LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  255. !          LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  256. !           LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  257. !         LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  258. !           LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  259. !            LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  260. !         LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  261. !           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  262. !          DEPLIBS1 = $(DEPLIBS)
  263. !          DEPLIBS2 = $(DEPLIBS)
  264. !          DEPLIBS3 = $(DEPLIBS)
  265. ! # -------------------------------------------------------------------------
  266. ! # Imake rules for building libraries, programs, scripts, and data files
  267. ! # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  268. ! # -------------------------------------------------------------------------
  269. ! # start of Imakefile
  270. !                  CC = gcc
  271. ! #       CDEBUGFLAGS = -g -DDEBUG
  272. !     EXTRA_LIBRARIES = -lXm -lXt -lX11
  273. !                SRCS = cache.c control.c file_cache.c ftp.c \
  274. !                         main.c prefs.c ui_funcs.c
  275. !                OBJS = cache.o control.o file_cache.o ftp.o \
  276. !                         main.o prefs.o ui_funcs.o
  277. !  PROGRAM = xgetftp
  278. ! all:: xgetftp
  279. ! xgetftp: $(OBJS) $(DEPLIBS)
  280. !     $(RM) $@
  281. !     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  282. ! saber_xgetftp:: $(SRCS)
  283. !     # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  284. ! osaber_xgetftp:: $(OBJS)
  285. !     # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  286. ! install:: xgetftp
  287. !     @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  288. !     else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  289. !     $(INSTALL) -c $(INSTPGMFLAGS)  xgetftp $(DESTDIR)$(BINDIR)
  290. ! install.man:: xgetftp.man
  291. !     @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  292. !     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  293. !     $(INSTALL) -c $(INSTMANFLAGS) xgetftp.man $(DESTDIR)$(MANDIR)/xgetftp.$(MANSUFFIX)
  294. ! depend::
  295. !     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  296. ! lint:
  297. !     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  298. ! lint1:
  299. !     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  300. ! clean::
  301. !     $(RM) $(PROGRAM)
  302. ! # -------------------------------------------------------------------------
  303. ! # common rules for all Makefiles - do not edit
  304. ! emptyrule::
  305. ! clean::
  306. !     $(RM_CMD) "#"*
  307. ! Makefile::
  308. !     -@if [ -f Makefile ]; then set -x; \
  309. !     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  310. !     else exit 0; fi
  311. !     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  312. ! tags::
  313. !     $(TAGS) -w *.[ch]
  314. !     $(TAGS) -xw *.[ch] > TAGS
  315. ! saber:
  316. !     # load $(ALLDEFINES) $(SRCS)
  317. ! osaber:
  318. !     # load $(ALLDEFINES) $(OBJS)
  319. ! # -------------------------------------------------------------------------
  320. ! # empty rules for directories that do not have SUBDIRS - do not edit
  321. ! install::
  322. !     @echo "install in $(CURRENT_DIR) done"
  323. ! install.man::
  324. !     @echo "install.man in $(CURRENT_DIR) done"
  325. ! Makefiles::
  326. ! includes::
  327. ! # -------------------------------------------------------------------------
  328. ! # dependencies generated by makedepend
  329.   
  330. ! # DO NOT DELETE
  331.   
  332. ! cache.o: /usr/include/stdio.h cache.h
  333. ! control.o: /usr/local/X.V11R5/include/X11/Xos.h
  334. ! control.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
  335. ! control.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  336. ! control.o: /usr/include/string.h /usr/include/fcntl.h
  337. ! control.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
  338. ! control.o: /usr/include/unistd.h /usr/include/sys/time.h
  339. ! control.o: /usr/include/sys/time.h /usr/include/stdio.h /usr/include/malloc.h
  340. ! control.o: ftp.h cache.h file_cache.h control.h prefs.h
  341. ! control.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
  342. ! control.o: /usr/local/X.V11R5/include/X11/Xlib.h
  343. ! control.o: /usr/local/X.V11R5/include/X11/X.h
  344. ! control.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
  345. ! control.o: /usr/local/X.V11R5/include/X11/Xutil.h
  346. ! control.o: /usr/local/X.V11R5/include/X11/Xresource.h
  347. ! control.o: /usr/local/X.V11R5/include/X11/Core.h
  348. ! control.o: /usr/local/X.V11R5/include/X11/Composite.h
  349. ! control.o: /usr/local/X.V11R5/include/X11/Constraint.h
  350. ! control.o: /usr/local/X.V11R5/include/X11/Object.h
  351. ! control.o: /usr/local/X.V11R5/include/X11/RectObj.h
  352. ! file_cache.o: /usr/include/stdio.h /usr/local/X.V11R5/include/X11/Xos.h
  353. ! file_cache.o: /usr/local/X.V11R5/include/X11/Xosdefs.h
  354. ! file_cache.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
  355. ! file_cache.o: /usr/include/sys/sysmacros.h /usr/include/string.h
  356. ! file_cache.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
  357. ! file_cache.o: /usr/include/sys/stat.h /usr/include/unistd.h
  358. ! file_cache.o: /usr/include/sys/time.h /usr/include/sys/time.h
  359. ! file_cache.o: /usr/include/malloc.h /usr/include/stdlib.h
  360. ! file_cache.o: /usr/include/dirent.h /usr/include/sys/dirent.h
  361. ! ftp.o: /usr/local/X.V11R5/include/X11/Xos.h
  362. ! ftp.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
  363. ! ftp.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  364. ! ftp.o: /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
  365. ! ftp.o: /usr/include/sys/stat.h /usr/include/unistd.h /usr/include/sys/time.h
  366. ! ftp.o: /usr/include/sys/time.h /usr/include/stdio.h /usr/include/sys/socket.h
  367. ! ftp.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h
  368. ! ftp.o: /usr/include/netdb.h /usr/include/errno.h /usr/include/sys/errno.h
  369. ! ftp.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
  370. ! ftp.o: /usr/local/X.V11R5/include/X11/Xlib.h
  371. ! ftp.o: /usr/local/X.V11R5/include/X11/X.h
  372. ! ftp.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
  373. ! ftp.o: /usr/local/X.V11R5/include/X11/Xutil.h
  374. ! ftp.o: /usr/local/X.V11R5/include/X11/Xresource.h
  375. ! ftp.o: /usr/local/X.V11R5/include/X11/Core.h
  376. ! ftp.o: /usr/local/X.V11R5/include/X11/Composite.h
  377. ! ftp.o: /usr/local/X.V11R5/include/X11/Constraint.h
  378. ! ftp.o: /usr/local/X.V11R5/include/X11/Object.h
  379. ! ftp.o: /usr/local/X.V11R5/include/X11/RectObj.h
  380. ! main.o: /usr/local/X.V11R5/include/X11/Xos.h
  381. ! main.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
  382. ! main.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  383. ! main.o: /usr/include/string.h /usr/include/fcntl.h
  384. ! main.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
  385. ! main.o: /usr/include/unistd.h /usr/include/sys/time.h /usr/include/sys/time.h
  386. ! main.o: /usr/local/X.V11R5/include/Xm/Xm.h
  387. ! main.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
  388. ! main.o: /usr/local/X.V11R5/include/X11/Xlib.h
  389. ! main.o: /usr/local/X.V11R5/include/X11/X.h
  390. ! main.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
  391. ! main.o: /usr/local/X.V11R5/include/X11/Xutil.h
  392. ! main.o: /usr/local/X.V11R5/include/X11/Xresource.h
  393. ! main.o: /usr/local/X.V11R5/include/X11/Core.h
  394. ! main.o: /usr/local/X.V11R5/include/X11/Composite.h
  395. ! main.o: /usr/local/X.V11R5/include/X11/Constraint.h
  396. ! main.o: /usr/local/X.V11R5/include/X11/Object.h
  397. ! main.o: /usr/local/X.V11R5/include/X11/RectObj.h
  398. ! main.o: /usr/local/X.V11R5/include/X11/Shell.h
  399. ! main.o: /usr/local/X.V11R5/include/X11/Xatom.h
  400. ! main.o: /usr/local/X.V11R5/include/Xm/XmStrDefs.h
  401. ! main.o: /usr/local/X.V11R5/include/X11/StringDefs.h
  402. ! main.o: /usr/local/X.V11R5/include/Xm/VirtKeys.h
  403. ! main.o: /usr/local/X.V11R5/include/Xm/VendorS.h
  404. ! main.o: /usr/local/X.V11R5/include/Xm/PushBG.h
  405. ! main.o: /usr/local/X.V11R5/include/Xm/Text.h /usr/include/stdio.h
  406. ! main.o: /usr/local/X.V11R5/include/Xm/List.h /usr/include/signal.h
  407. ! main.o: /usr/include/sys/signal.h /usr/include/vm/faultcode.h
  408. ! main.o: /usr/include/pwd.h /usr/include/sys/socket.h /usr/include/netdb.h
  409. ! main.o: prefs.h control.h ui_funcs.h config.h patchlevel.h
  410. ! prefs.o: /usr/local/X.V11R5/include/X11/Xos.h
  411. ! prefs.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
  412. ! prefs.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  413. ! prefs.o: /usr/include/string.h /usr/include/fcntl.h
  414. ! prefs.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
  415. ! prefs.o: /usr/include/unistd.h /usr/include/sys/time.h
  416. ! prefs.o: /usr/include/sys/time.h /usr/include/stdlib.h /usr/include/stdio.h
  417. ! prefs.o: prefs.h
  418. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/cursorfont.h
  419. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Xm.h
  420. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
  421. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xlib.h /usr/include/sys/types.h
  422. ! ui_funcs.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  423. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/X.h
  424. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h
  425. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/stddef.h
  426. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xutil.h
  427. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xresource.h /usr/include/string.h
  428. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Core.h
  429. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Composite.h
  430. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Constraint.h
  431. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Object.h
  432. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/RectObj.h
  433. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Shell.h
  434. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xatom.h
  435. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/XmStrDefs.h
  436. ! ui_funcs.o: /usr/local/X.V11R5/include/X11/StringDefs.h
  437. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/VirtKeys.h
  438. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/VendorS.h
  439. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/MainW.h
  440. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/List.h
  441. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/RowColumn.h
  442. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/PushBG.h
  443. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Form.h
  444. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/BulletinB.h
  445. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/CascadeB.h
  446. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Frame.h
  447. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/LabelG.h
  448. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Text.h /usr/include/stdio.h
  449. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/MessageB.h
  450. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/ToggleBG.h
  451. ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/SelectioB.h prefs.h control.h
  452. ! ui_funcs.o: ui_funcs.h
  453. --- 1,17 ----
  454.   #
  455. ! # Sample makefile for xgetftp
  456.   #
  457. ! # Try to use this if xmkmf doesnt work.. you might have to change the
  458. ! # paths for the X include and lib stuff...
  459.   #
  460. ! CC = gcc
  461. ! #DFLAGS = -g -DDEBUG
  462. ! IDIR = -I/usr/local/X11/include
  463. ! LDIR = -L/usr/local/X11/lib
  464. ! OBJS = cache.o control.o file_cache.o ftp.o main.o prefs.o ui_funcs.o
  465.   
  466. ! xgetftp: $(OBJS)
  467. !     $(CC) -o xgetftp $(LDIR) $(OBJS) -lXm -lXt -lX11
  468.   
  469. ! .c.o :
  470. !     $(CC) -c $(DFLAGS) $(IDIR) $*.c
  471. Index: README
  472. *** xgetftp-v1.0/README    Mon Mar  8 13:55:11 1993
  473. --- xgetftp-v1.1/README    Fri Mar 12 15:47:13 1993
  474. ***************
  475. *** 1,5 ****
  476.   ==========================================================================
  477. ! xgetftp v1.0
  478.   ==========================================================================
  479.   
  480.   I. Authors:
  481. --- 1,5 ----
  482.   ==========================================================================
  483. ! xgetftp v1.1
  484.   ==========================================================================
  485.   
  486.   I. Authors:
  487. ***************
  488. *** 35,40 ****
  489. --- 35,44 ----
  490.   Please make sure that you carefully read the man page (an ASCII
  491.   version is available as xgetftp.doc if you don't want to install
  492.   a man page), especially the parts pertaining to the cache.
  493. + When first starting xgetftp, you will get a warning saying that the
  494. + ".xgetftprc" file was not found.  To create this file, simply select
  495. + "Set Preferences" from the File menu and click on "Save".
  496.   
  497.   ==========================================================================
  498.   
  499. Index: TODO
  500. *** xgetftp-v1.0/TODO    Mon Mar  8 13:55:11 1993
  501. --- xgetftp-v1.1/TODO    Fri Mar 12 15:47:13 1993
  502. ***************
  503. *** 1,5 ****
  504.   
  505.   - Auto selection of "find text" widget in Archie Search
  506.   - Option to "uncache" viewed file -- on view file dialog
  507.   - Add simple "confirm" requester for caches... maybe better to confirm
  508. --- 1,5 ----
  509.   
  510. ! - Allow any user/passwd combination, not just anonymous
  511.   - Auto selection of "find text" widget in Archie Search
  512.   - Option to "uncache" viewed file -- on view file dialog
  513.   - Add simple "confirm" requester for caches... maybe better to confirm
  514. ***************
  515. *** 11,16 ****
  516. --- 11,17 ----
  517.     give us enough responses
  518.   - Cache-consistency checks
  519.   - Limiting size of dir. cache in memory
  520. + - A search template for directories, eg, *README*
  521.   - "Hidden files" preference
  522.   - Some kind of background/batch transfer capability
  523.   - Keep track of where user last exited at each site and take him/her back
  524. Index: ftp.c
  525. *** xgetftp-v1.0/ftp.c    Mon Mar  8 13:55:12 1993
  526. --- xgetftp-v1.1/ftp.c    Fri Mar 12 15:47:14 1993
  527. ***************
  528. *** 10,15 ****
  529. --- 10,16 ----
  530.    *  University of Colorado, Boulder
  531.    *
  532.    * MODIFICATION LOG:
  533. +  *  93.03.10 S.A. - better support for variable arguments
  534.    *  93.01.14 S.A. - fixed return bug in ftp_init_conn
  535.    *  92.12.29 S.A. - ftp_init_conn now handles some errors more gracefully.
  536.    *            also, better use of "reponse_stream".
  537. ***************
  538. *** 25,31 ****
  539. --- 26,36 ----
  540.   #include <arpa/inet.h>
  541.   #include <netdb.h>
  542.   #include <errno.h>
  543. + #ifdef USE_PROTOTYPES
  544.   #include <stdarg.h>
  545. + #else
  546. + #include <varargs.h>
  547. + #endif
  548.   
  549.   /* Special stuff for X-based I/O */
  550.   #define XGETFTP
  551. ***************
  552. *** 155,162 ****
  553.   }
  554.   
  555.   
  556.   int ftp_send_command(char *fmt, ...)
  557.   /*
  558.    * Sends a command to the server.  The input parameters are in a
  559.    * "printf" form --- ie, a format specification string, followed
  560. --- 160,171 ----
  561.   }
  562.   
  563.   
  564. ! #ifdef USE_PROTOTYPES
  565.   int ftp_send_command(char *fmt, ...)
  566. + #else
  567. + int ftp_send_command(va_alist)
  568. + va_dcl
  569. + #endif
  570.   /*
  571.    * Sends a command to the server.  The input parameters are in a
  572.    * "printf" form --- ie, a format specification string, followed
  573. ***************
  574. *** 170,175 ****
  575. --- 179,187 ----
  576.    * checked for by the server.
  577.    */ 
  578.   {
  579. + #ifndef USE_PROTOTYPES
  580. +     char *fmt;
  581. + #endif
  582.       va_list ap;
  583.   
  584.   #ifdef DEBUG
  585. ***************
  586. *** 180,186 ****
  587.       fprintf(stderr, "\n");
  588.   #endif
  589.   
  590. !     va_start(ap, fmt);
  591.       vfprintf(commandfp, fmt, ap);
  592.       va_end(ap);
  593.       fprintf(commandfp, "\r\n");
  594. --- 192,204 ----
  595.       fprintf(stderr, "\n");
  596.   #endif
  597.   
  598. ! #ifdef USE_PROTOTYPES
  599. !     va_start(ap, format);
  600. ! #else
  601. !     va_start(ap);
  602. !     fmt = (char *)va_arg(ap, char *);
  603. ! #endif
  604.       vfprintf(commandfp, fmt, ap);
  605.       va_end(ap);
  606.       fprintf(commandfp, "\r\n");
  607. Index: main.c
  608. *** xgetftp-v1.0/main.c    Mon Mar  8 13:55:12 1993
  609. --- xgetftp-v1.1/main.c    Fri Mar 12 15:47:14 1993
  610. ***************
  611. *** 215,221 ****
  612.           buf[len++] = buf[i];
  613.       }
  614.       buf[len] = '\0';
  615. !     XmTextInsert(archietextW, (XmTextPosition)*ppos, buf);
  616.       *ppos += len;
  617.       }
  618.       else
  619. --- 215,221 ----
  620.           buf[len++] = buf[i];
  621.       }
  622.       buf[len] = '\0';
  623. !     XmTextInsert(archietextW, (XmTextPosition)*ppos, (char *)buf);
  624.       *ppos += len;
  625.       }
  626.       else
  627. ***************
  628. *** 514,520 ****
  629.           buf[len++] = buf[i];
  630.       }
  631.       buf[len] = '\0';
  632. !     XmTextInsert(viewtextW, (XmTextPosition)*ppos, buf);
  633.       *ppos += len;
  634.       }
  635.       else
  636. --- 514,520 ----
  637.           buf[len++] = buf[i];
  638.       }
  639.       buf[len] = '\0';
  640. !     XmTextInsert(viewtextW, (XmTextPosition)*ppos, (char *)buf);
  641.       *ppos += len;
  642.       }
  643.       else
  644. Index: ui_funcs.c
  645. *** xgetftp-v1.0/ui_funcs.c    Mon Mar  8 13:55:13 1993
  646. --- xgetftp-v1.1/ui_funcs.c    Fri Mar 12 15:47:15 1993
  647. ***************
  648. *** 10,15 ****
  649. --- 10,16 ----
  650.    *  University of Colorado, Boulder
  651.    *
  652.    * MODIFICATION LOG:
  653. +  *  93.03.11 S.A. - Fixed mesg initialization problem.
  654.    *
  655.    **************************************************************************/
  656.   
  657. ***************
  658. *** 224,230 ****
  659.   {
  660.       Arg args[3];
  661.       XmString xmstr[2];
  662. !     char mesg[] = "xgetftp v1.0\n\nSalim Alam\nUniversity of Colorado, Boulder\n\nPlease email all bug reports and\ncomments to: salim@cs.colorado.edu";
  663.   
  664.       xmstr[0] = XmStringCreateLtoR(mesg, XmSTRING_DEFAULT_CHARSET);
  665.       XtSetArg(args[0], XmNmessageString, xmstr[0]);
  666. --- 225,231 ----
  667.   {
  668.       Arg args[3];
  669.       XmString xmstr[2];
  670. !     char *mesg = "xgetftp v1.1\n\nSalim Alam\nUniversity of Colorado, Boulder\n\nPlease email all bug reports and\ncomments to: salim@cs.colorado.edu";
  671.   
  672.       xmstr[0] = XmStringCreateLtoR(mesg, XmSTRING_DEFAULT_CHARSET);
  673.       XtSetArg(args[0], XmNmessageString, xmstr[0]);
  674. SHAR_EOF
  675. fi # end of overwriting check
  676. #    End of shell archive
  677. exit 0
  678.  
  679. exit 0 # Just in case...
  680. -- 
  681.   // chris@IMD.Sterling.COM            | Send comp.sources.x submissions to:
  682. \X/  Amiga - The only way to fly!      |
  683.  "It's intuitively obvious to the most |    sources-x@imd.sterling.com
  684.   casual observer..."                  |
  685.