]>
Commit | Line | Data |
---|---|---|
f080bcb0 | 1 | #! /bin/sh |
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'\" | |
17 | else | |
18 | echo shar: Extracting \"'MANIFEST'\" \(470 characters\) | |
19 | sed "s/^X//" >'MANIFEST' <<'END_OF_FILE' | |
20 | Xdi.1 manual page | |
21 | Xdi.c main program | |
22 | Xgetopt.c getopt() routine | |
23 | Xconfig.win95 config.h for win95 | |
24 | XREADME Read this | |
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 | |
30 | END_OF_FILE | |
31 | if test 470 -ne `wc -c <'MANIFEST'`; then | |
32 | echo shar: \"'MANIFEST'\" unpacked with wrong size! | |
33 | fi | |
34 | # end of 'MANIFEST' | |
35 | fi | |
36 | if test -f 'MANIFEST.shar' -a "${1}" != "-c" ; then | |
37 | echo shar: Will not clobber existing file \"'MANIFEST.shar'\" | |
38 | else | |
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 | |
44 | X MANIFEST 1 MANIFEST | |
45 | X MANIFEST.shar 1 This shipping list | |
46 | X Makefile.SH 1 Produces Makefile | |
47 | X README 1 Read This | |
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 | |
52 | X di.c 2 di source | |
53 | X getopt.c 1 getopt source (from Cnews) | |
54 | X hints 1 | |
55 | X hints/aix.sh 1 | |
56 | X hints/beos.sh 1 | |
57 | X hints/dec_osf.sh 1 | |
58 | X hints/dynix.sh 1 | |
59 | X hints/dynixptx.sh 1 | |
60 | X hints/freebsd.sh 1 | |
61 | X hints/hpux.sh 1 | |
62 | X hints/irix.sh 1 | |
63 | X hints/linux.sh 1 | |
64 | X hints/openbsd.sh 1 | |
65 | X hints/solaris.sh 1 | |
66 | X hints/unicos.sh 1 | |
67 | X win95.mak 1 window95 makefile | |
68 | END_OF_FILE | |
69 | if test 1076 -ne `wc -c <'MANIFEST.shar'`; then | |
70 | echo shar: \"'MANIFEST.shar'\" unpacked with wrong size! | |
71 | fi | |
72 | # end of 'MANIFEST.shar' | |
73 | fi | |
74 | if test -f 'Makefile.SH' -a "${1}" != "-c" ; then | |
75 | echo shar: Will not clobber existing file \"'Makefile.SH'\" | |
76 | else | |
77 | echo shar: Extracting \"'Makefile.SH'\" \(5386 characters\) | |
78 | sed "s/^X//" >'Makefile.SH' <<'END_OF_FILE' | |
79 | Xcase $CONFIG in | |
80 | X'') | |
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=../../../..; | |
86 | X else | |
87 | X echo "Can't find config.sh."; exit 1 | |
88 | X fi | |
89 | X . $TOP/config.sh | |
90 | X ;; | |
91 | Xesac | |
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. | |
94 | Xcase "$0" in | |
95 | X*/*) cd `expr X$0 : 'X\(.*\)/'` ;; | |
96 | Xesac | |
97 | Xecho "Extracting Makefile (with variable substitutions)" | |
98 | X$spitshell >Makefile <<!GROK!THIS! | |
99 | X# | |
100 | X# di makefile | |
101 | X# | |
102 | X# Copyright 1995-1999 Brad Lanam | |
103 | X# | |
104 | X# $Id$ | |
105 | X# $Source$ | |
106 | X# @(#)Makefile 1.25 | |
107 | X# | |
108 | X# | |
109 | X | |
110 | XSHELL = $sh | |
111 | XCC = $cc | |
112 | XLD = $ld | |
113 | X$make_set_make | |
114 | XOBJ_EXT = $_o | |
115 | XEXE_EXT = $_exe | |
116 | X | |
117 | X# | |
118 | X# additional flags/libraries | |
119 | X# | |
120 | XCFLAGS = -DPROG=\\"\$(PROG)\\" -DMPROG=\\"\$(MPROG)\\" $ccflags $optimize | |
121 | XLDFLAGS = $ldflags | |
122 | XLIBS = $libs | |
123 | X | |
124 | X# | |
125 | X# installation options | |
126 | X# | |
127 | XPREFIX = $prefix | |
128 | XINSTDIR = \$(PREFIX)/bin | |
129 | XPROG = $di_prog | |
130 | XMPROG = mi | |
131 | XTARGET = \$(INSTDIR)/\$(PROG) | |
132 | XMTARGET = \$(INSTDIR)/\$(MPROG) | |
133 | X | |
134 | X# if you need permissions other than the default, | |
135 | X# edit these, and do a "make installperm". | |
136 | XUSER = root | |
137 | XGROUP = bin | |
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. | |
142 | X | |
143 | X# | |
144 | X# simple man page installation | |
145 | X# | |
146 | XMANDIR = $mansrcexp | |
147 | XMANTARGET = "\$(PROG).$manext" | |
148 | XMANPERM = 644 | |
149 | X | |
150 | X# | |
151 | X# common programs | |
152 | X# | |
153 | XLN = $ln | |
154 | XRM = $rm | |
155 | XCP = $cp | |
156 | XMV = $mv | |
157 | XTEST = $test | |
158 | XCHOWN = $chown | |
159 | XCHGRP = $chgrp | |
160 | XCHMOD = $chmod | |
161 | XTOUCH = $touch | |
162 | X | |
163 | X### | |
164 | X | |
165 | XOTHEROBJ = $di_otherobj | |
166 | X | |
167 | X### | |
168 | X | |
169 | Xall: \$(PROG)\$(EXE_EXT) | |
170 | X | |
171 | X# This was tested using vc++ 5.0. | |
172 | Xwindows: | |
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 | |
180 | X | |
181 | X# This was tested using Cygnus gcc b19 | |
182 | Xwindows-gcc: | |
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 | |
190 | X | |
191 | X#################### | |
192 | X | |
193 | Xall: \$(PROG)\$(EXE_EXT) | |
194 | X -\$(LN) -f \$(PROG)\$(EXE_EXT) \$(MPROG)\$(EXE_EXT) | |
195 | X | |
196 | Xclean: | |
197 | X -\$(RM) -rf \$(PROG)\$(EXE_EXT) \$(MPROG)\$(EXE_EXT) *.o *.obj \\ | |
198 | X UU >/dev/null 2>&1 | |
199 | X | |
200 | Xdistclean: | |
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 | |
204 | X | |
205 | Xrealclean: | |
206 | X \$(MAKE) distclean | |
207 | X | |
208 | Xinstall: install-prog install-man | |
209 | X | |
210 | Xinstall-prog: | |
211 | X -\$(TEST) -f \$(TARGET) && \$(MV) -f \$(TARGET) \$(TARGET).old | |
212 | X \$(CP) -f \$(PROG) \$(TARGET) | |
213 | X -\$(LN) -f \$(TARGET) \$(MTARGET) | |
214 | X | |
215 | Xinstallperms: | |
216 | X \$(CHOWN) \$(USER) \$(TARGET) | |
217 | X \$(CHGRP) \$(GROUP) \$(TARGET) | |
218 | X \$(CHMOD) \$(INSTPERM) \$(TARGET) | |
219 | X | |
220 | Xinstall-man: | |
221 | X \$(CP) -f di.1 \$(MANDIR)/\$(MANTARGET) | |
222 | X \$(CHMOD) \$(MANPERM) \$(MANDIR)/\$(MANTARGET) | |
223 | X | |
224 | X### | |
225 | X | |
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 \$? | |
231 | X | |
232 | Xshar: di.shar | |
233 | X | |
234 | XMANIFEST.shar: | |
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 | |
261 | X | |
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 | |
271 | X \$(TOUCH) di.shar | |
272 | X | |
273 | X### | |
274 | X | |
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) | |
278 | X | |
279 | X### | |
280 | X | |
281 | Xdi\$(OBJ_EXT): di.c config.h | |
282 | X \$(CC) -c \$(CFLAGS) di.c | |
283 | X | |
284 | Xgetopt\$(OBJ_EXT): getopt.c | |
285 | X \$(CC) -c \$(CFLAGS) getopt.c | |
286 | X | |
287 | X | |
288 | X!GROK!THIS! | |
289 | X | |
290 | Xchmod 755 Makefile | |
291 | X$eunicefix Makefile | |
292 | END_OF_FILE | |
293 | if test 5386 -ne `wc -c <'Makefile.SH'`; then | |
294 | echo shar: \"'Makefile.SH'\" unpacked with wrong size! | |
295 | fi | |
296 | chmod +x 'Makefile.SH' | |
297 | # end of 'Makefile.SH' | |
298 | fi | |
299 | if test -f 'README' -a "${1}" != "-c" ; then | |
300 | echo shar: Will not clobber existing file \"'README'\" | |
301 | else | |
302 | echo shar: Extracting \"'README'\" \(9353 characters\) | |
303 | sed "s/^X//" >'README' <<'END_OF_FILE' | |
304 | Xdi - disk information utility (version 2.3). | |
305 | X | |
306 | XDESCRIPTION | |
307 | X | |
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. | |
313 | X | |
314 | XINSTALLATION | |
315 | X | |
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. | |
319 | X | |
320 | X First, run Configure: | |
321 | X | |
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 | |
325 | X | |
326 | X Then, do your make: | |
327 | X | |
328 | X make | |
329 | X | |
330 | X And install: | |
331 | X | |
332 | X AIX versions prior to 4.3 had a 'di' command. di is installed | |
333 | X as 'diskinfo' instead for these AIX versions. | |
334 | X | |
335 | X make install | |
336 | X | |
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). | |
342 | X | |
343 | X If this is needed on your system, do: | |
344 | X | |
345 | X make installperm | |
346 | X | |
347 | X To install the manual pages: | |
348 | X | |
349 | X make install.man | |
350 | X | |
351 | X Windows installation: | |
352 | X | |
353 | X Cygnus gcc: make -f win95.mak windows-gcc | |
354 | X MS VC++: nmake -f win95.mak windows | |
355 | X | |
356 | XPORTING | |
357 | X | |
358 | X di 2.3 has been tested on the following platforms: | |
359 | X AIX 4.3.2 | |
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) | |
368 | X | |
369 | X di 2.2 has been tested on the following platforms: | |
370 | X | |
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 | |
378 | X | |
379 | X di 2.0 has been tested on the following platforms: | |
380 | X | |
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) | |
383 | X IRIX 6.2, 6.5 | |
384 | X NetBSD 1.3.3 | |
385 | X HP/UX B.10.20 | |
386 | X UNICOS 10.0.0.3 | |
387 | X Windows95 (cygnus gcc B19) | |
388 | X | |
389 | X di has been ported to the following systems in the past: | |
390 | X | |
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 | |
396 | X | |
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. | |
400 | X | |
401 | XBUGS | |
402 | X | |
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?). | |
405 | X | |
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: | |
408 | X | |
409 | X bll@gentoo.com | |
410 | X | |
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. | |
416 | X | |
417 | XCHANGES | |
418 | X | |
419 | X 2.3 | |
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. | |
423 | X 2.2 | |
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. | |
428 | X 2.1 | |
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. | |
435 | X 2.0 | |
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. | |
439 | X 1.24 | |
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 (?). | |
443 | X 1.23 | |
444 | X Improved Windows. | |
445 | X 1.22 | |
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. | |
449 | X 1.21 | |
450 | X Fixed AIX typo. | |
451 | X Linux 2.x | |
452 | X 1.20 | |
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 | |
456 | X reported. | |
457 | X 1.19 | |
458 | X Added mount time, mount options. Link di to the mi command. | |
459 | X 1.18 | |
460 | X Fixed some ignore/include list problems. Fixed local mount | |
461 | X flag for OSF/1. | |
462 | X 1.17 | |
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. | |
466 | X 1.16 | |
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> ] | |
469 | X 1.15 | |
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. | |
473 | X 1.14 | |
474 | X Fixed problem with display widths in conjunction with | |
475 | X ignore/include lists. | |
476 | X 1.13 | |
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. | |
480 | X 1.12 | |
481 | X sco nfs 'nothing' fix. | |
482 | X freebsd 2.x; better freebsd filesystem types. | |
483 | X 1.11 | |
484 | X bsdi | |
485 | X 1.10 | |
486 | X added freebsd. | |
487 | X 1.9 | |
488 | X makefile fixes. | |
489 | X 1.8 | |
490 | X removed mount option junk. | |
491 | X added AIX. | |
492 | X 1.7 | |
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. | |
496 | X T format option. | |
497 | X mount options. | |
498 | X sunOs filesystem type info. | |
499 | X 1.6 | |
500 | X ultrix bug fixes. | |
501 | X add dynix to makefile. | |
502 | X 1.5 | |
503 | X sun had f_bfree instead of f_bavail! | |
504 | X xenix, linux, sco | |
505 | X -w, -W, -B. | |
506 | X fixed width for -f M, -f S. | |
507 | X usage. | |
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). | |
512 | X 1.4 | |
513 | X -f B | |
514 | X bcopy. | |
515 | X solaris cdrom reports -2 for free blocks. | |
516 | X 1.3 | |
517 | X Command line specification of filenames. | |
518 | X sort output. | |
519 | X osf/1, ultrix. | |
520 | X -F, -f M, -F S. | |
521 | X 1.2 | |
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. | |
525 | X error conditions. | |
526 | X pyramid. | |
527 | X 1.1 | |
528 | X initial release | |
529 | X | |
530 | XACKNOWLEDGEMENTS | |
531 | X | |
532 | X And for their comments and/or source and/or | |
533 | X manual pages and/or bug fixes, thanks! | |
534 | X | |
535 | X jjb@jagware.bcc.com (J.J.Bailey) | |
536 | X vogelke@c-17igp.wpafb.af.mil (Contr Karl Vogel) | |
537 | X [pyramid] | |
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) | |
543 | X [sgi] | |
544 | X Peter Bray <Peter.Bray@serg.cse.unsw.edu.au> | |
545 | X gsipe@pyramid.com (George M. Sipe) | |
546 | X [manual page] | |
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) | |
550 | X [help usage] | |
551 | X Seth Theriault <seth@connact.com> | |
552 | X [next, tru64] | |
553 | X steve@nshore.org (Stephen J. Walick) | |
554 | X [SCO] | |
555 | X Gerald Rinske <gerald@D012F291.mch.sni.de> | |
556 | X [sgi] | |
557 | X Mike Grupenhoff <kashmir@snare.dorm.umd.edu> | |
558 | X [linux] | |
559 | X R.K.Lloyd@csc.liv.ac.uk | |
560 | X [hpux] | |
561 | X "William Gibbs" <bill@wgc386.MV.COM> | |
562 | X [xenix] | |
563 | X Randy Thompson <randyt@sequent.com> | |
564 | X [sequent] | |
565 | X eriko@risc.austin.ibm.com (O'Shaughnessy Erik) | |
566 | X [aix] | |
567 | X Bill Davidsen <davidsen@tmr.com> | |
568 | X [linux, SCO, etc., new format options] | |
569 | X fredex@fcshome.stoneham.ma.us (fred smith) | |
570 | X [coherent 4.2.05] | |
571 | X bag@clipper.cs.kiev.ua (Andrey Blochintsev) | |
572 | X [bsdi] | |
573 | X ginsbach@spacestar.net (Brian Ginsbach) | |
574 | X [netbsd, irix, unicos] | |
575 | X | |
576 | X et. al. | |
577 | X | |
578 | XCOPYRIGHT | |
579 | X | |
580 | X Copyright 1995-1999 Brad Lanam, Walnut Creek, CA, USA | |
581 | X bll@gentoo.com | |
582 | X http://secure.gentoo.com/di/ | |
583 | X http://secure.gentoo.com/di/di-2.2.tar.gz | |
584 | END_OF_FILE | |
585 | if test 9353 -ne `wc -c <'README'`; then | |
586 | echo shar: \"'README'\" unpacked with wrong size! | |
587 | fi | |
588 | # end of 'README' | |
589 | fi | |
590 | if test -f 'config.win95' -a "${1}" != "-c" ; then | |
591 | echo shar: Will not clobber existing file \"'config.win95'\" | |
592 | else | |
593 | echo shar: Extracting \"'config.win95'\" \(383 characters\) | |
594 | sed "s/^X//" >'config.win95' <<'END_OF_FILE' | |
595 | X/* config.h for win95 */ | |
596 | X/* $Id$ */ | |
597 | X | |
598 | X#ifndef _config_h_ | |
599 | X#define _config_h_ | |
600 | X | |
601 | X#define _(args) args | |
602 | X | |
603 | X#define I_MALLOC | |
604 | X#define I_MEMORY | |
605 | X#define I_STDLIB | |
606 | X#define I_STRING | |
607 | X#define I_SYS_TYPES | |
608 | X#define I_SYS_STAT | |
609 | X#define I_TIME | |
610 | X#define I_WINDOWS | |
611 | X | |
612 | X#define HAS_GETDISKFREESPACE | |
613 | X#define HAS_MEMCPY | |
614 | X#define HAS_MEMSET | |
615 | X | |
616 | X#endif /* _config_h_ */ | |
617 | END_OF_FILE | |
618 | if test 383 -ne `wc -c <'config.win95'`; then | |
619 | echo shar: \"'config.win95'\" unpacked with wrong size! | |
620 | fi | |
621 | # end of 'config.win95' | |
622 | fi | |
623 | if test -f 'config_h.SH' -a "${1}" != "-c" ; then | |
624 | echo shar: Will not clobber existing file \"'config_h.SH'\" | |
625 | else | |
626 | echo shar: Extracting \"'config_h.SH'\" \(10815 characters\) | |
627 | sed "s/^X//" >'config_h.SH' <<'END_OF_FILE' | |
628 | Xcase $CONFIG in | |
629 | X'') | |
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=../../../..; | |
635 | X else | |
636 | X echo "Can't find config.sh."; exit 1 | |
637 | X fi | |
638 | X . $TOP/config.sh | |
639 | X ;; | |
640 | Xesac | |
641 | Xcase "$0" in | |
642 | X*/*) cd `expr X$0 : 'X\(.*\)/'` ;; | |
643 | Xesac | |
644 | Xecho "Extracting config.h (with variable substitutions)" | |
645 | Xsed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' | |
646 | X/* | |
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. | |
650 | X * | |
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. | |
654 | X * | |
655 | X * \$Id$ | |
656 | X */ | |
657 | X | |
658 | X/* | |
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 | |
664 | X */ | |
665 | X | |
666 | X#ifndef _config_h_ | |
667 | X#define _config_h_ | |
668 | X | |
669 | X/* HAS_BCOPY: | |
670 | X * This symbol is defined if the bcopy() routine is available to | |
671 | X * copy blocks of memory. | |
672 | X */ | |
673 | X#$d_bcopy HAS_BCOPY /**/ | |
674 | X | |
675 | X/* HAS_BZERO: | |
676 | X * This symbol is defined if the bzero() routine is available to | |
677 | X * set a memory block to 0. | |
678 | X */ | |
679 | X#$d_bzero HAS_BZERO /**/ | |
680 | X | |
681 | X/* HAS_MEMCPY: | |
682 | X * This symbol, if defined, indicates that the memcpy routine is available | |
683 | X * to copy blocks of memory. | |
684 | X */ | |
685 | X#$d_memcpy HAS_MEMCPY /**/ | |
686 | X | |
687 | X/* HAS_MEMSET: | |
688 | X * This symbol, if defined, indicates that the memset routine is available | |
689 | X * to set blocks of memory. | |
690 | X */ | |
691 | X#$d_memset HAS_MEMSET /**/ | |
692 | X | |
693 | X/* I_LIMITS: | |
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. | |
697 | X */ | |
698 | X#$i_limits I_LIMITS /**/ | |
699 | X | |
700 | X/* I_MALLOC: | |
701 | X * This symbol, if defined, indicates to the C program that it should | |
702 | X * include <malloc.h>. | |
703 | X */ | |
704 | X#$i_malloc I_MALLOC /**/ | |
705 | X | |
706 | X/* I_MEMORY: | |
707 | X * This symbol, if defined, indicates to the C program that it should | |
708 | X * include <memory.h>. | |
709 | X */ | |
710 | X#$i_memory I_MEMORY /**/ | |
711 | X | |
712 | X/* I_STDLIB: | |
713 | X * This symbol, if defined, indicates that <stdlib.h> exists and should | |
714 | X * be included. | |
715 | X */ | |
716 | X#$i_stdlib I_STDLIB /**/ | |
717 | X | |
718 | X/* I_STRING: | |
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). | |
721 | X */ | |
722 | X#$i_string I_STRING /**/ | |
723 | X | |
724 | X/* I_SYS_PARAM: | |
725 | X * This symbol, if defined, indicates to the C program that it should | |
726 | X * include <sys/param.h>. | |
727 | X */ | |
728 | X#$i_sysparam I_SYS_PARAM /**/ | |
729 | X | |
730 | X/* I_SYS_STAT: | |
731 | X * This symbol, if defined, indicates to the C program that it should | |
732 | X * include <sys/stat.h>. | |
733 | X */ | |
734 | X#$i_sysstat I_SYS_STAT /**/ | |
735 | X | |
736 | X/* I_SYS_TYPES: | |
737 | X * This symbol, if defined, indicates to the C program that it should | |
738 | X * include <sys/types.h>. | |
739 | X */ | |
740 | X#$i_systypes I_SYS_TYPES /**/ | |
741 | X | |
742 | X/* I_TIME: | |
743 | X * This symbol, if defined, indicates to the C program that it should | |
744 | X * include <time.h>. | |
745 | X */ | |
746 | X/* I_SYS_TIME: | |
747 | X * This symbol, if defined, indicates to the C program that it should | |
748 | X * include <sys/time.h>. | |
749 | X */ | |
750 | X#$i_time I_TIME /**/ | |
751 | X#$i_systime I_SYS_TIME /**/ | |
752 | X | |
753 | X/* I_UNISTD: | |
754 | X * This symbol, if defined, indicates to the C program that it should | |
755 | X * include <unistd.h>. | |
756 | X */ | |
757 | X#$i_unistd I_UNISTD /**/ | |
758 | X | |
759 | X/* CAN_PROTOTYPE: | |
760 | X * If defined, this macro indicates that the C compiler can handle | |
761 | X * function prototypes. | |
762 | X */ | |
763 | X/* _: | |
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: | |
767 | X * | |
768 | X * int main _((int argc, char *argv[])); | |
769 | X */ | |
770 | X#$prototype CAN_PROTOTYPE /**/ | |
771 | X#ifdef CAN_PROTOTYPE | |
772 | X#define _(args) args | |
773 | X#else | |
774 | X#define _(args) () | |
775 | X#endif | |
776 | X | |
777 | X/* VOIDFLAGS: | |
778 | X * This symbol indicates how much support of the void type is given by this | |
779 | X * compiler. What various bits mean: | |
780 | X * | |
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 | |
786 | X * | |
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. | |
792 | X */ | |
793 | X#ifndef VOIDUSED | |
794 | X#define VOIDUSED $defvoidused | |
795 | X#endif | |
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 */ | |
800 | X#endif | |
801 | X | |
802 | X/* HAS_64BIT_STATFS_FLDS: | |
803 | X * This symbol is defined if 64 bit statfs fields are used. | |
804 | X */ | |
805 | X#$d_64bit_statfs_flds HAS_64BIT_STATFS_FLDS /**/ | |
806 | X | |
807 | X/* HAS_ENDMNTENT: | |
808 | X * This symbol is defined if the endmntent() routine is available. | |
809 | X */ | |
810 | X#$d_endmntent HAS_ENDMNTENT /**/ | |
811 | X | |
812 | X/* HAS_FS_INFO: | |
813 | X * This symbol is defined if the fs_info() routine is available. | |
814 | X */ | |
815 | X#$d_fs_info HAS_FS_INFO /**/ | |
816 | X | |
817 | X/* HAS_GETMNT: | |
818 | X * This symbol is defined if the getmnt() routine is available. | |
819 | X */ | |
820 | X#$d_getmnt HAS_GETMNT /**/ | |
821 | X | |
822 | X/* HAS_GETMNTENT: | |
823 | X * This symbol is defined if the getmntent() routine is available. | |
824 | X */ | |
825 | X#$d_getmntent HAS_GETMNTENT /**/ | |
826 | X | |
827 | X/* HAS_GETMNTINFO: | |
828 | X * This symbol is defined if the getmntinfo() routine is available. | |
829 | X */ | |
830 | X#$d_getmntinfo HAS_GETMNTINFO /**/ | |
831 | X | |
832 | X/* HAS_OPTIND: | |
833 | X * This symbol, if defined, indicates that the optind external | |
834 | X * variable is defined. | |
835 | X */ | |
836 | X#$d_optind HAS_OPTIND /**/ | |
837 | X#if ! defined (HAS_OPTIND) | |
838 | X extern int optind; | |
839 | X extern char *optarg; | |
840 | X#endif | |
841 | X | |
842 | X/* HAS_MNTCTL: | |
843 | X * This symbol is defined if the mntctl() routine is available. | |
844 | X */ | |
845 | X#$d_mntctl HAS_MNTCTL /**/ | |
846 | X | |
847 | X/* HAS_MNT_TIME: | |
848 | X * This symbol is defined if the mnt_time or vmt_time is available | |
849 | X * in the mount table. | |
850 | X */ | |
851 | X#$d_mnttime HAS_MNT_TIME /**/ | |
852 | X | |
853 | X/* HAS_SETMNTENT: | |
854 | X * This symbol is defined if the setmntent() routine is available. | |
855 | X */ | |
856 | X/* HAS_SETMNTENT_ONE_ARG: | |
857 | X * This symbol is defined if the setmntent() has one argument. | |
858 | X */ | |
859 | X#$d_setmntent HAS_SETMNTENT /**/ | |
860 | X#$d_setmntent_one_arg HAS_SETMNTENT_ONE_ARG /**/ | |
861 | X | |
862 | X/* HAS_STATFS_BSD: | |
863 | X * This symbol is defined if statfs() uses the bsd API. | |
864 | X */ | |
865 | X/* HAS_STATFS_SYSV3: | |
866 | X * This symbol is defined if statfs() uses the System V.3 API. | |
867 | X */ | |
868 | X/* Ubsize: | |
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. | |
872 | X */ | |
873 | X#$d_statfsbsd HAS_STATFS_BSD /**/ | |
874 | X#$d_statfssysv3 HAS_STATFS_SYSV3 /**/ | |
875 | X#define Ubsize $ubsize /**/ | |
876 | X | |
877 | X/* HAS_STATVFS: | |
878 | X * This symbol is defined if the statvfs() routine is available. | |
879 | X */ | |
880 | X#$d_statvfs HAS_STATVFS /**/ | |
881 | X | |
882 | X/* HAS_SYSFS: | |
883 | X * This symbol is defined if the sysfs() routine is available. | |
884 | X */ | |
885 | X#$d_sysfs HAS_SYSFS /**/ | |
886 | X | |
887 | X/* I_FSHELP: | |
888 | X * This symbol, if defined, indicates to the C program that it should | |
889 | X * include <fshelp.h>. | |
890 | X */ | |
891 | X#$i_fshelp I_FSHELP /**/ | |
892 | X | |
893 | X/* I_KERNFSINFO: | |
894 | X * This symbol, if defined, indicates to the C program that it should | |
895 | X * include <kernel/fs_info.h>. | |
896 | X */ | |
897 | X#$i_kernfsinfo I_KERNFSINFO /**/ | |
898 | X | |
899 | X/* I_MNTENT: | |
900 | X * This symbol, if defined, indicates to the C program that it should | |
901 | X * include <mntent.h>. | |
902 | X */ | |
903 | X#$i_mntent I_MNTENT /**/ | |
904 | X | |
905 | X/* I_MNTTAB: | |
906 | X * This symbol, if defined, indicates to the C program that it should | |
907 | X * include <mnttab.h>. | |
908 | X */ | |
909 | X#$i_mnttab I_MNTTAB /**/ | |
910 | X | |
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>. | |
914 | X */ | |
915 | X#$i_stor_directory I_STOR_DIRECTORY /**/ | |
916 | X | |
917 | X/* I_STOR_ENTRY: | |
918 | X * This symbol, if defined, indicates to the C program that it should | |
919 | X * include <storage/Entry.h>. | |
920 | X */ | |
921 | X#$i_stor_entry I_STOR_ENTRY /**/ | |
922 | X | |
923 | X/* I_STOR_PATH: | |
924 | X * This symbol, if defined, indicates to the C program that it should | |
925 | X * include <storage/Path.h>. | |
926 | X */ | |
927 | X#$i_stor_path I_STOR_PATH /**/ | |
928 | X | |
929 | X/* I_SYS_FSTYP: | |
930 | X * This symbol, if defined, indicates to the C program that it should | |
931 | X * include <sys/fstyp.h>. | |
932 | X */ | |
933 | X#$i_sysfstyp I_SYS_FSTYP /**/ | |
934 | X | |
935 | X/* I_SYS_FSTYPES: | |
936 | X * This symbol, if defined, indicates to the C program that it should | |
937 | X * include <sys/fstypes.h>. | |
938 | X */ | |
939 | X/* I_SYS_FS_TYPES: | |
940 | X * This symbol, if defined, indicates to the C program that it should | |
941 | X * include <sys/fs_types.h>. | |
942 | X */ | |
943 | X#$i_sysfstypes I_SYS_FSTYPES /**/ | |
944 | X#$i_sysfs_types I_SYS_FS_TYPES /**/ | |
945 | X | |
946 | X/* I_SYS_MNTCTL: | |
947 | X * This symbol, if defined, indicates to the C program that it should | |
948 | X * include <sys/mntctl.h>. | |
949 | X */ | |
950 | X#$i_sysmntctl I_SYS_MNTCTL /**/ | |
951 | X | |
952 | X/* I_SYS_MNTENT: | |
953 | X * This symbol, if defined, indicates to the C program that it should | |
954 | X * include <sys/mntent.h>. | |
955 | X */ | |
956 | X#$i_sysmntent I_SYS_MNTENT /**/ | |
957 | X | |
958 | X/* I_SYS_MNTTAB: | |
959 | X * This symbol, if defined, indicates to the C program that it should | |
960 | X * include <sys/mnttab.h>. | |
961 | X */ | |
962 | X#$i_sysmnttab I_SYS_MNTTAB /**/ | |
963 | X | |
964 | X/* I_SYS_MOUNT: | |
965 | X * This symbol, if defined, indicates to the C program that it should | |
966 | X * include <sys/mount.h>. | |
967 | X */ | |
968 | X/* HAS_GETMNTINFO_FSTYPENAME: | |
969 | X * This symbol is defined if the f_fstypename field is available. | |
970 | X */ | |
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. | |
974 | X */ | |
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. | |
978 | X */ | |
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 /**/ | |
983 | X | |
984 | X/* I_SYS_STATFS: | |
985 | X * This symbol, if defined, indicates to the C program that it should | |
986 | X * include <sys/statfs.h>. | |
987 | X */ | |
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. | |
991 | X */ | |
992 | X#$i_sysstatfs I_SYS_STATFS /**/ | |
993 | X#$d_statfs_frsize HAS_STATFS_FRSIZE /**/ | |
994 | X | |
995 | X/* I_SYS_STATVFS: | |
996 | X * This symbol, if defined, indicates to the C program that it should | |
997 | X * include <sys/statvfs.h>. | |
998 | X */ | |
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. | |
1002 | X */ | |
1003 | X#$i_sysstatvfs I_SYS_STATVFS /**/ | |
1004 | X#$d_statvfsbasetype HAS_STATVFS_BASETYPE /**/ | |
1005 | X | |
1006 | X/* I_SYS_VFS: | |
1007 | X * This symbol, if defined, indicates to the C program that it should | |
1008 | X * include <sys/vfs.h>. | |
1009 | X */ | |
1010 | X#$i_sysvfs I_SYS_VFS /**/ | |
1011 | X | |
1012 | X/* I_SYS_VFSTAB: | |
1013 | X * This symbol, if defined, indicates to the C program that it should | |
1014 | X * include <sys/vfstab.h>. | |
1015 | X */ | |
1016 | X#$i_sysvfstab I_SYS_VFSTAB /**/ | |
1017 | X | |
1018 | X/* I_SYS_VMOUNT: | |
1019 | X * This symbol, if defined, indicates to the C program that it should | |
1020 | X * include <sys/vmount.h>. | |
1021 | X */ | |
1022 | X#$i_sysvmount I_SYS_VMOUNT /**/ | |
1023 | X | |
1024 | X#endif | |
1025 | X!GROK!THIS! | |
1026 | END_OF_FILE | |
1027 | if test 10815 -ne `wc -c <'config_h.SH'`; then | |
1028 | echo shar: \"'config_h.SH'\" unpacked with wrong size! | |
1029 | fi | |
1030 | # end of 'config_h.SH' | |
1031 | fi | |
1032 | if test -f 'configure' -a "${1}" != "-c" ; then | |
1033 | echo shar: Will not clobber existing file \"'configure'\" | |
1034 | else | |
1035 | echo shar: Extracting \"'configure'\" \(2855 characters\) | |
1036 | sed "s/^X//" >'configure' <<'END_OF_FILE' | |
1037 | X#! /bin/sh | |
1038 | X# | |
1039 | X# $Id$ | |
1040 | X# | |
1041 | X# GNU configure-like front end to metaconfig's Configure. | |
1042 | X# | |
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>. | |
1045 | X# | |
1046 | X# Reformatted and modified for inclusion in the dist-3.0 package by | |
1047 | X# Raphael Manfredi <Raphael_Manfredi@grenoble.hp.com>. | |
1048 | X# | |
1049 | X# This script belongs to the public domain and may be freely redistributed. | |
1050 | X# | |
1051 | X# The remaining of this leading shell comment may be removed if you | |
1052 | X# include this script in your own package. | |
1053 | X# | |
1054 | X# $Log$ | |
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 | |
1058 | X# | |
1059 | X# Revision 3.0.1.1 1995/07/25 14:16:21 ram | |
1060 | X# patch56: created | |
1061 | X# | |
1062 | X | |
1063 | X(exit $?0) || exec sh $0 $argv:q | |
1064 | Xopts='' | |
1065 | Xverbose='' | |
1066 | Xcreate='-e' | |
1067 | Xsrcdir='' | |
1068 | Xwhile test $# -gt 0; do | |
1069 | X case $1 in | |
1070 | X --help) | |
1071 | X cat <<EOM | |
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): | |
1075 | X | |
1076 | X --help --srcdir=DIRECTORY | |
1077 | X --no-create --silent | |
1078 | X --prefix=PREFIX --verbose | |
1079 | X --quiet --version | |
1080 | X | |
1081 | XAnd it honours these environment variables: CC, CFLAGS and DEFS. | |
1082 | X | |
1083 | XFurthermore, it ignores the following arguments, when supplied: | |
1084 | X | |
1085 | X --cache-file=FILE --target=TARGET | |
1086 | X --enable-* --with-* | |
1087 | X --host=HOST | |
1088 | XEOM | |
1089 | X exit 0 | |
1090 | X ;; | |
1091 | X --no-create) | |
1092 | X create='-E' | |
1093 | X shift | |
1094 | X ;; | |
1095 | X --prefix=*) | |
1096 | X arg=`echo $1 | sed 's/--prefix=/-Dprefix=/'` | |
1097 | X opts="$opts $arg" | |
1098 | X shift | |
1099 | X ;; | |
1100 | X --prefix) | |
1101 | X shift | |
1102 | X opts="$opts -Dprefix=$1" | |
1103 | X shift | |
1104 | X ;; | |
1105 | X --srcdir=*) | |
1106 | X arg=`echo $1 | sed 's/--srcdir=//'` | |
1107 | X srcdir=$arg | |
1108 | X shift | |
1109 | X ;; | |
1110 | X --srcdir) | |
1111 | X shift | |
1112 | X srcdir=$1 | |
1113 | X shift | |
1114 | X ;; | |
1115 | X --quiet|--silent) | |
1116 | X exec >/dev/null 2>&1 | |
1117 | X shift | |
1118 | X ;; | |
1119 | X --verbose) | |
1120 | X verbose=true | |
1121 | X shift | |
1122 | X ;; | |
1123 | X --version) | |
1124 | X copt="$copt -V" | |
1125 | X shift | |
1126 | X ;; | |
1127 | X --host=*|--target=*|--cache-file=*|--enable-*|--with-*) | |
1128 | X shift | |
1129 | X ;; | |
1130 | X --*) | |
1131 | X opt=`echo $1 | sed 's/=.*//'` | |
1132 | X echo "This GNU configure front end does not understand $opt" | |
1133 | X exit 1 | |
1134 | X ;; | |
1135 | X *) | |
1136 | X opts="$opts $1" | |
1137 | X shift | |
1138 | X ;; | |
1139 | X esac | |
1140 | Xdone | |
1141 | X | |
1142 | Xcase "$CC" in | |
1143 | X'') ;; | |
1144 | X*) opts="$opts -Dcc='$CC'";; | |
1145 | Xesac | |
1146 | X | |
1147 | X# Join DEFS and CFLAGS together. | |
1148 | Xccflags='' | |
1149 | Xcase "$DEFS" in | |
1150 | X'') ;; | |
1151 | X*) ccflags=$DEFS;; | |
1152 | Xesac | |
1153 | Xcase "$CFLAGS" in | |
1154 | X'') ;; | |
1155 | X*) ccflags="$ccflags $CFLAGS";; | |
1156 | Xesac | |
1157 | Xcase "$ccflags" in | |
1158 | X'') ;; | |
1159 | X*) opts="$opts -Dccflags='$ccflags'";; | |
1160 | Xesac | |
1161 | X | |
1162 | X# Don't use -s if they want verbose mode | |
1163 | Xcase "$verbose" in | |
1164 | X'') copt="$copt -ds";; | |
1165 | X*) copt="$copt -d";; | |
1166 | Xesac | |
1167 | X | |
1168 | X# Figure out srcdir if not set already | |
1169 | Xcase "$srcdir" in | |
1170 | X'') srcdir=`echo $0 | sed -e 's%/[^/][^/]*$%%'`;; | |
1171 | Xesac | |
1172 | Xcase "$srcdir" in | |
1173 | X".") ;; | |
1174 | X*) opts="$opts -Dsrc=$srcdir";; | |
1175 | Xesac | |
1176 | X | |
1177 | Xset X sh $srcdir/Configure $copt $create $opts | |
1178 | Xshift | |
1179 | Xecho "$@" | |
1180 | Xexec "$@" | |
1181 | END_OF_FILE | |
1182 | if test 2855 -ne `wc -c <'configure'`; then | |
1183 | echo shar: \"'configure'\" unpacked with wrong size! | |
1184 | fi | |
1185 | chmod +x 'configure' | |
1186 | # end of 'configure' | |
1187 | fi | |
1188 | if test -f 'di.1' -a "${1}" != "-c" ; then | |
1189 | echo shar: Will not clobber existing file \"'di.1'\" | |
1190 | else | |
1191 | echo shar: Extracting \"'di.1'\" \(7676 characters\) | |
1192 | sed "s/^X//" >'di.1' <<'END_OF_FILE' | |
1193 | X.\" | |
1194 | X.\" $Id$ | |
1195 | X.\" $Revision$ | |
1196 | X.\" | |
1197 | X.\" di.1 | |
1198 | X.\" | |
1199 | X.\" Copyright 1994-1999 Brad Lanam Walnut Creek CA USA | |
1200 | X.\" | |
1201 | X.\" bll@gentoo.com | |
1202 | X.\" | |
1203 | X.\" for di version 2.0 | |
1204 | X.\" | |
1205 | X.TH di 1 "7 January 1999" | |
1206 | X.SH Name | |
1207 | Xdi \- disk information | |
1208 | X.SH Synopsis | |
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 [...]] | |
1212 | X.B di | |
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] | |
1217 | X[\fIfile\fR [...]] | |
1218 | X.PP | |
1219 | X.B mi | |
1220 | X.SH Description | |
1221 | X.NXA "di command" "dumpfs command" | |
1222 | X.NXA "di command" "df command" | |
1223 | X.NXR "disk" "displaying free space" | |
1224 | X.I di | |
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. | |
1230 | X.PP | |
1231 | XUnless the \-a flag is specified, certain mounted filesystems | |
1232 | Xwill not normally be displayed. | |
1233 | X.IP | |
1234 | XFilesystems that have a total | |
1235 | Xblock count of 0 will not be displayed. | |
1236 | X.IP | |
1237 | XFilesystems that have a mount option of 'ignore' set will not | |
1238 | Xbe displayed. | |
1239 | X.IP | |
1240 | XFilesystems that are automounted, and are duplicates of an | |
1241 | Xexisting filesystem are not displayed. (May not work on | |
1242 | Xall systems). | |
1243 | X.PP | |
1244 | X.I mi | |
1245 | XDisplays the mounted filesystem information. | |
1246 | X.PP | |
1247 | XSeveral switches may be specified to | |
1248 | Xcontrol the output of | |
1249 | X.I di | |
1250 | Xand | |
1251 | X.I mi\fR: | |
1252 | X.TP | |
1253 | X.B \-A | |
1254 | XPrint all fields (used for debugging). Mount points and special | |
1255 | Xdevice names are printed at full width. The \-a flag is set. | |
1256 | X.TP | |
1257 | X.B \-a | |
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). | |
1260 | X.TP | |
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. | |
1267 | X.TP | |
1268 | X.B \-f\ \fIformat\fR | |
1269 | XUse the specified format string \fIformat\fR. Format strings are | |
1270 | Xdescribed below. | |
1271 | X.TP | |
1272 | X.B \-h | |
1273 | XPrint out the usage for | |
1274 | X.I di | |
1275 | X.TP | |
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. | |
1279 | X\-i nfs,rfs | |
1280 | X.TP | |
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. | |
1284 | X\-I nfs,rfs | |
1285 | X.TP | |
1286 | X.B \-l | |
1287 | XDisplay only local file systems. This option is not fully implemented | |
1288 | Xfor all systems as of version 1.17. | |
1289 | X.TP | |
1290 | X.B \-n | |
1291 | XDo not print a header line above the list of file systems. Useful when | |
1292 | Xparsing the output of \fIdi\fR. | |
1293 | X.TP | |
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. | |
1304 | X.TP | |
1305 | X.B \-t | |
1306 | XPrint a totals line below the list of file systems. | |
1307 | X.TP | |
1308 | X.B \-w\ \fIblock-width\fR | |
1309 | XSet the print width for block values. Default is eight. | |
1310 | X.TP | |
1311 | X.B \-W\ \fIinode-width\fR | |
1312 | XSet the print width for inode values. Default is seven. | |
1313 | X.TP | |
1314 | X.B \-x\ \fIlevel\fR | |
1315 | XSet the program's debugging level to \fIdebug-level\fR. | |
1316 | X.SH Format strings | |
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 | |
1320 | Xfollowing columns: | |
1321 | X.TP | |
1322 | X.B m | |
1323 | XPrint the name of the mount point. | |
1324 | X.TP | |
1325 | X.B M | |
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 | |
1328 | Xpoint name. | |
1329 | X.TP | |
1330 | X.B b | |
1331 | XPrint the total number of Kbytes on the file system. | |
1332 | XSee also the \-d option. | |
1333 | X.TP | |
1334 | X.B B | |
1335 | XPrint the total number of Kbytes on the file system | |
1336 | Xavailable for use by normal | |
1337 | Xusers. | |
1338 | XSee also the \-d option. | |
1339 | X.TP | |
1340 | X.B u | |
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. | |
1344 | X.TP | |
1345 | X.B c | |
1346 | XPrint the number of Kbytes not available for use by normal users | |
1347 | X(total - available). | |
1348 | XSee also the \-d option. | |
1349 | X.TP | |
1350 | X.B f | |
1351 | XPrint the number of free (unused) Kbytes on the file system. | |
1352 | XSee also the \-d option. | |
1353 | X.TP | |
1354 | X.B v | |
1355 | XPrint the number of Kbytes available for use by normal users. | |
1356 | XSee also the \-d option. | |
1357 | X.TP | |
1358 | X.B p | |
1359 | XPrint the percentage of Kbytes not available for use by normal users | |
1360 | X(number of | |
1361 | Xkbytes not available for use / total disk space). | |
1362 | XSee also the \-d option. | |
1363 | X.TP | |
1364 | X.B 1 | |
1365 | XPrint the percentage of total Kbytes in use | |
1366 | X(actual number of | |
1367 | Xkbytes used / total disk space). | |
1368 | XSee also the \-d option. | |
1369 | X.TP | |
1370 | X.B 2 | |
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% | |
1373 | Xare possible | |
1374 | X(actual number of kbytes used / disk | |
1375 | Xspace available to non-root users). | |
1376 | XSee also the \-d option. | |
1377 | X.TP | |
1378 | X.B i | |
1379 | XPrint the total number of file slots (inodes) that can be created on the file | |
1380 | Xsystem. | |
1381 | X.TP | |
1382 | X.B U | |
1383 | XPrint the number of file slots in use. | |
1384 | X.TP | |
1385 | X.B F | |
1386 | XPrint the number of file slots available. | |
1387 | X.TP | |
1388 | X.B P | |
1389 | XPrint the percentage of file slots in use. | |
1390 | X.TP | |
1391 | X.B s | |
1392 | XPrint the file system name (special device or remote mount point). | |
1393 | X.TP | |
1394 | X.B S | |
1395 | XPrint the file system name (special device or remote mount point), | |
1396 | Xat full length. | |
1397 | XThe file system name | |
1398 | Xis formatted to the maximum width necessary for the longest file system | |
1399 | Xname. | |
1400 | X.TP | |
1401 | X.B t | |
1402 | XPrint the file system type. | |
1403 | X.TP | |
1404 | X.B T | |
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 | |
1407 | Xtype. | |
1408 | X.TP | |
1409 | X.B I | |
1410 | XPrint the time the filesystem was mounted. This column is | |
1411 | Xnot supported on all systems. | |
1412 | X.TP | |
1413 | X.B O | |
1414 | XPrint the filesystem mount options. | |
1415 | X.PP | |
1416 | XThe default format string for \fIdi\fR is \fBsmbuvpT\fR. | |
1417 | X.PP | |
1418 | XThe default format string for \fImi\fR is \fBMSTIO\R. | |
1419 | X.PP | |
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): | |
1424 | X.RS | |
1425 | X.br | |
1426 | X.B di -f 'mbuvp | |
1427 | X.br | |
1428 | X.B miUFP' | |
1429 | X.br | |
1430 | X.RE | |
1431 | Xwill print two lines of data for each filesystem. | |
1432 | X.SH Examples | |
1433 | XVarious \fIdf\fR | |
1434 | Xequivalent format strings for System V release 4 are: | |
1435 | X.PP | |
1436 | X.RS | |
1437 | X\fI/usr/bin/df -v\fR di -dp \-f msbuf1 | |
1438 | X.br | |
1439 | X\fI/usr/bin/df -k\fR di -dk \-f sbcvpm | |
1440 | X.br | |
1441 | X\fI/usr/ucb/df\fR di -dk \-f sbuv2m | |
1442 | X.RE | |
1443 | X.PP | |
1444 | XIf you like your numbers to add up/calculate the percentage | |
1445 | Xcorrectly, try one | |
1446 | Xof the following format strings: | |
1447 | X.PP | |
1448 | X.RS | |
1449 | X.B di -f SMbuf1T | |
1450 | X.br | |
1451 | X.B di -f SMbcvpT | |
1452 | X.br | |
1453 | X.B di -f SMBuv2T | |
1454 | X.RE | |
1455 | X.SH Note | |
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. | |
1459 | X.SH WARNING | |
1460 | XDo not replace your system's \fIdf\fR command with this program. You | |
1461 | Xwill in all likelihood break your installation procedures. | |
1462 | X.SH See Also | |
1463 | Xdf(1), fstab(5), getmnt(2), getmntinfo(2), mnttab(4), mount(1M) | |
1464 | Xstatfs(2), statvfs(2) | |
1465 | X.SH Author | |
1466 | XThis program is Copyright 1994-1999 by Brad Lanam. | |
1467 | X.PP | |
1468 | XBrad Lanam, Walnut Creek, CA (bll@gentoo.com). | |
1469 | END_OF_FILE | |
1470 | if test 7676 -ne `wc -c <'di.1'`; then | |
1471 | echo shar: \"'di.1'\" unpacked with wrong size! | |
1472 | fi | |
1473 | # end of 'di.1' | |
1474 | fi | |
1475 | if test -f 'getopt.c' -a "${1}" != "-c" ; then | |
1476 | echo shar: Will not clobber existing file \"'getopt.c'\" | |
1477 | else | |
1478 | echo shar: Extracting \"'getopt.c'\" \(1664 characters\) | |
1479 | sed "s/^X//" >'getopt.c' <<'END_OF_FILE' | |
1480 | X/* | |
1481 | X * | |
1482 | X * $Id$ | |
1483 | X * | |
1484 | X * getopt - get option letter from argv | |
1485 | X * | |
1486 | X * from Cnews by Henry Spencer | |
1487 | X * | |
1488 | X */ | |
1489 | X | |
1490 | X#ifndef lint | |
1491 | Xstatic char getopt_c_rcsid [] = | |
1492 | X"$Id$"; | |
1493 | Xstatic char getopt_c_source [] = | |
1494 | X"$Source$"; | |
1495 | X#endif | |
1496 | X | |
1497 | X#include <stdio.h> | |
1498 | X#include <string.h> | |
1499 | X | |
1500 | Xchar *optarg; /* Global argument pointer. */ | |
1501 | Xint optind = 0; /* Global argv index. */ | |
1502 | X | |
1503 | Xstatic char *scan = NULL; /* Private scan pointer. */ | |
1504 | X | |
1505 | Xint | |
1506 | Xgetopt(argc, argv, optstring) | |
1507 | Xint argc; | |
1508 | Xchar *argv[]; | |
1509 | Xchar *optstring; | |
1510 | X{ | |
1511 | X char c; | |
1512 | X char *place; | |
1513 | X | |
1514 | X | |
1515 | X optarg = NULL; | |
1516 | X | |
1517 | X if (scan == NULL || *scan == '\0') | |
1518 | X { | |
1519 | X if (optind == 0) | |
1520 | X { | |
1521 | X optind++; | |
1522 | X } | |
1523 | X | |
1524 | X if (optind >= argc || argv[optind][0] != '-' || | |
1525 | X argv[optind][1] == '\0') | |
1526 | X { | |
1527 | X return(EOF); | |
1528 | X } | |
1529 | X | |
1530 | X if (strcmp(argv[optind], "--")==0) | |
1531 | X { | |
1532 | X optind++; | |
1533 | X return(EOF); | |
1534 | X } | |
1535 | X | |
1536 | X scan = argv[optind]+1; | |
1537 | X optind++; | |
1538 | X } | |
1539 | X | |
1540 | X c = *scan++; | |
1541 | X place = strchr(optstring, c); | |
1542 | X | |
1543 | X if (place == NULL || c == ':') | |
1544 | X { | |
1545 | X fprintf(stderr, "%s: unknown option -%c\n", argv[0], c); | |
1546 | X return('?'); | |
1547 | X } | |
1548 | X | |
1549 | X place++; | |
1550 | X if (*place == ':') | |
1551 | X { | |
1552 | X if (*scan != '\0') | |
1553 | X { | |
1554 | X optarg = scan; | |
1555 | X scan = NULL; | |
1556 | X } | |
1557 | X else if (optind < argc) | |
1558 | X { | |
1559 | X optarg = argv[optind]; | |
1560 | X optind++; | |
1561 | X } | |
1562 | X else | |
1563 | X { | |
1564 | X fprintf(stderr, "%s: -%c argument missing\n", argv[0], c); | |
1565 | X return('?'); | |
1566 | X } | |
1567 | X } | |
1568 | X | |
1569 | X return(c); | |
1570 | X} | |
1571 | END_OF_FILE | |
1572 | if test 1664 -ne `wc -c <'getopt.c'`; then | |
1573 | echo shar: \"'getopt.c'\" unpacked with wrong size! | |
1574 | fi | |
1575 | # end of 'getopt.c' | |
1576 | fi | |
1577 | if test ! -d 'hints' ; then | |
1578 | echo shar: Creating directory \"'hints'\" | |
1579 | mkdir 'hints' | |
1580 | fi | |
1581 | if test -f 'hints/aix.sh' -a "${1}" != "-c" ; then | |
1582 | echo shar: Will not clobber existing file \"'hints/aix.sh'\" | |
1583 | else | |
1584 | echo shar: Extracting \"'hints/aix.sh'\" \(186 characters\) | |
1585 | sed "s/^X//" >'hints/aix.sh' <<'END_OF_FILE' | |
1586 | X# $Id$ | |
1587 | Xcase ${osvers} in | |
1588 | X 3*) di_prog="diskinfo" ;; | |
1589 | X 4.[012]*) di_prog="diskinfo" ;; | |
1590 | X *) di_prog="di" ;; | |
1591 | Xesac | |
1592 | X | |
1593 | Xnm_opt="-B" | |
1594 | END_OF_FILE | |
1595 | if test 186 -ne `wc -c <'hints/aix.sh'`; then | |
1596 | echo shar: \"'hints/aix.sh'\" unpacked with wrong size! | |
1597 | fi | |
1598 | # end of 'hints/aix.sh' | |
1599 | fi | |
1600 | if test -f 'hints/beos.sh' -a "${1}" != "-c" ; then | |
1601 | echo shar: Will not clobber existing file \"'hints/beos.sh'\" | |
1602 | else | |
1603 | echo shar: Extracting \"'hints/beos.sh'\" \(590 characters\) | |
1604 | sed "s/^X//" >'hints/beos.sh' <<'END_OF_FILE' | |
1605 | X# $Id$ | |
1606 | X# unfortunately, nm doesn't find 'fs_info'. | |
1607 | Xd_statvfs="undef" | |
1608 | Xd_fs_info="define" | |
1609 | Xcc="c++" | |
1610 | Xusenm="define" | |
1611 | Xccflags="-I/boot/develop/headers/posix -I/boot/develop/headers/be" | |
1612 | Xincpath="/boot/develop/headers/posix:/boot/develop/headers/be" | |
1613 | Xcase `uname -m` in | |
1614 | X BePC) | |
1615 | X libc="/boot/develop/lib/x86/libroot.so" | |
1616 | X libpth="/boot/develop/lib/x86" | |
1617 | X libs='-lroot -lbe' | |
1618 | X ;; | |
1619 | X *) | |
1620 | X libc="/boot/develop/lib/ppc/libroot.so" #??? | |
1621 | X libpth="/boot/develop/lib/ppc" #??? | |
1622 | X libs='-lroot -lbe' | |
1623 | X ;; | |
1624 | Xesac | |
1625 | END_OF_FILE | |
1626 | if test 590 -ne `wc -c <'hints/beos.sh'`; then | |
1627 | echo shar: \"'hints/beos.sh'\" unpacked with wrong size! | |
1628 | fi | |
1629 | # end of 'hints/beos.sh' | |
1630 | fi | |
1631 | if test -f 'hints/dec_osf.sh' -a "${1}" != "-c" ; then | |
1632 | echo shar: Will not clobber existing file \"'hints/dec_osf.sh'\" | |
1633 | else | |
1634 | echo shar: Extracting \"'hints/dec_osf.sh'\" \(75 characters\) | |
1635 | sed "s/^X//" >'hints/dec_osf.sh' <<'END_OF_FILE' | |
1636 | X# $Id$ | |
1637 | Xd_statvfs="undef" | |
1638 | 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! | |
1641 | fi | |
1642 | # end of 'hints/dec_osf.sh' | |
1643 | fi | |
1644 | if test -f 'hints/dynix.sh' -a "${1}" != "-c" ; then | |
1645 | echo shar: Will not clobber existing file \"'hints/dynix.sh'\" | |
1646 | else | |
1647 | echo shar: Extracting \"'hints/dynix.sh'\" \(68 characters\) | |
1648 | sed "s/^X//" >'hints/dynix.sh' <<'END_OF_FILE' | |
1649 | X# $Id$ | |
1650 | Xlibs='-lseq' | |
1651 | END_OF_FILE | |
1652 | if test 68 -ne `wc -c <'hints/dynix.sh'`; then | |
1653 | echo shar: \"'hints/dynix.sh'\" unpacked with wrong size! | |
1654 | fi | |
1655 | # end of 'hints/dynix.sh' | |
1656 | fi | |
1657 | if test -f 'hints/dynixptx.sh' -a "${1}" != "-c" ; then | |
1658 | echo shar: Will not clobber existing file \"'hints/dynixptx.sh'\" | |
1659 | else | |
1660 | echo shar: Extracting \"'hints/dynixptx.sh'\" \(71 characters\) | |
1661 | sed "s/^X//" >'hints/dynixptx.sh' <<'END_OF_FILE' | |
1662 | X# $Id$ | |
1663 | Xlibs='-lseq' | |
1664 | END_OF_FILE | |
1665 | if test 71 -ne `wc -c <'hints/dynixptx.sh'`; then | |
1666 | echo shar: \"'hints/dynixptx.sh'\" unpacked with wrong size! | |
1667 | fi | |
1668 | # end of 'hints/dynixptx.sh' | |
1669 | fi | |
1670 | if test -f 'hints/freebsd.sh' -a "${1}" != "-c" ; then | |
1671 | echo shar: Will not clobber existing file \"'hints/freebsd.sh'\" | |
1672 | else | |
1673 | echo shar: Extracting \"'hints/freebsd.sh'\" \(143 characters\) | |
1674 | sed "s/^X//" >'hints/freebsd.sh' <<'END_OF_FILE' | |
1675 | X# $Id$ | |
1676 | Xcase "$osvers" in | |
1677 | X 1.*) | |
1678 | X ;; | |
1679 | X *) | |
1680 | X i_malloc="undef" | |
1681 | X ;; | |
1682 | Xesac | |
1683 | END_OF_FILE | |
1684 | if test 143 -ne `wc -c <'hints/freebsd.sh'`; then | |
1685 | echo shar: \"'hints/freebsd.sh'\" unpacked with wrong size! | |
1686 | fi | |
1687 | # end of 'hints/freebsd.sh' | |
1688 | fi | |
1689 | if test -f 'hints/hpux.sh' -a "${1}" != "-c" ; then | |
1690 | echo shar: Will not clobber existing file \"'hints/hpux.sh'\" | |
1691 | else | |
1692 | echo shar: Extracting \"'hints/hpux.sh'\" \(405 characters\) | |
1693 | sed "s/^X//" >'hints/hpux.sh' <<'END_OF_FILE' | |
1694 | X# $Id$ | |
1695 | Xccflags="$ccflags -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" | |
1696 | Xd_setmntent_one_arg='undef' | |
1697 | X | |
1698 | Xcase "$cc" in | |
1699 | X *gcc*) | |
1700 | X ccflags="-Wall $ccflags" | |
1701 | X ;; | |
1702 | X *) | |
1703 | X case "$osvers" in | |
1704 | X B.10.*|B.11.*) | |
1705 | X ccflags="+DAportable $ccflags" | |
1706 | X ;; | |
1707 | X esac | |
1708 | X | |
1709 | X ccflags="-Ae $ccflags" | |
1710 | X ;; | |
1711 | Xesac | |
1712 | END_OF_FILE | |
1713 | if test 405 -ne `wc -c <'hints/hpux.sh'`; then | |
1714 | echo shar: \"'hints/hpux.sh'\" unpacked with wrong size! | |
1715 | fi | |
1716 | # end of 'hints/hpux.sh' | |
1717 | fi | |
1718 | if test -f 'hints/irix.sh' -a "${1}" != "-c" ; then | |
1719 | echo shar: Will not clobber existing file \"'hints/irix.sh'\" | |
1720 | else | |
1721 | echo shar: Extracting \"'hints/irix.sh'\" \(190 characters\) | |
1722 | sed "s/^X//" >'hints/irix.sh' <<'END_OF_FILE' | |
1723 | X# $Id$ | |
1724 | X | |
1725 | Xcase "$osvers" in | |
1726 | X [45].*) | |
1727 | X libs="-lsun" | |
1728 | X ;; | |
1729 | X *) | |
1730 | X d_64bit_statfs_flds="define" | |
1731 | X ;; | |
1732 | Xesac | |
1733 | X | |
1734 | Xnm_opt='-p' | |
1735 | END_OF_FILE | |
1736 | if test 190 -ne `wc -c <'hints/irix.sh'`; then | |
1737 | echo shar: \"'hints/irix.sh'\" unpacked with wrong size! | |
1738 | fi | |
1739 | # end of 'hints/irix.sh' | |
1740 | fi | |
1741 | if test -f 'hints/linux.sh' -a "${1}" != "-c" ; then | |
1742 | echo shar: Will not clobber existing file \"'hints/linux.sh'\" | |
1743 | else | |
1744 | echo shar: Extracting \"'hints/linux.sh'\" \(391 characters\) | |
1745 | sed "s/^X//" >'hints/linux.sh' <<'END_OF_FILE' | |
1746 | X# $Id$ | |
1747 | Xcase "$osvers" in | |
1748 | X 1.*) | |
1749 | X libc="/lib/libc.so.5.0.9" | |
1750 | X d_statfssysv3="undef" | |
1751 | X d_statfsbsd="define" | |
1752 | X ;; | |
1753 | X 2.0.*) | |
1754 | X libs=" " | |
1755 | X ;; | |
1756 | X *) | |
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`" | |
1760 | X ;; | |
1761 | Xesac | |
1762 | END_OF_FILE | |
1763 | if test 391 -ne `wc -c <'hints/linux.sh'`; then | |
1764 | echo shar: \"'hints/linux.sh'\" unpacked with wrong size! | |
1765 | fi | |
1766 | # end of 'hints/linux.sh' | |
1767 | fi | |
1768 | if test -f 'hints/openbsd.sh' -a "${1}" != "-c" ; then | |
1769 | echo shar: Will not clobber existing file \"'hints/openbsd.sh'\" | |
1770 | else | |
1771 | echo shar: Extracting \"'hints/openbsd.sh'\" \(111 characters\) | |
1772 | sed "s/^X//" >'hints/openbsd.sh' <<'END_OF_FILE' | |
1773 | X# $Id$ | |
1774 | X# hints/openbsd.sh | |
1775 | Xi_malloc="undef" | |
1776 | Xoptimize="-O2 -g" | |
1777 | END_OF_FILE | |
1778 | if test 111 -ne `wc -c <'hints/openbsd.sh'`; then | |
1779 | echo shar: \"'hints/openbsd.sh'\" unpacked with wrong size! | |
1780 | fi | |
1781 | # end of 'hints/openbsd.sh' | |
1782 | fi | |
1783 | if test -f 'hints/solaris.sh' -a "${1}" != "-c" ; then | |
1784 | echo shar: Will not clobber existing file \"'hints/solaris.sh'\" | |
1785 | else | |
1786 | echo shar: Extracting \"'hints/solaris.sh'\" \(1007 characters\) | |
1787 | sed "s/^X//" >'hints/solaris.sh' <<'END_OF_FILE' | |
1788 | X# $Id$ | |
1789 | X | |
1790 | Xcase "$osvers" in | |
1791 | X 2.[6-9]*) | |
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`" | |
1795 | X ;; | |
1796 | X 2.*|1*) ;; | |
1797 | X *) | |
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`" | |
1801 | X ;; | |
1802 | Xesac | |
1803 | X | |
1804 | Xcase "$cc" in | |
1805 | X *gcc*) ccflags="-Wall $ccflags" | |
1806 | X ;; | |
1807 | X *) ccflags="-Xa -v -fast $ccflags" | |
1808 | X ldflags="-fast $ldflags" | |
1809 | X optimize="" | |
1810 | X case "$osvers" in | |
1811 | X 2.[7-9]*) | |
1812 | X if [ -x /usr/bin/isainfo -a \ | |
1813 | X `uname -m` = sun4u -a \ | |
1814 | X `/usr/bin/isainfo -b` = 64 ] | |
1815 | X then | |
1816 | X ccflags="${ccflags} -xarch=v9" | |
1817 | X ldflags="${ldflags} -xarch=v9" | |
1818 | X fi | |
1819 | X ;; | |
1820 | X esac | |
1821 | X ;; | |
1822 | Xesac | |
1823 | X | |
1824 | END_OF_FILE | |
1825 | if test 1007 -ne `wc -c <'hints/solaris.sh'`; then | |
1826 | echo shar: \"'hints/solaris.sh'\" unpacked with wrong size! | |
1827 | fi | |
1828 | # end of 'hints/solaris.sh' | |
1829 | fi | |
1830 | if test -f 'hints/unicos.sh' -a "${1}" != "-c" ; then | |
1831 | echo shar: Will not clobber existing file \"'hints/unicos.sh'\" | |
1832 | else | |
1833 | echo shar: Extracting \"'hints/unicos.sh'\" \(173 characters\) | |
1834 | sed "s/^X//" >'hints/unicos.sh' <<'END_OF_FILE' | |
1835 | X# $Id$ | |
1836 | Xcase "$osvers" in | |
1837 | X 9.*) | |
1838 | X ubsize="BSIZE" | |
1839 | X ;; | |
1840 | Xesac | |
1841 | X | |
1842 | Xd_getmntinfo="undef" | |
1843 | Xd_setmntent_one_arg="define" | |
1844 | END_OF_FILE | |
1845 | if test 173 -ne `wc -c <'hints/unicos.sh'`; then | |
1846 | echo shar: \"'hints/unicos.sh'\" unpacked with wrong size! | |
1847 | fi | |
1848 | # end of 'hints/unicos.sh' | |
1849 | fi | |
1850 | if test -f 'win95.mak' -a "${1}" != "-c" ; then | |
1851 | echo shar: Will not clobber existing file \"'win95.mak'\" | |
1852 | else | |
1853 | echo shar: Extracting \"'win95.mak'\" \(1267 characters\) | |
1854 | sed "s/^X//" >'win95.mak' <<'END_OF_FILE' | |
1855 | X# | |
1856 | X# di makefile for windows95 | |
1857 | X# | |
1858 | X# Copyright 1995-1999 Brad Lanam | |
1859 | X# | |
1860 | X# $Id$ | |
1861 | X# $Source$ | |
1862 | X# | |
1863 | X | |
1864 | XCFLAGS = | |
1865 | XLDFLAGS = | |
1866 | XLIBS = | |
1867 | XPROG = di | |
1868 | XMPROG = mi | |
1869 | X | |
1870 | X### | |
1871 | X | |
1872 | Xnone: | |
1873 | X echo Usage: | |
1874 | X echo nmake -f win95.mak windows | |
1875 | X echo or make -f win95.mak windows-gcc | |
1876 | X | |
1877 | X# This was tested using vc++ 5.0. | |
1878 | Xwindows: | |
1879 | X $(MAKE) -f win95.mak CC=cl LD=cl EXE_EXT=".exe" OBJ_EXT=".obj" \ | |
1880 | X OTHEROBJ="getopt.obj" \ | |
1881 | X CP="copy " \ | |
1882 | X CFLAGS="$(CFLAGS) -nologo -O2 \ | |
1883 | X -DMPROG=\\\"$(MPROG)\\\" \ | |
1884 | X -DDEFAULT_FORMAT=\\\"sMbuvpT\\\"" \ | |
1885 | X LDFLAGS="-nologo -O2" $(PROG).exe | |
1886 | X | |
1887 | X# This was tested using Cygnus gcc b19 | |
1888 | Xwindows-gcc: | |
1889 | X $(MAKE) -f win95.mak CC=gcc LD=gcc EXE_EXT=".exe" OBJ_EXT=".o" \ | |
1890 | X OTHEROBJ="getopt.o" \ | |
1891 | X CP="cp -f" \ | |
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 | |
1897 | X | |
1898 | X### | |
1899 | X | |
1900 | Xconfig.h: config.win95 | |
1901 | X $(CP) config.win95 config.h | |
1902 | X | |
1903 | X#################### | |
1904 | 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) | |
1908 | X | |
1909 | X### | |
1910 | X | |
1911 | Xdi$(OBJ_EXT): di.c config.h | |
1912 | X $(CC) -c $(CFLAGS) di.c | |
1913 | X | |
1914 | Xgetopt$(OBJ_EXT): getopt.c | |
1915 | X $(CC) -c $(CFLAGS) getopt.c | |
1916 | END_OF_FILE | |
1917 | if test 1267 -ne `wc -c <'win95.mak'`; then | |
1918 | echo shar: \"'win95.mak'\" unpacked with wrong size! | |
1919 | fi | |
1920 | chmod +x 'win95.mak' | |
1921 | # end of 'win95.mak' | |
1922 | fi | |
1923 | echo shar: End of archive 1 \(of 3\). | |
1924 | cp /dev/null ark1isdone | |
1925 | MISSING="" | |
1926 | for I in 1 2 3 ; do | |
1927 | if test ! -f ark${I}isdone ; then | |
1928 | MISSING="${MISSING} ${I}" | |
1929 | fi | |
1930 | done | |
1931 | if test "${MISSING}" = "" ; then | |
1932 | echo You have unpacked all 3 archives. | |
1933 | rm -f ark[1-9]isdone | |
1934 | else | |
1935 | echo You still need to unpack the following archives: | |
1936 | echo " " ${MISSING} | |
1937 | fi | |
1938 | ## End of shell archive. | |
1939 | exit 0 | |
1940 |