home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.x
- From: salim@tigger.cs.colorado.edu (Salim Alam)
- Subject: v19i043: xgetftp - Friendly anonymous ftp tool, Patch01
- Message-ID: <1993Mar16.220946.8877@sparky.imd.sterling.com>
- X-Md4-Signature: 8bcedad93d24866d6b14a8cf10dd2c9d
- Date: Tue, 16 Mar 1993 22:09:46 GMT
- Approved: chris@sparky.imd.sterling.com
-
- Submitted-by: salim@tigger.cs.colorado.edu (Salim Alam)
- Posting-number: Volume 19, Issue 43
- Archive-name: xgetftp/patch01
- Environment: X11, OSF/Motif
- Patch-To: xgetftp: Volume 19, Issue 22-25
-
-
- This patches xgetftp from v1.0 to v1.1. The patch fixes a couple of bugs
- that were causing compilation problems for some people. Also, the Makefile
- included is more easily editable in case xmkmf doesnt work.
-
- The patch is in context-diff format and can be applied by redirecting to
- the patch program.
-
- Thanks.
-
- -Salim
-
- ---------------------- cut here ----------------------------------------
- #! /bin/sh
- # This is a shell archive, meaning:
- # 1. Remove everything above the #! /bin/sh line.
- # 2. Save the resulting text in a file.
- # 3. Execute the file with /bin/sh (not csh) to create the files:
- # xgetftp-patch
- # This archive created: Fri Mar 12 16:07:34 1993
- export PATH; PATH=/bin:$PATH
- if test -f 'xgetftp-patch'
- then
- echo shar: will not over-write existing file "'xgetftp-patch'"
- else
- cat << \SHAR_EOF > 'xgetftp-patch'
- Index: patchlevel.h
- *** xgetftp-v1.0/patchlevel.h Mon Mar 8 13:55:12 1993
- --- xgetftp-v1.1/patchlevel.h Fri Mar 12 15:47:15 1993
- ***************
- *** 1,2 ****
- #define VERSION 1
- ! #define PATCHLEVEL 0
- --- 1,2 ----
- #define VERSION 1
- ! #define PATCHLEVEL 1
- Index: Makefile
- *** xgetftp-v1.0/Makefile Mon Mar 8 13:55:11 1993
- --- xgetftp-v1.1/Makefile Fri Mar 12 15:47:13 1993
- ***************
- *** 1,478 ****
- - # Makefile generated by imake - do not edit!
- - # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
- #
- ! # The cpp used on this machine replaces all newlines and multiple tabs and
- ! # spaces in a macro expansion with a single space. Imake tries to compensate
- ! # for this, but is not always successful.
- #
- !
- ! # -------------------------------------------------------------------------
- ! # Makefile generated from "Imake.tmpl" and </tmp/IIf.022747>
- ! # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
- ! #
- ! # Platform-specific parameters may be set in the appropriate <vendor>.cf
- ! # configuration files. Site-specific parameters should be set in the file
- ! # site.def. Full rebuilds are recommended if any parameters are changed.
- ! #
- ! # If your C preprocessor does not define any unique symbols, you will need
- ! # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
- ! # "make World" the first time).
- #
- !
- ! # -------------------------------------------------------------------------
- ! # site-specific configuration parameters that need to come before
- ! # the platform-specific parameters - edit site.def to change
- !
- ! # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- !
- ! # -------------------------------------------------------------------------
- ! # platform-specific configuration parameters - edit sun.cf to change
- !
- ! # platform: $XConsortium: sun.cf,v 1.72.1.1 92/03/18 13:13:37 rws Exp $
- !
- ! # operating system: SunOS 4.1
- !
- ! # $XConsortium: sunLib.rules,v 1.7 91/12/20 11:19:47 rws Exp $
- !
- ! # -------------------------------------------------------------------------
- ! # site-specific configuration parameters that go after
- ! # the platform-specific parameters - edit site.def to change
- !
- ! # site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
- !
- ! SHELL = /bin/sh
- !
- ! TOP = .
- ! CURRENT_DIR = .
- !
- ! AR = ar clq
- ! BOOTSTRAPCFLAGS =
- ! CC = cc
- ! AS = as
- !
- ! COMPRESS = compress
- ! CPP = /lib/cpp $(STD_CPP_DEFINES)
- ! PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
- ! INSTALL = install
- ! LD = ld
- ! LINT = lint
- ! LINTLIBFLAG = -C
- ! LINTOPTS = -axz
- ! LN = ln -s
- ! MAKE = make
- ! MV = mv
- ! CP = cp
- !
- ! RANLIB = ranlib
- ! RANLIBINSTFLAGS =
- !
- ! RM = rm -f
- ! TROFF = psroff
- ! MSMACROS = -ms
- ! TBL = tbl
- ! EQN = eqn
- ! STD_INCLUDES =
- ! STD_CPP_DEFINES =
- ! STD_DEFINES =
- ! EXTRA_LOAD_FLAGS =
- ! EXTRA_LIBRARIES =
- ! TAGS = ctags
- !
- ! SHAREDCODEDEF = -DSHAREDCODE
- ! SHLIBDEF = -DSUNSHLIB
- !
- ! PROTO_DEFINES =
- !
- ! INSTPGMFLAGS =
- !
- ! INSTBINFLAGS = -m 0755
- ! INSTUIDFLAGS = -m 4755
- ! INSTLIBFLAGS = -m 0644
- ! INSTINCFLAGS = -m 0444
- ! INSTMANFLAGS = -m 0444
- ! INSTDATFLAGS = -m 0444
- ! INSTKMEMFLAGS = -g kmem -m 2755
- !
- ! PROJECTROOT = /usr/local/X.V11R5
- !
- ! TOP_INCLUDES = -I$(INCROOT)
- !
- ! CDEBUGFLAGS = -O
- ! CCOPTIONS = -pipe
- !
- ! ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
- ! ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
- ! CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
- ! LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
- !
- ! LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- !
- ! LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
- !
- ! LDCOMBINEFLAGS = -X -r
- ! DEPENDFLAGS =
- !
- ! MACROFILE = sun.cf
- ! RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
- !
- ! IMAKE_DEFINES =
- !
- ! IRULESRC = $(CONFIGDIR)
- ! IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
- !
- ! ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
- ! $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
- ! $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
- !
- ! # -------------------------------------------------------------------------
- ! # X Window System Build Parameters
- ! # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
- !
- ! # -------------------------------------------------------------------------
- ! # X Window System make variables; this need to be coordinated with rules
- !
- ! PATHSEP = /
- ! USRLIBDIR = /usr/local/X.V11R5/lib
- ! BINDIR = /usr/local/X.V11R5/bin
- ! INCROOT = /usr/local/X.V11R5/include
- ! BUILDINCROOT = $(TOP)
- ! BUILDINCDIR = $(BUILDINCROOT)/X11
- ! BUILDINCTOP = ..
- ! INCDIR = $(INCROOT)/X11
- ! ADMDIR = /usr/adm
- ! LIBDIR = $(USRLIBDIR)
- ! CONFIGDIR = $(LIBDIR)/config
- ! LINTLIBDIR = $(USRLIBDIR)/lint
- !
- ! FONTDIR = $(LIBDIR)/fonts
- ! XINITDIR = $(LIBDIR)/xinit
- ! XDMDIR = $(LIBDIR)/xdm
- ! TWMDIR = $(LIBDIR)/twm
- ! MANPATH = /usr/local/X.V11R5/man
- ! MANSOURCEPATH = $(MANPATH)/man
- ! MANSUFFIX = 1
- ! LIBMANSUFFIX = 3
- ! MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
- ! LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
- ! NLSDIR = $(LIBDIR)/nls
- ! PEXAPIDIR = $(LIBDIR)/PEX
- ! XAPPLOADDIR = $(LIBDIR)/app-defaults
- ! FONTCFLAGS = -t
- !
- ! INSTAPPFLAGS = $(INSTDATFLAGS)
- !
- ! IMAKE = imake
- ! DEPEND = makedepend
- ! RGB = rgb
- !
- ! FONTC = bdftopcf
- !
- ! MKFONTDIR = mkfontdir
- ! MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
- !
- ! CONFIGSRC = $(TOP)/config
- ! DOCUTILSRC = $(TOP)/doc/util
- ! CLIENTSRC = $(TOP)/clients
- ! DEMOSRC = $(TOP)/demos
- ! LIBSRC = $(TOP)/lib
- ! FONTSRC = $(TOP)/fonts
- ! INCLUDESRC = $(TOP)/X11
- ! SERVERSRC = $(TOP)/server
- ! UTILSRC = $(TOP)/util
- ! SCRIPTSRC = $(UTILSRC)/scripts
- ! EXAMPLESRC = $(TOP)/examples
- ! CONTRIBSRC = $(TOP)/../contrib
- ! DOCSRC = $(TOP)/doc
- ! RGBSRC = $(TOP)/rgb
- ! DEPENDSRC = $(UTILSRC)/makedepend
- ! IMAKESRC = $(CONFIGSRC)
- ! XAUTHSRC = $(LIBSRC)/Xau
- ! XLIBSRC = $(LIBSRC)/X
- ! XMUSRC = $(LIBSRC)/Xmu
- ! TOOLKITSRC = $(LIBSRC)/Xt
- ! AWIDGETSRC = $(LIBSRC)/Xaw
- ! OLDXLIBSRC = $(LIBSRC)/oldX
- ! XDMCPLIBSRC = $(LIBSRC)/Xdmcp
- ! BDFTOSNFSRC = $(FONTSRC)/bdftosnf
- ! BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
- ! BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
- ! MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
- ! FSLIBSRC = $(FONTSRC)/lib/fs
- ! FONTSERVERSRC = $(FONTSRC)/server
- ! EXTENSIONSRC = $(TOP)/extensions
- ! XILIBSRC = $(EXTENSIONSRC)/lib/xinput
- ! PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
- !
- ! # $XConsortium: sunLib.tmpl,v 1.14.1.1 92/03/17 14:58:46 rws Exp $
- !
- ! SHLIBLDFLAGS = -assert pure-text
- ! PICFLAGS = -pic
- !
- ! DEPEXTENSIONLIB =
- ! EXTENSIONLIB = -lXext
- !
- ! DEPXLIB = $(DEPEXTENSIONLIB)
- ! XLIB = $(EXTENSIONLIB) -lX11
- !
- ! DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
- ! XMULIBONLY = -lXmu
- ! XMULIB = -lXmu
- !
- ! DEPOLDXLIB =
- ! OLDXLIB = -loldX
- !
- ! DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
- ! XTOOLLIB = -lXt
- !
- ! DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
- ! XAWLIB = -lXaw
- !
- ! DEPXILIB =
- ! XILIB = -lXi
- !
- ! SOXLIBREV = 4.10
- ! SOXTREV = 4.10
- ! SOXAWREV = 5.0
- ! SOOLDXREV = 4.10
- ! SOXMUREV = 4.10
- ! SOXEXTREV = 4.10
- ! SOXINPUTREV = 4.10
- !
- ! DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
- ! XAUTHLIB = -lXau
- ! DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
- ! XDMCPLIB = -lXdmcp
- !
- ! DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
- ! PHIGSLIB = -lphigs
- !
- ! DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
- ! XBSDLIB = -lXbsd
- !
- ! LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
- ! LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
- ! LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
- ! LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
- ! LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
- ! LINTXI = $(LINTLIBDIR)/llib-lXi.ln
- ! LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
- !
- ! DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
- !
- ! DEPLIBS1 = $(DEPLIBS)
- ! DEPLIBS2 = $(DEPLIBS)
- ! DEPLIBS3 = $(DEPLIBS)
- !
- ! # -------------------------------------------------------------------------
- ! # Imake rules for building libraries, programs, scripts, and data files
- ! # rules: $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
- !
- ! # -------------------------------------------------------------------------
- ! # start of Imakefile
- !
- ! CC = gcc
- ! # CDEBUGFLAGS = -g -DDEBUG
- ! EXTRA_LIBRARIES = -lXm -lXt -lX11
- ! SRCS = cache.c control.c file_cache.c ftp.c \
- ! main.c prefs.c ui_funcs.c
- ! OBJS = cache.o control.o file_cache.o ftp.o \
- ! main.o prefs.o ui_funcs.o
- !
- ! PROGRAM = xgetftp
- !
- ! all:: xgetftp
- !
- ! xgetftp: $(OBJS) $(DEPLIBS)
- ! $(RM) $@
- ! $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
- !
- ! saber_xgetftp:: $(SRCS)
- ! # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- !
- ! osaber_xgetftp:: $(OBJS)
- ! # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
- !
- ! install:: xgetftp
- ! @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
- ! else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
- ! $(INSTALL) -c $(INSTPGMFLAGS) xgetftp $(DESTDIR)$(BINDIR)
- !
- ! install.man:: xgetftp.man
- ! @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
- ! else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
- ! $(INSTALL) -c $(INSTMANFLAGS) xgetftp.man $(DESTDIR)$(MANDIR)/xgetftp.$(MANSUFFIX)
- !
- ! depend::
- ! $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
- !
- ! lint:
- ! $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
- ! lint1:
- ! $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
- !
- ! clean::
- ! $(RM) $(PROGRAM)
- !
- ! # -------------------------------------------------------------------------
- ! # common rules for all Makefiles - do not edit
- !
- ! emptyrule::
- !
- ! clean::
- ! $(RM_CMD) "#"*
- !
- ! Makefile::
- ! -@if [ -f Makefile ]; then set -x; \
- ! $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
- ! else exit 0; fi
- ! $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
- !
- ! tags::
- ! $(TAGS) -w *.[ch]
- ! $(TAGS) -xw *.[ch] > TAGS
- !
- ! saber:
- ! # load $(ALLDEFINES) $(SRCS)
- !
- ! osaber:
- ! # load $(ALLDEFINES) $(OBJS)
- !
- ! # -------------------------------------------------------------------------
- ! # empty rules for directories that do not have SUBDIRS - do not edit
- !
- ! install::
- ! @echo "install in $(CURRENT_DIR) done"
- !
- ! install.man::
- ! @echo "install.man in $(CURRENT_DIR) done"
- !
- ! Makefiles::
- !
- ! includes::
- !
- ! # -------------------------------------------------------------------------
- ! # dependencies generated by makedepend
-
- ! # DO NOT DELETE
-
- ! cache.o: /usr/include/stdio.h cache.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xos.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
- ! control.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- ! control.o: /usr/include/string.h /usr/include/fcntl.h
- ! control.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
- ! control.o: /usr/include/unistd.h /usr/include/sys/time.h
- ! control.o: /usr/include/sys/time.h /usr/include/stdio.h /usr/include/malloc.h
- ! control.o: ftp.h cache.h file_cache.h control.h prefs.h
- ! control.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xlib.h
- ! control.o: /usr/local/X.V11R5/include/X11/X.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xutil.h
- ! control.o: /usr/local/X.V11R5/include/X11/Xresource.h
- ! control.o: /usr/local/X.V11R5/include/X11/Core.h
- ! control.o: /usr/local/X.V11R5/include/X11/Composite.h
- ! control.o: /usr/local/X.V11R5/include/X11/Constraint.h
- ! control.o: /usr/local/X.V11R5/include/X11/Object.h
- ! control.o: /usr/local/X.V11R5/include/X11/RectObj.h
- ! file_cache.o: /usr/include/stdio.h /usr/local/X.V11R5/include/X11/Xos.h
- ! file_cache.o: /usr/local/X.V11R5/include/X11/Xosdefs.h
- ! file_cache.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
- ! file_cache.o: /usr/include/sys/sysmacros.h /usr/include/string.h
- ! file_cache.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
- ! file_cache.o: /usr/include/sys/stat.h /usr/include/unistd.h
- ! file_cache.o: /usr/include/sys/time.h /usr/include/sys/time.h
- ! file_cache.o: /usr/include/malloc.h /usr/include/stdlib.h
- ! file_cache.o: /usr/include/dirent.h /usr/include/sys/dirent.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xos.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
- ! ftp.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- ! ftp.o: /usr/include/string.h /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
- ! ftp.o: /usr/include/sys/stat.h /usr/include/unistd.h /usr/include/sys/time.h
- ! ftp.o: /usr/include/sys/time.h /usr/include/stdio.h /usr/include/sys/socket.h
- ! ftp.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h
- ! ftp.o: /usr/include/netdb.h /usr/include/errno.h /usr/include/sys/errno.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xlib.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/X.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xutil.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Xresource.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Core.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Composite.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Constraint.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/Object.h
- ! ftp.o: /usr/local/X.V11R5/include/X11/RectObj.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xos.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
- ! main.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- ! main.o: /usr/include/string.h /usr/include/fcntl.h
- ! main.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
- ! main.o: /usr/include/unistd.h /usr/include/sys/time.h /usr/include/sys/time.h
- ! main.o: /usr/local/X.V11R5/include/Xm/Xm.h
- ! main.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xlib.h
- ! main.o: /usr/local/X.V11R5/include/X11/X.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h /usr/include/stddef.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xutil.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xresource.h
- ! main.o: /usr/local/X.V11R5/include/X11/Core.h
- ! main.o: /usr/local/X.V11R5/include/X11/Composite.h
- ! main.o: /usr/local/X.V11R5/include/X11/Constraint.h
- ! main.o: /usr/local/X.V11R5/include/X11/Object.h
- ! main.o: /usr/local/X.V11R5/include/X11/RectObj.h
- ! main.o: /usr/local/X.V11R5/include/X11/Shell.h
- ! main.o: /usr/local/X.V11R5/include/X11/Xatom.h
- ! main.o: /usr/local/X.V11R5/include/Xm/XmStrDefs.h
- ! main.o: /usr/local/X.V11R5/include/X11/StringDefs.h
- ! main.o: /usr/local/X.V11R5/include/Xm/VirtKeys.h
- ! main.o: /usr/local/X.V11R5/include/Xm/VendorS.h
- ! main.o: /usr/local/X.V11R5/include/Xm/PushBG.h
- ! main.o: /usr/local/X.V11R5/include/Xm/Text.h /usr/include/stdio.h
- ! main.o: /usr/local/X.V11R5/include/Xm/List.h /usr/include/signal.h
- ! main.o: /usr/include/sys/signal.h /usr/include/vm/faultcode.h
- ! main.o: /usr/include/pwd.h /usr/include/sys/socket.h /usr/include/netdb.h
- ! main.o: prefs.h control.h ui_funcs.h config.h patchlevel.h
- ! prefs.o: /usr/local/X.V11R5/include/X11/Xos.h
- ! prefs.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/sys/types.h
- ! prefs.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- ! prefs.o: /usr/include/string.h /usr/include/fcntl.h
- ! prefs.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
- ! prefs.o: /usr/include/unistd.h /usr/include/sys/time.h
- ! prefs.o: /usr/include/sys/time.h /usr/include/stdlib.h /usr/include/stdio.h
- ! prefs.o: prefs.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/cursorfont.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Xm.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Intrinsic.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xlib.h /usr/include/sys/types.h
- ! ui_funcs.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/X.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xfuncproto.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xosdefs.h /usr/include/stddef.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xutil.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xresource.h /usr/include/string.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Core.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Composite.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Constraint.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Object.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/RectObj.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Shell.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/Xatom.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/XmStrDefs.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/X11/StringDefs.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/VirtKeys.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/VendorS.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/MainW.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/List.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/RowColumn.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/PushBG.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Form.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/BulletinB.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/CascadeB.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Frame.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/LabelG.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/Text.h /usr/include/stdio.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/MessageB.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/ToggleBG.h
- ! ui_funcs.o: /usr/local/X.V11R5/include/Xm/SelectioB.h prefs.h control.h
- ! ui_funcs.o: ui_funcs.h
- --- 1,17 ----
- #
- ! # Sample makefile for xgetftp
- #
- ! # Try to use this if xmkmf doesnt work.. you might have to change the
- ! # paths for the X include and lib stuff...
- #
- ! CC = gcc
- ! #DFLAGS = -g -DDEBUG
- ! IDIR = -I/usr/local/X11/include
- ! LDIR = -L/usr/local/X11/lib
- ! OBJS = cache.o control.o file_cache.o ftp.o main.o prefs.o ui_funcs.o
-
- ! xgetftp: $(OBJS)
- ! $(CC) -o xgetftp $(LDIR) $(OBJS) -lXm -lXt -lX11
-
- ! .c.o :
- ! $(CC) -c $(DFLAGS) $(IDIR) $*.c
- Index: README
- *** xgetftp-v1.0/README Mon Mar 8 13:55:11 1993
- --- xgetftp-v1.1/README Fri Mar 12 15:47:13 1993
- ***************
- *** 1,5 ****
- ==========================================================================
- ! xgetftp v1.0
- ==========================================================================
-
- I. Authors:
- --- 1,5 ----
- ==========================================================================
- ! xgetftp v1.1
- ==========================================================================
-
- I. Authors:
- ***************
- *** 35,40 ****
- --- 35,44 ----
- Please make sure that you carefully read the man page (an ASCII
- version is available as xgetftp.doc if you don't want to install
- a man page), especially the parts pertaining to the cache.
- +
- + When first starting xgetftp, you will get a warning saying that the
- + ".xgetftprc" file was not found. To create this file, simply select
- + "Set Preferences" from the File menu and click on "Save".
-
- ==========================================================================
-
- Index: TODO
- *** xgetftp-v1.0/TODO Mon Mar 8 13:55:11 1993
- --- xgetftp-v1.1/TODO Fri Mar 12 15:47:13 1993
- ***************
- *** 1,5 ****
-
- !
- - Auto selection of "find text" widget in Archie Search
- - Option to "uncache" viewed file -- on view file dialog
- - Add simple "confirm" requester for caches... maybe better to confirm
- --- 1,5 ----
-
- ! - Allow any user/passwd combination, not just anonymous
- - Auto selection of "find text" widget in Archie Search
- - Option to "uncache" viewed file -- on view file dialog
- - Add simple "confirm" requester for caches... maybe better to confirm
- ***************
- *** 11,16 ****
- --- 11,17 ----
- give us enough responses
- - Cache-consistency checks
- - Limiting size of dir. cache in memory
- + - A search template for directories, eg, *README*
- - "Hidden files" preference
- - Some kind of background/batch transfer capability
- - Keep track of where user last exited at each site and take him/her back
- Index: ftp.c
- *** xgetftp-v1.0/ftp.c Mon Mar 8 13:55:12 1993
- --- xgetftp-v1.1/ftp.c Fri Mar 12 15:47:14 1993
- ***************
- *** 10,15 ****
- --- 10,16 ----
- * University of Colorado, Boulder
- *
- * MODIFICATION LOG:
- + * 93.03.10 S.A. - better support for variable arguments
- * 93.01.14 S.A. - fixed return bug in ftp_init_conn
- * 92.12.29 S.A. - ftp_init_conn now handles some errors more gracefully.
- * also, better use of "reponse_stream".
- ***************
- *** 25,31 ****
- --- 26,36 ----
- #include <arpa/inet.h>
- #include <netdb.h>
- #include <errno.h>
- + #ifdef USE_PROTOTYPES
- #include <stdarg.h>
- + #else
- + #include <varargs.h>
- + #endif
-
- /* Special stuff for X-based I/O */
- #define XGETFTP
- ***************
- *** 155,162 ****
- }
-
-
- !
- int ftp_send_command(char *fmt, ...)
- /*
- * Sends a command to the server. The input parameters are in a
- * "printf" form --- ie, a format specification string, followed
- --- 160,171 ----
- }
-
-
- ! #ifdef USE_PROTOTYPES
- int ftp_send_command(char *fmt, ...)
- + #else
- + int ftp_send_command(va_alist)
- + va_dcl
- + #endif
- /*
- * Sends a command to the server. The input parameters are in a
- * "printf" form --- ie, a format specification string, followed
- ***************
- *** 170,175 ****
- --- 179,187 ----
- * checked for by the server.
- */
- {
- + #ifndef USE_PROTOTYPES
- + char *fmt;
- + #endif
- va_list ap;
-
- #ifdef DEBUG
- ***************
- *** 180,186 ****
- fprintf(stderr, "\n");
- #endif
-
- ! va_start(ap, fmt);
- vfprintf(commandfp, fmt, ap);
- va_end(ap);
- fprintf(commandfp, "\r\n");
- --- 192,204 ----
- fprintf(stderr, "\n");
- #endif
-
- ! #ifdef USE_PROTOTYPES
- ! va_start(ap, format);
- ! #else
- ! va_start(ap);
- ! fmt = (char *)va_arg(ap, char *);
- ! #endif
- !
- vfprintf(commandfp, fmt, ap);
- va_end(ap);
- fprintf(commandfp, "\r\n");
- Index: main.c
- *** xgetftp-v1.0/main.c Mon Mar 8 13:55:12 1993
- --- xgetftp-v1.1/main.c Fri Mar 12 15:47:14 1993
- ***************
- *** 215,221 ****
- buf[len++] = buf[i];
- }
- buf[len] = '\0';
- ! XmTextInsert(archietextW, (XmTextPosition)*ppos, buf);
- *ppos += len;
- }
- else
- --- 215,221 ----
- buf[len++] = buf[i];
- }
- buf[len] = '\0';
- ! XmTextInsert(archietextW, (XmTextPosition)*ppos, (char *)buf);
- *ppos += len;
- }
- else
- ***************
- *** 514,520 ****
- buf[len++] = buf[i];
- }
- buf[len] = '\0';
- ! XmTextInsert(viewtextW, (XmTextPosition)*ppos, buf);
- *ppos += len;
- }
- else
- --- 514,520 ----
- buf[len++] = buf[i];
- }
- buf[len] = '\0';
- ! XmTextInsert(viewtextW, (XmTextPosition)*ppos, (char *)buf);
- *ppos += len;
- }
- else
- Index: ui_funcs.c
- *** xgetftp-v1.0/ui_funcs.c Mon Mar 8 13:55:13 1993
- --- xgetftp-v1.1/ui_funcs.c Fri Mar 12 15:47:15 1993
- ***************
- *** 10,15 ****
- --- 10,16 ----
- * University of Colorado, Boulder
- *
- * MODIFICATION LOG:
- + * 93.03.11 S.A. - Fixed mesg initialization problem.
- *
- **************************************************************************/
-
- ***************
- *** 224,230 ****
- {
- Arg args[3];
- XmString xmstr[2];
- ! 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";
-
- xmstr[0] = XmStringCreateLtoR(mesg, XmSTRING_DEFAULT_CHARSET);
- XtSetArg(args[0], XmNmessageString, xmstr[0]);
- --- 225,231 ----
- {
- Arg args[3];
- XmString xmstr[2];
- ! 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";
-
- xmstr[0] = XmStringCreateLtoR(mesg, XmSTRING_DEFAULT_CHARSET);
- XtSetArg(args[0], XmNmessageString, xmstr[0]);
- SHAR_EOF
- fi # end of overwriting check
- # End of shell archive
- exit 0
-
- exit 0 # Just in case...
- --
- // chris@IMD.Sterling.COM | Send comp.sources.x submissions to:
- \X/ Amiga - The only way to fly! |
- "It's intuitively obvious to the most | sources-x@imd.sterling.com
- casual observer..." |
-