2 # This is a shell archive. Remove anything before this line, then unpack
3 # it by saving it into a file and typing "sh file". To overwrite existing
4 # files, type "sh file -c". You can also feed this as standard input via
5 # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
6 # will see the following message at the end:
7 # "End of archive 1 (of 3)."
8 # Contents: MANIFEST MANIFEST.shar Makefile.SH README config.win95
9 # config_h.SH configure di.1 getopt.c hints hints/aix.sh
10 # hints/beos.sh hints/dec_osf.sh hints/dynix.sh hints/dynixptx.sh
11 # hints/freebsd.sh hints/hpux.sh hints/irix.sh hints/linux.sh
12 # hints/openbsd.sh hints/solaris.sh hints/unicos.sh win95.mak
13 # Wrapped by root@seer on Thu Feb 24 10:15:51 2000
14 PATH=/bin:/usr/bin:/usr/ucb ; export PATH
15 if test -f 'MANIFEST' -a "${1}" != "-c" ; then
16 echo shar: Will not clobber existing file \"'MANIFEST'\"
18 echo shar: Extracting \"'MANIFEST'\" \(470 characters\)
19 sed "s/^X//" >'MANIFEST' <<'END_OF_FILE'
22 Xgetopt.c getopt() routine
23 Xconfig.win95 config.h for win95
25 Xwin95.mak pre-built Makefile for win95
26 XConfigure Portability tool
27 Xconfigure GNU configure-like wrapper
28 XMakefile.SH Produces Makefile
29 Xconfig_h.SH Produces config.h
31 if test 470 -ne `wc -c <'MANIFEST'`; then
32 echo shar: \"'MANIFEST'\" unpacked with wrong size!
36 if test -f 'MANIFEST.shar' -a "${1}" != "-c" ; then
37 echo shar: Will not clobber existing file \"'MANIFEST.shar'\"
39 echo shar: Extracting \"'MANIFEST.shar'\" \(1076 characters\)
40 sed "s/^X//" >'MANIFEST.shar' <<'END_OF_FILE'
41 X File Name Archive # Description
42 X-----------------------------------------------------------
43 X Configure 3 Configuration script
45 X MANIFEST.shar 1 This shipping list
46 X Makefile.SH 1 Produces Makefile
48 X config.win95 1 config.h for win95
49 X config_h.SH 1 Produces config.h
50 X configure 1 gnu-like front-end for Configure
51 X di.1 1 di Manual Page
53 X getopt.c 1 getopt source (from Cnews)
67 X win95.mak 1 window95 makefile
69 if test 1076 -ne `wc -c <'MANIFEST.shar'`; then
70 echo shar: \"'MANIFEST.shar'\" unpacked with wrong size!
72 # end of 'MANIFEST.shar'
74 if test -f 'Makefile.SH' -a "${1}" != "-c" ; then
75 echo shar: Will not clobber existing file \"'Makefile.SH'\"
77 echo shar: Extracting \"'Makefile.SH'\" \(5386 characters\)
78 sed "s/^X//" >'Makefile.SH' <<'END_OF_FILE'
81 X if test -f config.sh; then TOP=.;
82 X elif test -f ../config.sh; then TOP=..;
83 X elif test -f ../../config.sh; then TOP=../..;
84 X elif test -f ../../../config.sh; then TOP=../../..;
85 X elif test -f ../../../../config.sh; then TOP=../../../..;
87 X echo "Can't find config.sh."; exit 1
92 X: This forces SH files to create target in same directory as SH file.
93 X: This is so that make depend always knows where to find SH derivatives.
95 X*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
97 Xecho "Extracting Makefile (with variable substitutions)"
98 X$spitshell >Makefile <<!GROK!THIS!
102 X# Copyright 1995-1999 Brad Lanam
118 X# additional flags/libraries
120 XCFLAGS = -DPROG=\\"\$(PROG)\\" -DMPROG=\\"\$(MPROG)\\" $ccflags $optimize
125 X# installation options
128 XINSTDIR = \$(PREFIX)/bin
131 XTARGET = \$(INSTDIR)/\$(PROG)
132 XMTARGET = \$(INSTDIR)/\$(MPROG)
134 X# if you need permissions other than the default,
135 X# edit these, and do a "make installperm".
138 X#INSTPERM = 111 # change USER to bin also...
139 XINSTPERM = 4111 # install suid if your system has a mount table only root
140 X# can read. For SysV.4 and Solaris, the mount command may
141 X# reset the permissions of /etc/mnttab.
144 X# simple man page installation
147 XMANTARGET = "\$(PROG).$manext"
165 XOTHEROBJ = $di_otherobj
169 Xall: \$(PROG)\$(EXE_EXT)
171 X# This was tested using vc++ 5.0.
173 X \$(MAKE) CC=cl LD=cl EXE_EXT=".exe" OBJ_EXT=".obj" \\
174 X CFLAGS="\$(CFLAGS) -nologo -O2 \\
175 X OTHEROBJ="getopt.obj" \\
176 X -DI_STDLIB -DI_SYS_TYPES -DI_TIME -DI_WINDOWS \\
177 X -DI_GETDISKFREESPACE \\
178 X -DDEFAULT_FORMAT=\\\\\\"sMbuvpT\\\\\\"" \\
179 X LDFLAGS="-nologo -O2" \$(PROG).exe
181 X# This was tested using Cygnus gcc b19
183 X \$(MAKE) CC=gcc LD=gcc EXE_EXT=".exe" OBJ_EXT=".o" \\
184 X CFLAGS="\$(CFLAGS) -g -O2 \\
185 X OTHEROBJ="getopt.o" \\
186 X -DI_STDLIB -DI_SYS_TYPES -DI_TIME -DI_WINDOWS \\
187 X -DI_GETDISKFREESPACE \\
188 X -DDEFAULT_FORMAT=\\\\\\"sMbuvpT\\\\\\"" \\
189 X LDFLAGS="-g -O2" \$(PROG).exe
191 X####################
193 Xall: \$(PROG)\$(EXE_EXT)
194 X -\$(LN) -f \$(PROG)\$(EXE_EXT) \$(MPROG)\$(EXE_EXT)
197 X -\$(RM) -rf \$(PROG)\$(EXE_EXT) \$(MPROG)\$(EXE_EXT) *.o *.obj \\
201 X -\$(RM) -rf config.h config.sh Makefile \$(PROG)\$(EXE_EXT) \\
202 X \$(MPROG)\$(EXE_EXT) di\$(EXE_EXT) diskinfo\$(EXE_EXT) \\
203 X *.o *.obj UU Wanted Obsolete >/dev/null 2>&1
208 Xinstall: install-prog install-man
211 X -\$(TEST) -f \$(TARGET) && \$(MV) -f \$(TARGET) \$(TARGET).old
212 X \$(CP) -f \$(PROG) \$(TARGET)
213 X -\$(LN) -f \$(TARGET) \$(MTARGET)
216 X \$(CHOWN) \$(USER) \$(TARGET)
217 X \$(CHGRP) \$(GROUP) \$(TARGET)
218 X \$(CHMOD) \$(INSTPERM) \$(TARGET)
221 X \$(CP) -f di.1 \$(MANDIR)/\$(MANTARGET)
222 X \$(CHMOD) \$(MANPERM) \$(MANDIR)/\$(MANTARGET)
226 Xtar: MANIFEST README di.1 di.c getopt.c Makefile.SH configure \\
227 X Configure config_h.SH hints \\
228 X config.win95 win95.mak
229 X \$(CP) hints.base/*.sh hints
230 X \$(SHELL) mktar.sh \$?
235 X echo "" > MANIFEST.shar
236 X echo "" >> MANIFEST.shar
237 X echo "README 1 Read This" >> MANIFEST.shar
238 X echo "MANIFEST 1 MANIFEST" >> MANIFEST.shar
239 X echo "di.1 1 di Manual Page" >> MANIFEST.shar
240 X echo "di.c 1 di source" >> MANIFEST.shar
241 X echo "getopt.c 1 getopt source (from Cnews)" >> MANIFEST.shar
242 X echo "Configure 1 Configuration script" >> MANIFEST.shar
243 X echo "configure 1 gnu-like front-end for Configure" >> MANIFEST.shar
244 X echo "config_h.SH 1 Produces config.h" >> MANIFEST.shar
245 X echo "config.win95 1 config.h for win95" >> MANIFEST.shar
246 X echo "Makefile.SH 1 Produces Makefile" >> MANIFEST.shar
247 X echo "win95.mak 1 window95 makefile" >> MANIFEST.shar
248 X echo "hints 1" >> MANIFEST.shar
249 X echo "hints/aix.sh 1" >> MANIFEST.shar
250 X echo "hints/beos.sh 1" >> MANIFEST.shar
251 X echo "hints/dec_osf.sh 1" >> MANIFEST.shar
252 X echo "hints/freebsd.sh 1" >> MANIFEST.shar
253 X echo "hints/hpux.sh 1" >> MANIFEST.shar
254 X echo "hints/linux.sh 1" >> MANIFEST.shar
255 X echo "hints/dynix.sh 1" >> MANIFEST.shar
256 X echo "hints/dynixptx.sh 1" >> MANIFEST.shar
257 X echo "hints/irix.sh 1" >> MANIFEST.shar
258 X echo "hints/openbsd.sh 1" >> MANIFEST.shar
259 X echo "hints/solaris.sh 1" >> MANIFEST.shar
260 X echo "hints/unicos.sh 1" >> MANIFEST.shar
262 Xdi.shar: Configure configure config.win95 \\
263 X config_h.SH di.1 di.c getopt.c Makefile.SH \\
264 X README win95.mak MANIFEST hints
265 X \$(CP) hints.base/*.sh hints
266 X -\$(RM) -f di.shar Part??
267 X \$(MAKE) MANIFEST.shar
268 X makekit -i MANIFEST.shar -o MANIFEST.shar -s120k
269 X -@\$(RM) -f *.BAK MANIFEST.shar > /dev/null 2>&1
270 X \$(SHELL) setname.sh
275 X\$(PROG)\$(EXE_EXT): di\$(OBJ_EXT) \$(OTHEROBJ)
276 X \$(CC) \$(CFLAGS) \$(LDFLAGS) -o \$(PROG)\$(EXE_EXT) di\$(OBJ_EXT) \\
277 X \$(OTHEROBJ) \$(LIBS)
281 Xdi\$(OBJ_EXT): di.c config.h
282 X \$(CC) -c \$(CFLAGS) di.c
284 Xgetopt\$(OBJ_EXT): getopt.c
285 X \$(CC) -c \$(CFLAGS) getopt.c
293 if test 5386 -ne `wc -c <'Makefile.SH'`; then
294 echo shar: \"'Makefile.SH'\" unpacked with wrong size!
296 chmod +x 'Makefile.SH'
297 # end of 'Makefile.SH'
299 if test -f 'README' -a "${1}" != "-c" ; then
300 echo shar: Will not clobber existing file \"'README'\"
302 echo shar: Extracting \"'README'\" \(9353 characters\)
303 sed "s/^X//" >'README' <<'END_OF_FILE'
304 Xdi - disk information utility (version 2.3).
308 X 'di' is a disk information utility, displaying everything
309 X (and more) that your 'df' command does. It features the
310 X ability to display your disk usage in whatever format you
311 X desire/prefer/are used to. It is designed to be portable
312 X across many platforms.
316 X The installation process has been completely revamped
317 X beginning with version 2.0. di now uses dist 3.0PL70 to
318 X do its configuration.
320 X First, run Configure:
322 X ./Configure -d -s -e # non-interactive
323 X ./Configure -d -s -e -Dcc=gcc # non-interactive, and you want to use gcc
324 X ./Configure # interactive
326 X Then, do your make:
332 X AIX versions prior to 4.3 had a 'di' command. di is installed
333 X as 'diskinfo' instead for these AIX versions.
337 X Some systems (Sys V variants) only allow root to read the
338 X mount table. If this is the case, change the INSTPERM macro
339 X in the Makefile should be set to 4111, and the USER macro to root.
340 X In SysV.4 and Solaris, the mount command would reset the
341 X permissions to be root readable only (fixed in Solaris 7).
343 X If this is needed on your system, do:
347 X To install the manual pages:
351 X Windows installation:
353 X Cygnus gcc: make -f win95.mak windows-gcc
354 X MS VC++: nmake -f win95.mak windows
358 X di 2.3 has been tested on the following platforms:
360 X BSD/OS 4.0.1 (gcc 2.7.2.1)
361 X FreeBSD 2.1.5 (gcc 2.6.3), 2.2.6 (gcc 2.7.2.1), 2.2.7 (gcc 2.7.2.1),
362 X 3.3 (gcc 2.7.2.3), 3.3 (gcc 2.8.1)
363 X Solaris 7 (cc 5.0, gcc 2.8.1)
364 X Solaris 8 (cc 5.0, gcc 2.8.1)
365 X BeOS 4.5.2 intel (g++ 2.9-beos-980929)
366 X Linux 2.0.35 (gcc 2.7.2.3), 2.2.12 (gcc 2.91.66)
367 X Windows NTsp5 (vc 6.0)
369 X di 2.2 has been tested on the following platforms:
371 X BSD/OS 4.0.1 (gcc 2.7.2.1)
372 X FreeBSD 2.1.5 (gcc 2.6.3), 2.2.6 (gcc 2.7.2.1), 2.2.7 (gcc 2.7.2.1),
373 X 3.2 (gcc 2.95.1), 3.3 (gcc 2.7.2.3), 3.3 (gcc 2.8.1)
374 X Linux 2.0.35 (gcc 2.7.2.3)
375 X Linux 2.0.36 (gcc 2.7.2.3)
376 X Solaris 7 (SC3.0.1), 7 (gcc 2.95.1)
377 X Compaq Tru64 (Digital Unix, OSF/1) 4.0D, 4.0F
379 X di 2.0 has been tested on the following platforms:
381 X AIX 4.1.4.0, 4.3.0.0, 4.3.1.0 (egcs-1.1.1.1)
382 X BSD/OS 2.1 (gcc 1.42)
387 X Windows95 (cygnus gcc B19)
389 X di has been ported to the following systems in the past:
391 X A/UX, AIX, BSDI 1.x & 2.x, Convex, Cray UNICOS 9 & 10,
392 X Cray UNICOS/mk, FreeBSD 1.x and 2.x, HP/UX, Linux,
393 X NetBSD 1.x, Next 3.x, OSF/1, Pyramid, SCO 3.2.2 & 3.2.4,
394 X Sequent Dynix and PT/x, SGI Irix, Solaris, SunOS, Sys V.3,
395 X Sys V.4, Ultrix, Windows, Xenix
397 X Due to the revamped configuration process, some of these systems
398 X may not be properly configured as I don't have access to all of the
399 X platforms to test on.
403 X Solaris 2.6 has a bug in the kernel and reports the reserved
404 X space incorrectly. There is a kernel patch available (105572-05?).
406 X Send bug reports along with the output from 'di -A -x 2' and the
407 X output from your standard df command (as verbose as possible) to:
411 X If the Configure script doesn't set up the 'config.h' file
412 X correctly, please let me know. E-mail me the incorrect (and
413 X corrected if possible) config.h file, and any other information
414 X as appropriate. The goal is to be able to run Configure in
415 X non-interactive mode for any system.
420 X Modified hints for solaris to do 64 bit compilation.
421 X Removed extra libc setting for linux.
422 X Added support for BeOS. This required ansi function headers.
424 X Hints for dec_osf added.
425 X Changed HAS_GETMNTINFOFSIZE to be preferred over
426 X HAS_GETMNTINFOBSIZE; modified bsdos hints appropriately.
427 X Look for <sys/fs_types.h> include file.
429 X Added +DAportable for HP-UX.
430 X Hints for openbsd added.
431 X Made installperm as separate target in makefile.
432 X Modified duplicate checking slightly.
433 X Changed MNT_NOWAIT to MNT_WAIT. This will work better
434 X on FreeBSD. Hopefully will work w/nfs mounts.
436 X Now uses dist 3.0PL70 for configuration.
437 X Duplicate filesystems (automounted) are not displayed.
438 X This probably does not work for Digital's advfs.
440 X Added Windows w/gcc.
441 X The Solaris 2.6 statvfs() bug has a patch out for it.
442 X Patch #105572-05 (?).
446 X Added Windows. Don't know the routines to get the number
447 X of file slots or the file system type (FAT12/16/32).
448 X Changed default to display megabytes.
453 X Added Solaris large file system support. Note that
454 X ver 2.6 Beta_Update has a bug in the statvfs() routine,
455 X and the non-root available disk space is improperly
458 X Added mount time, mount options. Link di to the mi command.
460 X Fixed some ignore/include list problems. Fixed local mount
463 X Changed block values from unsigned long to doubles so that we
464 X can display using different block sizes (-d flag).
465 X Added -l flag for local filesystems only.
467 X Added A/UX [ blemoine@atheist.tamu.edu (Brett G. Lemoine) ]
468 X Added convex [ "Schilperoort J.W." <J.W.Schilperoort@research.ptt.nl> ]
470 X Fixed bsdi 1.x and bsdi 2.x. Fragments weren't supported.
471 X Fixed FreeBSD 1.x and 2.x; same problem.
472 X Changed sco_sl makefile entry.
474 X Fixed problem with display widths in conjunction with
475 X ignore/include lists.
477 X changed default length of filesystem type field to 7.
478 X new debug 'all' format.
479 X check for 0 fragment size; replace w/block size if we have it.
481 X sco nfs 'nothing' fix.
482 X freebsd 2.x; better freebsd filesystem types.
490 X removed mount option junk.
493 X cleaned up sgi in the makefile.
494 X changed linux to be w/o need_statfs_defs.
495 X solaris cdrom returning all sorts of negative values.
498 X sunOs filesystem type info.
501 X add dynix to makefile.
503 X sun had f_bfree instead of f_bavail!
506 X fixed width for -f M, -f S.
508 X Allow other characters in format string.
509 X 1.51 (local, pat@rwing)
510 X SunOS *does* support filesystem type info. Its all in the
511 X mntent structure, but requires a small bit of work (see source).
515 X solaris cdrom reports -2 for free blocks.
517 X Command line specification of filenames.
522 X # of inodes can be -1L
523 X return code for getDiskInfo shouldn't be checked.
524 X name of mount point must be maxpathlen.
532 X And for their comments and/or source and/or
533 X manual pages and/or bug fixes, thanks!
535 X jjb@jagware.bcc.com (J.J.Bailey)
536 X vogelke@c-17igp.wpafb.af.mil (Contr Karl Vogel)
538 X costales@ICSI.Berkeley.EDU (Bryan Costales)
539 X Mark Neale <mark@edscom.demon.co.uk>
540 X Pat Myrto <pat@rwing.uucp>
541 X [sunOS filesystem type stuff]
542 X henrikar@utctu1.ct.utwente.nl (Henri Karrenbeld)
544 X Peter Bray <Peter.Bray@serg.cse.unsw.edu.au>
545 X gsipe@pyramid.com (George M. Sipe)
547 X Jeffrey Mogul <mogul@pa.dec.com>
548 X [ultrix, osf/1, manual page, new format options]
549 X thomas@idx.kodak.com (Th. Bullinger)
551 X Seth Theriault <seth@connact.com>
553 X steve@nshore.org (Stephen J. Walick)
555 X Gerald Rinske <gerald@D012F291.mch.sni.de>
557 X Mike Grupenhoff <kashmir@snare.dorm.umd.edu>
559 X R.K.Lloyd@csc.liv.ac.uk
561 X "William Gibbs" <bill@wgc386.MV.COM>
563 X Randy Thompson <randyt@sequent.com>
565 X eriko@risc.austin.ibm.com (O'Shaughnessy Erik)
567 X Bill Davidsen <davidsen@tmr.com>
568 X [linux, SCO, etc., new format options]
569 X fredex@fcshome.stoneham.ma.us (fred smith)
571 X bag@clipper.cs.kiev.ua (Andrey Blochintsev)
573 X ginsbach@spacestar.net (Brian Ginsbach)
574 X [netbsd, irix, unicos]
580 X Copyright 1995-1999 Brad Lanam, Walnut Creek, CA, USA
582 X http://secure.gentoo.com/di/
583 X http://secure.gentoo.com/di/di-2.2.tar.gz
585 if test 9353 -ne `wc -c <'README'`; then
586 echo shar: \"'README'\" unpacked with wrong size!
590 if test -f 'config.win95' -a "${1}" != "-c" ; then
591 echo shar: Will not clobber existing file \"'config.win95'\"
593 echo shar: Extracting \"'config.win95'\" \(383 characters\)
594 sed "s/^X//" >'config.win95' <<'END_OF_FILE'
595 X/* config.h for win95 */
601 X#define _(args) args
612 X#define HAS_GETDISKFREESPACE
616 X#endif /* _config_h_ */
618 if test 383 -ne `wc -c <'config.win95'`; then
619 echo shar: \"'config.win95'\" unpacked with wrong size!
621 # end of 'config.win95'
623 if test -f 'config_h.SH' -a "${1}" != "-c" ; then
624 echo shar: Will not clobber existing file \"'config_h.SH'\"
626 echo shar: Extracting \"'config_h.SH'\" \(10815 characters\)
627 sed "s/^X//" >'config_h.SH' <<'END_OF_FILE'
630 X if test -f config.sh; then TOP=.;
631 X elif test -f ../config.sh; then TOP=..;
632 X elif test -f ../../config.sh; then TOP=../..;
633 X elif test -f ../../../config.sh; then TOP=../../..;
634 X elif test -f ../../../../config.sh; then TOP=../../../..;
636 X echo "Can't find config.sh."; exit 1
642 X*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
644 Xecho "Extracting config.h (with variable substitutions)"
645 Xsed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
647 X * This file was produced by running the config_h.SH script, which
648 X * gets its values from config.sh, which is generally produced by
649 X * running Configure.
651 X * Feel free to modify any of this as the need arises. Note, however,
652 X * that running config_h.SH again will wipe out any changes you've made.
653 X * For a more permanent change edit config.sh and rerun config_h.SH.
659 X * Package name : $package
660 X * Source directory : $src
661 X * Configuration time: $cf_time
662 X * Configured by : $cf_by
663 X * Target system : $myuname
670 X * This symbol is defined if the bcopy() routine is available to
671 X * copy blocks of memory.
673 X#$d_bcopy HAS_BCOPY /**/
676 X * This symbol is defined if the bzero() routine is available to
677 X * set a memory block to 0.
679 X#$d_bzero HAS_BZERO /**/
682 X * This symbol, if defined, indicates that the memcpy routine is available
683 X * to copy blocks of memory.
685 X#$d_memcpy HAS_MEMCPY /**/
688 X * This symbol, if defined, indicates that the memset routine is available
689 X * to set blocks of memory.
691 X#$d_memset HAS_MEMSET /**/
694 X * This symbol, if defined, indicates to the C program that it should
695 X * include <limits.h> to get definition of symbols like WORD_BIT or
696 X * LONG_MAX, i.e. machine dependant limitations.
698 X#$i_limits I_LIMITS /**/
701 X * This symbol, if defined, indicates to the C program that it should
702 X * include <malloc.h>.
704 X#$i_malloc I_MALLOC /**/
707 X * This symbol, if defined, indicates to the C program that it should
708 X * include <memory.h>.
710 X#$i_memory I_MEMORY /**/
713 X * This symbol, if defined, indicates that <stdlib.h> exists and should
716 X#$i_stdlib I_STDLIB /**/
719 X * This symbol, if defined, indicates to the C program that it should
720 X * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
722 X#$i_string I_STRING /**/
725 X * This symbol, if defined, indicates to the C program that it should
726 X * include <sys/param.h>.
728 X#$i_sysparam I_SYS_PARAM /**/
731 X * This symbol, if defined, indicates to the C program that it should
732 X * include <sys/stat.h>.
734 X#$i_sysstat I_SYS_STAT /**/
737 X * This symbol, if defined, indicates to the C program that it should
738 X * include <sys/types.h>.
740 X#$i_systypes I_SYS_TYPES /**/
743 X * This symbol, if defined, indicates to the C program that it should
744 X * include <time.h>.
747 X * This symbol, if defined, indicates to the C program that it should
748 X * include <sys/time.h>.
750 X#$i_time I_TIME /**/
751 X#$i_systime I_SYS_TIME /**/
754 X * This symbol, if defined, indicates to the C program that it should
755 X * include <unistd.h>.
757 X#$i_unistd I_UNISTD /**/
760 X * If defined, this macro indicates that the C compiler can handle
761 X * function prototypes.
764 X * This macro is used to declare function parameters for folks who want
765 X * to make declarations with prototypes using a different style than
766 X * the above macros. Use double parentheses. For example:
768 X * int main _((int argc, char *argv[]));
770 X#$prototype CAN_PROTOTYPE /**/
771 X#ifdef CAN_PROTOTYPE
772 X#define _(args) args
778 X * This symbol indicates how much support of the void type is given by this
779 X * compiler. What various bits mean:
781 X * 1 = supports declaration of void
782 X * 2 = supports arrays of pointers to functions returning void
783 X * 4 = supports comparisons between pointers to void functions and
784 X * addresses of void functions
785 X * 8 = suports declaration of generic void pointers
787 X * The package designer should define VOIDUSED to indicate the requirements
788 X * of the package. This can be done either by #defining VOIDUSED before
789 X * including config.h, or by defining defvoidused in Myinit.U. If the
790 X * latter approach is taken, only those flags will be tested. If the
791 X * level of void support necessary is not present, defines void to int.
794 X#define VOIDUSED $defvoidused
796 X#define VOIDFLAGS $voidflags
797 X#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
798 X#define void int /* is void to be avoided? */
799 X#define M_VOID /* Xenix strikes again */
802 X/* HAS_64BIT_STATFS_FLDS:
803 X * This symbol is defined if 64 bit statfs fields are used.
805 X#$d_64bit_statfs_flds HAS_64BIT_STATFS_FLDS /**/
808 X * This symbol is defined if the endmntent() routine is available.
810 X#$d_endmntent HAS_ENDMNTENT /**/
813 X * This symbol is defined if the fs_info() routine is available.
815 X#$d_fs_info HAS_FS_INFO /**/
818 X * This symbol is defined if the getmnt() routine is available.
820 X#$d_getmnt HAS_GETMNT /**/
823 X * This symbol is defined if the getmntent() routine is available.
825 X#$d_getmntent HAS_GETMNTENT /**/
828 X * This symbol is defined if the getmntinfo() routine is available.
830 X#$d_getmntinfo HAS_GETMNTINFO /**/
833 X * This symbol, if defined, indicates that the optind external
834 X * variable is defined.
836 X#$d_optind HAS_OPTIND /**/
837 X#if ! defined (HAS_OPTIND)
839 X extern char *optarg;
843 X * This symbol is defined if the mntctl() routine is available.
845 X#$d_mntctl HAS_MNTCTL /**/
848 X * This symbol is defined if the mnt_time or vmt_time is available
849 X * in the mount table.
851 X#$d_mnttime HAS_MNT_TIME /**/
854 X * This symbol is defined if the setmntent() routine is available.
856 X/* HAS_SETMNTENT_ONE_ARG:
857 X * This symbol is defined if the setmntent() has one argument.
859 X#$d_setmntent HAS_SETMNTENT /**/
860 X#$d_setmntent_one_arg HAS_SETMNTENT_ONE_ARG /**/
863 X * This symbol is defined if statfs() uses the bsd API.
865 X/* HAS_STATFS_SYSV3:
866 X * This symbol is defined if statfs() uses the System V.3 API.
869 X * This symbol may be set if statfs() uses the System V.3 API.
870 X * It should be set to the appropriate system definition
871 X * if the block size is not UBSIZE.
873 X#$d_statfsbsd HAS_STATFS_BSD /**/
874 X#$d_statfssysv3 HAS_STATFS_SYSV3 /**/
875 X#define Ubsize $ubsize /**/
878 X * This symbol is defined if the statvfs() routine is available.
880 X#$d_statvfs HAS_STATVFS /**/
883 X * This symbol is defined if the sysfs() routine is available.
885 X#$d_sysfs HAS_SYSFS /**/
888 X * This symbol, if defined, indicates to the C program that it should
889 X * include <fshelp.h>.
891 X#$i_fshelp I_FSHELP /**/
894 X * This symbol, if defined, indicates to the C program that it should
895 X * include <kernel/fs_info.h>.
897 X#$i_kernfsinfo I_KERNFSINFO /**/
900 X * This symbol, if defined, indicates to the C program that it should
901 X * include <mntent.h>.
903 X#$i_mntent I_MNTENT /**/
906 X * This symbol, if defined, indicates to the C program that it should
907 X * include <mnttab.h>.
909 X#$i_mnttab I_MNTTAB /**/
911 X/* I_STOR_DIRECTORY:
912 X * This symbol, if defined, indicates to the C program that it should
913 X * include <storage/Directory.h>.
915 X#$i_stor_directory I_STOR_DIRECTORY /**/
918 X * This symbol, if defined, indicates to the C program that it should
919 X * include <storage/Entry.h>.
921 X#$i_stor_entry I_STOR_ENTRY /**/
924 X * This symbol, if defined, indicates to the C program that it should
925 X * include <storage/Path.h>.
927 X#$i_stor_path I_STOR_PATH /**/
930 X * This symbol, if defined, indicates to the C program that it should
931 X * include <sys/fstyp.h>.
933 X#$i_sysfstyp I_SYS_FSTYP /**/
936 X * This symbol, if defined, indicates to the C program that it should
937 X * include <sys/fstypes.h>.
940 X * This symbol, if defined, indicates to the C program that it should
941 X * include <sys/fs_types.h>.
943 X#$i_sysfstypes I_SYS_FSTYPES /**/
944 X#$i_sysfs_types I_SYS_FS_TYPES /**/
947 X * This symbol, if defined, indicates to the C program that it should
948 X * include <sys/mntctl.h>.
950 X#$i_sysmntctl I_SYS_MNTCTL /**/
953 X * This symbol, if defined, indicates to the C program that it should
954 X * include <sys/mntent.h>.
956 X#$i_sysmntent I_SYS_MNTENT /**/
959 X * This symbol, if defined, indicates to the C program that it should
960 X * include <sys/mnttab.h>.
962 X#$i_sysmnttab I_SYS_MNTTAB /**/
965 X * This symbol, if defined, indicates to the C program that it should
966 X * include <sys/mount.h>.
968 X/* HAS_GETMNTINFO_FSTYPENAME:
969 X * This symbol is defined if the f_fstypename field is available.
971 X/* HAS_GETMNTINFO_FSIZE:
972 X * This symbol, if defined, indicates that f_fsize should
973 X * be used to compute the filesystem block size.
975 X/* HAS_GETMNTINFO_BSIZE:
976 X * This symbol, if defined, indicates that f_bsize should
977 X * be used to compute the filesystem block size.
979 X#$i_sysmount I_SYS_MOUNT /**/
980 X#$d_getmntinfofstype HAS_GETMNTINFO_FSTYPENAME /**/
981 X#$d_getmntinfofsize HAS_GETMNTINFO_FSIZE /**/
982 X#$d_getmntinfobsize HAS_GETMNTINFO_BSIZE /**/
985 X * This symbol, if defined, indicates to the C program that it should
986 X * include <sys/statfs.h>.
988 X/* HAS_STATFS_FRSIZE:
989 X * This symbol, if defined, indicates that the f_frsize field is
990 X * part of the statfs structure.
992 X#$i_sysstatfs I_SYS_STATFS /**/
993 X#$d_statfs_frsize HAS_STATFS_FRSIZE /**/
996 X * This symbol, if defined, indicates to the C program that it should
997 X * include <sys/statvfs.h>.
999 X/* HAS_STATVFS_BASETYPE:
1000 X * This symbol, if defined, indicates to the C program that the
1001 X * f_basetyep symbol is available in the statvfs structure.
1003 X#$i_sysstatvfs I_SYS_STATVFS /**/
1004 X#$d_statvfsbasetype HAS_STATVFS_BASETYPE /**/
1007 X * This symbol, if defined, indicates to the C program that it should
1008 X * include <sys/vfs.h>.
1010 X#$i_sysvfs I_SYS_VFS /**/
1013 X * This symbol, if defined, indicates to the C program that it should
1014 X * include <sys/vfstab.h>.
1016 X#$i_sysvfstab I_SYS_VFSTAB /**/
1019 X * This symbol, if defined, indicates to the C program that it should
1020 X * include <sys/vmount.h>.
1022 X#$i_sysvmount I_SYS_VMOUNT /**/
1027 if test 10815 -ne `wc -c <'config_h.SH'`; then
1028 echo shar: \"'config_h.SH'\" unpacked with wrong size!
1030 # end of 'config_h.SH'
1032 if test -f 'configure' -a "${1}" != "-c" ; then
1033 echo shar: Will not clobber existing file \"'configure'\"
1035 echo shar: Extracting \"'configure'\" \(2855 characters\)
1036 sed "s/^X//" >'configure' <<'END_OF_FILE'
1041 X# GNU configure-like front end to metaconfig's Configure.
1043 X# Written by Andy Dougherty <doughera@lafcol.lafayette.edu>
1044 X# Matthew Green <mrg@mame.mu.oz.au> and Tom Tromey <tromey@cygnus.com>.
1046 X# Reformatted and modified for inclusion in the dist-3.0 package by
1047 X# Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com>.
1049 X# This script belongs to the public domain and may be freely redistributed.
1051 X# The remaining of this leading shell comment may be removed if you
1052 X# include this script in your own package.
1055 X# Revision 3.0.1.2 1997/02/28 16:28:49 ram
1056 X# patch61: added the srcdir support now that we have src.U
1057 X# patch61: random cleanup for nicer help message
1059 X# Revision 3.0.1.1 1995/07/25 14:16:21 ram
1063 X(exit $?0) || exec sh $0 $argv:q
1068 Xwhile test $# -gt 0; do
1072 XUsage: configure [options]
1073 XThis is GNU configure-like front end for a metaconfig-generated Configure.
1074 XIt emulates the following GNU configure options (must be fully spelled out):
1076 X --help --srcdir=DIRECTORY
1077 X --no-create --silent
1078 X --prefix=PREFIX --verbose
1081 XAnd it honours these environment variables: CC, CFLAGS and DEFS.
1083 XFurthermore, it ignores the following arguments, when supplied:
1085 X --cache-file=FILE --target=TARGET
1086 X --enable-* --with-*
1096 X arg=`echo $1 | sed 's/--prefix=/-Dprefix=/'`
1102 X opts="$opts -Dprefix=$1"
1106 X arg=`echo $1 | sed 's/--srcdir=//'`
1116 X exec >/dev/null 2>&1
1127 X --host=*|--target=*|--cache-file=*|--enable-*|--with-*)
1131 X opt=`echo $1 | sed 's/=.*//'`
1132 X echo "This GNU configure front end does not understand $opt"
1144 X*) opts="$opts -Dcc='$CC'";;
1147 X# Join DEFS and CFLAGS together.
1155 X*) ccflags="$ccflags $CFLAGS";;
1159 X*) opts="$opts -Dccflags='$ccflags'";;
1162 X# Don't use -s if they want verbose mode
1164 X'') copt="$copt -ds";;
1165 X*) copt="$copt -d";;
1168 X# Figure out srcdir if not set already
1170 X'') srcdir=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;;
1174 X*) opts="$opts -Dsrc=$srcdir";;
1177 Xset X sh $srcdir/Configure $copt $create $opts
1182 if test 2855 -ne `wc -c <'configure'`; then
1183 echo shar: \"'configure'\" unpacked with wrong size!
1185 chmod +x 'configure'
1186 # end of 'configure'
1188 if test -f 'di.1' -a "${1}" != "-c" ; then
1189 echo shar: Will not clobber existing file \"'di.1'\"
1191 echo shar: Extracting \"'di.1'\" \(7676 characters\)
1192 sed "s/^X//" >'di.1' <<'END_OF_FILE'
1199 X.\" Copyright 1994-1999 Brad Lanam Walnut Creek CA USA
1203 X.\" for di version 2.0
1205 X.TH di 1 "7 January 1999"
1207 Xdi \- disk information
1209 X.\" di [-Aahlnt] [-d display-size] [-f format] [-i ignore-fstyp-list]
1210 X.\" [-I include-fstyp-list] [-s sort-type] [-w block-width]
1211 X.\" [-W inode-width] [-x level] [file [...]]
1213 X[\fB-Aahlnt\fR] [\fB-d\fR \fIdisplay-size\fR] [\fB-f\fR \fIformat\fR]
1214 X[\fB-i\fR \fIignore-fstyp-list\fR] [\fB-I\fR \fIinclude-fstyp-list\fR]
1215 X[\fB-s\fR \fIsort-type\fR]
1216 X[\fB-w\fR \fIblock-width\fR] [\fB-W\fR \fIinode-width\fR] [\fB-x\fR \fIlevel\fR]
1221 X.NXA "di command" "dumpfs command"
1222 X.NXA "di command" "df command"
1223 X.NXR "disk" "displaying free space"
1225 XDisplays usage information on mounted filesystems. Block values are
1226 Xreported in megabytes (1024k bytes) by default, but may be changed.
1227 XIf \fIfile\fR is specified,
1228 Xthe usage information for the partition on which \fIfile\fR is
1229 Xlocated is printed.
1231 XUnless the \-a flag is specified, certain mounted filesystems
1232 Xwill not normally be displayed.
1234 XFilesystems that have a total
1235 Xblock count of 0 will not be displayed.
1237 XFilesystems that have a mount option of 'ignore' set will not
1240 XFilesystems that are automounted, and are duplicates of an
1241 Xexisting filesystem are not displayed. (May not work on
1245 XDisplays the mounted filesystem information.
1247 XSeveral switches may be specified to
1248 Xcontrol the output of
1254 XPrint all fields (used for debugging). Mount points and special
1255 Xdevice names are printed at full width. The \-a flag is set.
1258 XPrints all mounted devices (normally, those with 0 total blocks are not
1259 Xprinted - e.g. \fB/dev/proc\fR, \fB/dev/fd\fR).
1261 X.B \-d\ \fIdisplay-size\fR
1262 XDisplay the blocks in units specified by \fIdisplay-size\fR. \fIdisplay-size\fR
1263 Xmay be one of: p \- posix (512 bytes), k \- kilobytes,
1264 Xm \- megabytes, g - gigabytes, or a specific value to use as the block size.
1265 XBlock display sizes greater than 1024 bytes are displayed with a precision
1266 Xof one decimal place after the radix.
1268 X.B \-f\ \fIformat\fR
1269 XUse the specified format string \fIformat\fR. Format strings are
1273 XPrint out the usage for
1276 X.B \-i \fIignore-fstype-list\fR
1277 XIgnore the file system types listed in \fIignore-fstyp-list\fR.
1278 XThe list is a comma separated list of file system types. e.g.
1281 X.B \-I \fIinclude-fstype-list\fR
1282 XInclude only the file system types listed in \fIinclude-fstyp-list\fR.
1283 XThe list is a comma separated list of file system types. e.g.
1287 XDisplay only local file systems. This option is not fully implemented
1288 Xfor all systems as of version 1.17.
1291 XDo not print a header line above the list of file systems. Useful when
1292 Xparsing the output of \fIdi\fR.
1294 X.B \-s\ \fIsort-type\fR
1295 XUse \fIsort-type\fR to sort the output.
1296 XThe output of \fIdi\fR is normally sorted by name. The output may
1297 Xbe left unsorted (\fB-s\ n\fR command line switch) i.e. as it appears
1298 Xin the mount table or may be
1299 Xsorted by the special device name
1300 X(\fB-s\ s\fR command line switch). If the \fB-s \ r\fR command line
1301 Xswitch is used, the sort order will be reversed.
1302 XIf \fIfile\fR is specifed on the
1303 Xcommand line, no sorting is done.
1306 XPrint a totals line below the list of file systems.
1308 X.B \-w\ \fIblock-width\fR
1309 XSet the print width for block values. Default is eight.
1311 X.B \-W\ \fIinode-width\fR
1312 XSet the print width for inode values. Default is seven.
1314 X.B \-x\ \fIlevel\fR
1315 XSet the program's debugging level to \fIdebug-level\fR.
1317 XThe output of \fIdi\fR may be specified via a format string. This
1318 Xstring may be given either via the \fB-f\fR command line switch or by
1319 Xthe \fBDIFMT\fR environment variable. The format string may specify the
1323 XPrint the name of the mount point.
1326 XPrint the name of the mount point, at full length. The mount point
1327 Xis formatted to the maximum width necessary for the longest mount
1331 XPrint the total number of Kbytes on the file system.
1332 XSee also the \-d option.
1335 XPrint the total number of Kbytes on the file system
1336 Xavailable for use by normal
1338 XSee also the \-d option.
1341 XPrint the number of Kbytes in use on the file system
1342 X(actual number of kbytes used = total - free).
1343 XSee also the \-d option.
1346 XPrint the number of Kbytes not available for use by normal users
1347 X(total - available).
1348 XSee also the \-d option.
1351 XPrint the number of free (unused) Kbytes on the file system.
1352 XSee also the \-d option.
1355 XPrint the number of Kbytes available for use by normal users.
1356 XSee also the \-d option.
1359 XPrint the percentage of Kbytes not available for use by normal users
1361 Xkbytes not available for use / total disk space).
1362 XSee also the \-d option.
1365 XPrint the percentage of total Kbytes in use
1367 Xkbytes used / total disk space).
1368 XSee also the \-d option.
1371 XPrint the percentage of Kbytes in use, BSD-style. Represents the
1372 Xpercentage of user-available space in use. Note that values over 100%
1374 X(actual number of kbytes used / disk
1375 Xspace available to non-root users).
1376 XSee also the \-d option.
1379 XPrint the total number of file slots (inodes) that can be created on the file
1383 XPrint the number of file slots in use.
1386 XPrint the number of file slots available.
1389 XPrint the percentage of file slots in use.
1392 XPrint the file system name (special device or remote mount point).
1395 XPrint the file system name (special device or remote mount point),
1397 XThe file system name
1398 Xis formatted to the maximum width necessary for the longest file system
1402 XPrint the file system type.
1405 XPrint the file system type at full length. The file system type
1406 Xis formatted to the maximum width necessary for the longest file system
1410 XPrint the time the filesystem was mounted. This column is
1411 Xnot supported on all systems.
1414 XPrint the filesystem mount options.
1416 XThe default format string for \fIdi\fR is \fBsmbuvpT\fR.
1418 XThe default format string for \fImi\fR is \fBMSTIO\R.
1420 XThe format string may also contain any other character not listed
1421 Xabove. The character will be printed as is. e.g. \fBdi -f 'mbuvp|iUFP'\fR
1422 Xwill print the character '|' between the disk usage and the file slot
1423 Xusage. The command sequence (Bourne Shell):
1431 Xwill print two lines of data for each filesystem.
1434 Xequivalent format strings for System V release 4 are:
1437 X\fI/usr/bin/df -v\fR di -dp \-f msbuf1
1439 X\fI/usr/bin/df -k\fR di -dk \-f sbcvpm
1441 X\fI/usr/ucb/df\fR di -dk \-f sbuv2m
1444 XIf you like your numbers to add up/calculate the percentage
1446 Xof the following format strings:
1456 XFor filesystems that do not report available blocks (e.g. System V
1457 Xrelease 3), the number of available blocks is considered to be the
1458 Xnumber of free blocks.
1460 XDo not replace your system's \fIdf\fR command with this program. You
1461 Xwill in all likelihood break your installation procedures.
1463 Xdf(1), fstab(5), getmnt(2), getmntinfo(2), mnttab(4), mount(1M)
1464 Xstatfs(2), statvfs(2)
1466 XThis program is Copyright 1994-1999 by Brad Lanam.
1468 XBrad Lanam, Walnut Creek, CA (bll@gentoo.com).
1470 if test 7676 -ne `wc -c <'di.1'`; then
1471 echo shar: \"'di.1'\" unpacked with wrong size!
1475 if test -f 'getopt.c' -a "${1}" != "-c" ; then
1476 echo shar: Will not clobber existing file \"'getopt.c'\"
1478 echo shar: Extracting \"'getopt.c'\" \(1664 characters\)
1479 sed "s/^X//" >'getopt.c' <<'END_OF_FILE'
1484 X * getopt - get option letter from argv
1486 X * from Cnews by Henry Spencer
1491 Xstatic char getopt_c_rcsid [] =
1493 Xstatic char getopt_c_source [] =
1498 X#include <string.h>
1500 Xchar *optarg; /* Global argument pointer. */
1501 Xint optind = 0; /* Global argv index. */
1503 Xstatic char *scan = NULL; /* Private scan pointer. */
1506 Xgetopt(argc, argv, optstring)
1517 X if (scan == NULL || *scan == '\0')
1524 X if (optind >= argc || argv[optind][0] != '-' ||
1525 X argv[optind][1] == '\0')
1530 X if (strcmp(argv[optind], "--")==0)
1536 X scan = argv[optind]+1;
1541 X place = strchr(optstring, c);
1543 X if (place == NULL || c == ':')
1545 X fprintf(stderr, "%s: unknown option -%c\n", argv[0], c);
1550 X if (*place == ':')
1552 X if (*scan != '\0')
1557 X else if (optind < argc)
1559 X optarg = argv[optind];
1564 X fprintf(stderr, "%s: -%c argument missing\n", argv[0], c);
1572 if test 1664 -ne `wc -c <'getopt.c'`; then
1573 echo shar: \"'getopt.c'\" unpacked with wrong size!
1577 if test ! -d 'hints' ; then
1578 echo shar: Creating directory \"'hints'\"
1581 if test -f 'hints/aix.sh' -a "${1}" != "-c" ; then
1582 echo shar: Will not clobber existing file \"'hints/aix.sh'\"
1584 echo shar: Extracting \"'hints/aix.sh'\" \(186 characters\)
1585 sed "s/^X//" >'hints/aix.sh' <<'END_OF_FILE'
1588 X 3*) di_prog="diskinfo" ;;
1589 X 4.[012]*) di_prog="diskinfo" ;;
1590 X *) di_prog="di" ;;
1595 if test 186 -ne `wc -c <'hints/aix.sh'`; then
1596 echo shar: \"'hints/aix.sh'\" unpacked with wrong size!
1598 # end of 'hints/aix.sh'
1600 if test -f 'hints/beos.sh' -a "${1}" != "-c" ; then
1601 echo shar: Will not clobber existing file \"'hints/beos.sh'\"
1603 echo shar: Extracting \"'hints/beos.sh'\" \(590 characters\)
1604 sed "s/^X//" >'hints/beos.sh' <<'END_OF_FILE'
1606 X# unfortunately, nm doesn't find 'fs_info'.
1611 Xccflags="-I/boot/develop/headers/posix -I/boot/develop/headers/be"
1612 Xincpath="/boot/develop/headers/posix:/boot/develop/headers/be"
1615 X libc="/boot/develop/lib/x86/libroot.so"
1616 X libpth="/boot/develop/lib/x86"
1617 X libs='-lroot -lbe'
1620 X libc="/boot/develop/lib/ppc/libroot.so" #???
1621 X libpth="/boot/develop/lib/ppc" #???
1622 X libs='-lroot -lbe'
1626 if test 590 -ne `wc -c <'hints/beos.sh'`; then
1627 echo shar: \"'hints/beos.sh'\" unpacked with wrong size!
1629 # end of 'hints/beos.sh'
1631 if test -f 'hints/dec_osf.sh' -a "${1}" != "-c" ; then
1632 echo shar: Will not clobber existing file \"'hints/dec_osf.sh'\"
1634 echo shar: Extracting \"'hints/dec_osf.sh'\" \(75 characters\)
1635 sed "s/^X//" >'hints/dec_osf.sh' <<'END_OF_FILE'
1639 if test 75 -ne `wc -c <'hints/dec_osf.sh'`; then
1640 echo shar: \"'hints/dec_osf.sh'\" unpacked with wrong size!
1642 # end of 'hints/dec_osf.sh'
1644 if test -f 'hints/dynix.sh' -a "${1}" != "-c" ; then
1645 echo shar: Will not clobber existing file \"'hints/dynix.sh'\"
1647 echo shar: Extracting \"'hints/dynix.sh'\" \(68 characters\)
1648 sed "s/^X//" >'hints/dynix.sh' <<'END_OF_FILE'
1652 if test 68 -ne `wc -c <'hints/dynix.sh'`; then
1653 echo shar: \"'hints/dynix.sh'\" unpacked with wrong size!
1655 # end of 'hints/dynix.sh'
1657 if test -f 'hints/dynixptx.sh' -a "${1}" != "-c" ; then
1658 echo shar: Will not clobber existing file \"'hints/dynixptx.sh'\"
1660 echo shar: Extracting \"'hints/dynixptx.sh'\" \(71 characters\)
1661 sed "s/^X//" >'hints/dynixptx.sh' <<'END_OF_FILE'
1665 if test 71 -ne `wc -c <'hints/dynixptx.sh'`; then
1666 echo shar: \"'hints/dynixptx.sh'\" unpacked with wrong size!
1668 # end of 'hints/dynixptx.sh'
1670 if test -f 'hints/freebsd.sh' -a "${1}" != "-c" ; then
1671 echo shar: Will not clobber existing file \"'hints/freebsd.sh'\"
1673 echo shar: Extracting \"'hints/freebsd.sh'\" \(143 characters\)
1674 sed "s/^X//" >'hints/freebsd.sh' <<'END_OF_FILE'
1684 if test 143 -ne `wc -c <'hints/freebsd.sh'`; then
1685 echo shar: \"'hints/freebsd.sh'\" unpacked with wrong size!
1687 # end of 'hints/freebsd.sh'
1689 if test -f 'hints/hpux.sh' -a "${1}" != "-c" ; then
1690 echo shar: Will not clobber existing file \"'hints/hpux.sh'\"
1692 echo shar: Extracting \"'hints/hpux.sh'\" \(405 characters\)
1693 sed "s/^X//" >'hints/hpux.sh' <<'END_OF_FILE'
1695 Xccflags="$ccflags -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
1696 Xd_setmntent_one_arg='undef'
1700 X ccflags="-Wall $ccflags"
1705 X ccflags="+DAportable $ccflags"
1709 X ccflags="-Ae $ccflags"
1713 if test 405 -ne `wc -c <'hints/hpux.sh'`; then
1714 echo shar: \"'hints/hpux.sh'\" unpacked with wrong size!
1716 # end of 'hints/hpux.sh'
1718 if test -f 'hints/irix.sh' -a "${1}" != "-c" ; then
1719 echo shar: Will not clobber existing file \"'hints/irix.sh'\"
1721 echo shar: Extracting \"'hints/irix.sh'\" \(190 characters\)
1722 sed "s/^X//" >'hints/irix.sh' <<'END_OF_FILE'
1730 X d_64bit_statfs_flds="define"
1736 if test 190 -ne `wc -c <'hints/irix.sh'`; then
1737 echo shar: \"'hints/irix.sh'\" unpacked with wrong size!
1739 # end of 'hints/irix.sh'
1741 if test -f 'hints/linux.sh' -a "${1}" != "-c" ; then
1742 echo shar: Will not clobber existing file \"'hints/linux.sh'\"
1744 echo shar: Extracting \"'hints/linux.sh'\" \(391 characters\)
1745 sed "s/^X//" >'hints/linux.sh' <<'END_OF_FILE'
1749 X libc="/lib/libc.so.5.0.9"
1750 X d_statfssysv3="undef"
1751 X d_statfsbsd="define"
1757 X ccflags="$ccflags `/usr/bin/getconf LFS_CFLAGS`"
1758 X ldflags="$ldflags `/usr/bin/getconf LFS_LDFLAGS`"
1759 X libs="$libs `/usr/bin/getconf LFS_LIBS`"
1763 if test 391 -ne `wc -c <'hints/linux.sh'`; then
1764 echo shar: \"'hints/linux.sh'\" unpacked with wrong size!
1766 # end of 'hints/linux.sh'
1768 if test -f 'hints/openbsd.sh' -a "${1}" != "-c" ; then
1769 echo shar: Will not clobber existing file \"'hints/openbsd.sh'\"
1771 echo shar: Extracting \"'hints/openbsd.sh'\" \(111 characters\)
1772 sed "s/^X//" >'hints/openbsd.sh' <<'END_OF_FILE'
1778 if test 111 -ne `wc -c <'hints/openbsd.sh'`; then
1779 echo shar: \"'hints/openbsd.sh'\" unpacked with wrong size!
1781 # end of 'hints/openbsd.sh'
1783 if test -f 'hints/solaris.sh' -a "${1}" != "-c" ; then
1784 echo shar: Will not clobber existing file \"'hints/solaris.sh'\"
1786 echo shar: Extracting \"'hints/solaris.sh'\" \(1007 characters\)
1787 sed "s/^X//" >'hints/solaris.sh' <<'END_OF_FILE'
1792 X ccflags="`/usr/bin/getconf LFS_CFLAGS`"
1793 X ldflags="`/usr/bin/getconf LFS_LDFLAGS`"
1794 X libs="$libs `/usr/bin/getconf LFS_LIBS`"
1798 X ccflags="`/usr/bin/getconf LFS_CFLAGS`"
1799 X ldflags="`/usr/bin/getconf LFS_LDFLAGS`"
1800 X libs="$libs `/usr/bin/getconf LFS_LIBS`"
1805 X *gcc*) ccflags="-Wall $ccflags"
1807 X *) ccflags="-Xa -v -fast $ccflags"
1808 X ldflags="-fast $ldflags"
1812 X if [ -x /usr/bin/isainfo -a \
1813 X `uname -m` = sun4u -a \
1814 X `/usr/bin/isainfo -b` = 64 ]
1816 X ccflags="${ccflags} -xarch=v9"
1817 X ldflags="${ldflags} -xarch=v9"
1825 if test 1007 -ne `wc -c <'hints/solaris.sh'`; then
1826 echo shar: \"'hints/solaris.sh'\" unpacked with wrong size!
1828 # end of 'hints/solaris.sh'
1830 if test -f 'hints/unicos.sh' -a "${1}" != "-c" ; then
1831 echo shar: Will not clobber existing file \"'hints/unicos.sh'\"
1833 echo shar: Extracting \"'hints/unicos.sh'\" \(173 characters\)
1834 sed "s/^X//" >'hints/unicos.sh' <<'END_OF_FILE'
1842 Xd_getmntinfo="undef"
1843 Xd_setmntent_one_arg="define"
1845 if test 173 -ne `wc -c <'hints/unicos.sh'`; then
1846 echo shar: \"'hints/unicos.sh'\" unpacked with wrong size!
1848 # end of 'hints/unicos.sh'
1850 if test -f 'win95.mak' -a "${1}" != "-c" ; then
1851 echo shar: Will not clobber existing file \"'win95.mak'\"
1853 echo shar: Extracting \"'win95.mak'\" \(1267 characters\)
1854 sed "s/^X//" >'win95.mak' <<'END_OF_FILE'
1856 X# di makefile for windows95
1858 X# Copyright 1995-1999 Brad Lanam
1874 X echo nmake -f win95.mak windows
1875 X echo or make -f win95.mak windows-gcc
1877 X# This was tested using vc++ 5.0.
1879 X $(MAKE) -f win95.mak CC=cl LD=cl EXE_EXT=".exe" OBJ_EXT=".obj" \
1880 X OTHEROBJ="getopt.obj" \
1882 X CFLAGS="$(CFLAGS) -nologo -O2 \
1883 X -DMPROG=\\\"$(MPROG)\\\" \
1884 X -DDEFAULT_FORMAT=\\\"sMbuvpT\\\"" \
1885 X LDFLAGS="-nologo -O2" $(PROG).exe
1887 X# This was tested using Cygnus gcc b19
1889 X $(MAKE) -f win95.mak CC=gcc LD=gcc EXE_EXT=".exe" OBJ_EXT=".o" \
1890 X OTHEROBJ="getopt.o" \
1892 X CFLAGS="$(CFLAGS) -g -O2 \
1893 X -DI_LIMITS -DI_UNISTD -DI_SYS_PARAM \
1894 X -DMPROG=\\\"$(MPROG)\\\" \
1895 X -DDEFAULT_FORMAT=\\\"sMbuvpT\\\"" \
1896 X LDFLAGS="-g -O2" $(PROG).exe
1900 Xconfig.h: config.win95
1901 X $(CP) config.win95 config.h
1903 X####################
1905 X$(PROG)$(EXE_EXT): di$(OBJ_EXT) $(OTHEROBJ)
1906 X $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG)$(EXE_EXT) di$(OBJ_EXT) \
1907 X $(OTHEROBJ) $(LIBS)
1911 Xdi$(OBJ_EXT): di.c config.h
1912 X $(CC) -c $(CFLAGS) di.c
1914 Xgetopt$(OBJ_EXT): getopt.c
1915 X $(CC) -c $(CFLAGS) getopt.c
1917 if test 1267 -ne `wc -c <'win95.mak'`; then
1918 echo shar: \"'win95.mak'\" unpacked with wrong size!
1920 chmod +x 'win95.mak'
1921 # end of 'win95.mak'
1923 echo shar: End of archive 1 \(of 3\).
1924 cp /dev/null ark1isdone
1927 if test ! -f ark${I}isdone ; then
1928 MISSING="${MISSING} ${I}"
1931 if test "${MISSING}" = "" ; then
1932 echo You have unpacked all 3 archives.
1933 rm -f ark[1-9]isdone
1935 echo You still need to unpack the following archives:
1938 ## End of shell archive.