Article View: fj.sources.d
Article #66Re: du2ps
From: Takanori Nagae
Date: Thu, 10 Sep 1992 06:49
Date: Thu, 10 Sep 1992 06:49
105 lines
4595 bytes
4595 bytes
$@El9)Bg$N1J9>$G$9!%(J
$@A02s$O!$<!$N$h$&$K=q$$$?$N$G$9$,!'(J
---$@$3$3$+$i(J---
In article <NAGAE.92Aug31160056@ipc4.an.isl.titech.ac.jp> nagae@an.isl.titech.ac.jp (Takanori Nagae) writes:
>$@$^$?!$(Jxdu$@$K$b$H(J$@$b$H$"$k%P%0(J($@;EMM(J)$@$N$h$&$J$N$G!$<j$r$D$1$J$+$C$?$N$G$9(J
>$@$,!$(J
>
>du /usr | xdu
>
>$@$H$+(J
>
>du /usr | du2ps | lpr
>
>$@$H$$$&$U$&$K!$(Jdu$@$K%Q%9L>$rEO$9$H(Jxdu$@!$(Jdu2ps$@$H$b$K$*$+$7$JF0:n$r$7$^$9!%(J
>du$@$K%Q%9L>$rEO$5(J$@$J$1$l$P!$$D$^$j(Jdu$@$G8+$?$$%G%#%l%/%H%j$K(Jcd$@$7$F$+$i(Jdu2ps
>$@$9$l$PLdBj$J$/F0$-$^$9!%$^$?!$(Jxdu$@$d(Jgs$@$J$I$G3N(J$@G'$7$F$+$i%W%j%s%?$KAw$C(J
>$@$?J}$,$$$$$+$b$7$l$^$;$s!%(JNews$@$G$O!$%Q%9L>$rEO$7$F$b$&$^$/F0$/$=$&$G$9!%(J
>$@$^(J$@$?!$(JUNIX$@$N(J/bin/du$@$H$O0c$&;EMM$N(Jdu$@$b$"$C$F!$=PNO7A<0$,0c$&$3$H$,$"$k(J
>$@$=$&$J$N$G!$$4Cm0U$/$@$5$$!%(J
---$@$3$3$^$G(J---
$@$*$J$8El9)Bg$NLZB<$5$s$+$i!$$"$j$,$?$$%Q%C%A$r$$$?$@$-$^$7$F!$$3$l$G>e(J
$@$K=q$$$?(Jdu2ps$@$N0[(J$@>oF0:n$O!$0l5s$K2r7h$7$^$7$?!%0J2<$K$=$N%a%$%k$N0lIt(J
$@$H%Q%C%A$r7G:\$7$^$9!%(J
---$@$3$3$+$i(J---
$@%P%0%l%](J$@!<%H$J$s$G$9$,!"<B$O(J xdu $@$K$O!"0z?t$K%U%k%Q%9$rM?$($?$H$-(J
$@$N(J du $@$N=PNO$rM?$($k$H!"$3$l$r%k!<%H%G%#%l%/(J$@%H%j$+$iI=<($7$h$&$H$7$F(J
$@I=<($,$*$+$7$/$J$k!"$H$$$&%P%0$,$"$j$^$7$F!"(Jdu2ps $@$O$=$N%P%0$r$=$N$^(J
$@$^0z$-7Q(J$@$$$G$$$^$9!#(J
$@$=$N%P%0$r2r>C$9$k$?$a$N%Q%C%A$rAw$j$^$9!#(J
$@!t(J $@$G$-$l$P%U%!%$%kL>$d%5%$%:$G%=!<%H$7$F(J$@I=<($9$k$?$a$N%*%W%7%g%s$b(J
$@!t(J $@$"$C$?$[$&$,$$$$$J$!!D!D!#(J(^_^$@!6(J
--
$@!2!2!2(J
$@!C(J $@!C(J nmi@cs.titech.ac.jp
$@!C#N(J $@!C(J $@El5~9)6HBg3X(J $@Bg3X1!(J $@M}9)3X8&5f2J(J
$@!C(J $@$_(J $@!C(J $@>pJs9)3X@l96(J $@FAED8&5f<<(J $@#D#1(J $@LZB<4n>;(J
$@!1!1!1(J
-----------8<---------- cut here -----------8<----------
*** du2ps/du2ps.c Thu Aug 27 00:04:31 1992
--- du2ps.c Tue Sep 8 21:28:54 1992
***************
*** 82,87 ****
--- 82,88 ----
struct node *parent; /* backpointer to parent */
} top;
struct node *topp = ⊤
+ struct node *np; /* Final value of global `np' points the true root node. */
#define NODE_NULL ((struct node *)0)
/*
***************
*** 208,214 ****
}
/*dumptree(&top,0);*/
! topp = ⊤
/* don't display root if only one child */
if (numchildren(topp) == 1)
topp = topp->child;
--- 209,215 ----
}
/*dumptree(&top,0);*/
! topp = np;
/* don't display root if only one child */
if (numchildren(topp) == 1)
topp = topp->child;
***************
*** 358,364 ****
char *path[];
int size;
{
! struct node *np;
/*printf("addtree(\"%s\",\"%s\",%d)\n", top->name, path[0], size);*/
--- 359,365 ----
char *path[];
int size;
{
! /* struct node *np; */ /* Use global `np'. */
/*printf("addtree(\"%s\",\"%s\",%d)\n", top->name, path[0], size);*/
---$@$3$3$^$G(J---
$@!t(J $@$`$`$`!%!%%=!<%9$r(Jinsert$@$9$k$H$-$K!$(Jgnus$@$,>!<j$K2~9T$rF~$l$F$7$^$C(J
$@!t(J $@$?$N$r!$%^%K%e%"%k$GI|3h$7$F(J$@$*$$$?$,!$(Jpatch$@$OJ,$+$C$F$/$l$k$@$m$&$+!%!%(J
$@3N$+$K!$(Jdu2ps$@$K$O(Jxdu$@$+$i0z$-7Q$$$@$$$m$$$mJQ$JE@$,;D$C$F(J$@$$$k$N$G!$$=$N(J
$@$&$A$^$H$a$F%P!<%8%g%s%"%C%W$7$h$&$+$J!$$J$I$H9M$($F$$$^$9!%(J
$@$_$J$5$s$46(NO$"$j$,$H$&$4(J$@$5$$$^$9!%(J
$@!t(J $@$I$J$?$+!$0l5$$K40A4BN$K$7$F2<$5$C$F$b7k9=$G$9(J :-)
$@!t(J $@:G=i$N(Jfj.sources$@$X$NEj9F$G$O!$(JFollowup-To: fj.sources.d$@$,Mn$A$F$$$^(J
$@!t(J $@$7$?!%$9$$$^$;$s$G$7$?!%(J
_ __ __
][ ][ ]$@1J9>(J $@9'5,(J nagae@an.isl.titech.ac.jp
[__][__][_ $@El9)Bg(J $@A|>pJs9)3X8&5f;\@_(J $@0B5o1!8&(J
Technical Details
Message-ID:
<NAGAE.92Sep10154936@ipc5.an.isl.titech.ac.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!cs.titech!is.titech!sys.titech.ac.jp!pi.titech!isl.titech!islsun!nagaeReferences:
<NAGAE.92Aug25050353@ipc4.an.isl.titech.ac.jp> <NAGAE.92Aug31160056@ipc4.an.isl.titech.ac.jp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!cs.titech!is.titech!sys.titech.ac.jp!pi.titech!isl.titech!islsun!nagae From: nagae@an.isl.titech.ac.jp (Takanori Nagae) Newsgroups: fj.sources.d Subject: Re: du2ps Message-ID: <NAGAE.92Sep10154936@ipc5.an.isl.titech.ac.jp> Date: 10 Sep 92 06:49:36 GMT References: <NAGAE.92Aug25050353@ipc4.an.isl.titech.ac.jp> <NAGAE.92Aug31160056@ipc4.an.isl.titech.ac.jp> Sender: news@isl.titech.ac.jp Reply-To: nagae@an.isl.titech.ac.jp Distribution: fj Organization: Imaging Science and Engineering Lab., Tokyo Inst. of Tech., Japan Lines: 105 Nntp-Posting-Host: ipc5 In-reply-to: nagae@an.isl.titech.ac.jp's message of 31 Aug 92 07:00:56 GMT