/usr/share/doc/HOWTO/ja-html/Software-Building-HOWTO-13.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>Building and Installing Software Packages for Linux: 5 $BHVL\$NNc(B: XmDipmon</TITLE>
<LINK HREF="Software-Building-HOWTO-14.html" REL=next>
<LINK HREF="Software-Building-HOWTO-12.html" REL=previous>
<LINK HREF="Software-Building-HOWTO.html#toc13" REL=contents>
</HEAD>
<BODY>
<A HREF="Software-Building-HOWTO-14.html">$B<!$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO-12.html">$BA0$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO.html#toc13">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s13">13.</A> <A HREF="Software-Building-HOWTO.html#toc13">5 $BHVL\$NNc(B: XmDipmon</A></H2>
<P>
<BLOCKQUOTE><CODE>
<PRE>
$B%V%k%&%#%s%/%k(B: $B$d$"!"%m%C%-!<!#K9;R$+$i%&%5%.$r=P$9$+$i8+$F$F$/$l$h!#(B
$B%m%C%-!<(B: $B$G$b!"$&$^$/$$$C$?$3$H$J$s$+$J$$$8$c$s!#(B
$B%V%k%&%#%s%/%k(B: $B:#EY$3$=$&$^$/$$$/$h!#(B
$B$=$l$C(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 1 $B$D$@$1$G$9$7!"9,$$$J$3$H$K>\$7$$%3%a%s%H$,IU$1$i$l(B
$B$F$$$^$9!#(B<CODE>xmdipmon.c</CODE> $B$rD/$a$F$_$k$H(B <EM>getProcFile</EM> $B$H$$(B
$B$&4X?t$,$"$j$^$9$,!"$=$N@hF,$K$O0J2<$N$h$&$K=q$$$F$"$j$^$9!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
/*****
* Name: getProcFile
* Return Type: Boolean
* Description: dip $B$N(B pid $B%U%!%$%k$+$iFI$_=P$7$?(B /proc $B%(%s%H%j$N%*!<%W%s$r;n$_$k(B
<snip>
*****/
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$3$O4hD%$C$FD4$Y$k$H$3$m$G$9!#4X?t$NCf?H$rFI$s$G$_$^$7$g$&!D!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
/* we watch the status of the real dip daemon */
sprintf(buf, "/proc/%i/status", pid);
procfile = (String)XtMalloc(strlen(buf)*sizeof(char)+1);
strcpy(procfile, buf);
procfile[strlen(buf)] = '\0';
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$BLdBj$K$J$k$N$O(B 2383 $B9TL\$G$9(B:
<BLOCKQUOTE><CODE>
<PRE>
sprintf(buf, "/proc/%i/status", pid);
^^^^^^^^^^^^^^^^^^^^^
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$N%3!<%I$O(B dip $B%G!<%b%s$N%W%m%;%9$,F0:nCf$+$I$&$+$rD4$Y$F$$$^$9!#(B
$B$3$3$G!"$I$&$9$l$P(B dip $B$G$J$/(B pppd $B%G!<%b%s$r4F;k$9$k$h$&$KJQ99$G$-$k(B
$B$G$7$g$&$+(B?</P>
<P><EM>pppd</EM> $B$N(B man $B%Z!<%8$rFI$s$G$_$^$7$g$&(B:
<BLOCKQUOTE><CODE>
<PRE>
FILES
/var/run/pppn.pid (BSD $B$^$?$O(B Linux), /etc/ppp/pppn.pid (others)
ppp $B%$%s%?%U%'!<%9%f%K%C%H(B n $B$N(B pppd $B%W%m%;%9$N%W%m%;%9(B ID
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$=$3$G!"(B<CODE>xmdipmon.c</CODE> $B$N(B 2383 $B9TL\$r0J2<$N$h$&$KJQ99$7$^$9(B:
<BLOCKQUOTE><CODE>
<PRE>
sprintf(buf, "/var/run/ppp0.pid" );
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B=$@5$7$?%Q%C%1!<%8$r:F9=C[$7$^$9!#9=C[$OLdBj$J$$$O$:$G$9!#<!$K!"?7$7$$(B
$B%3%^%s%I%i%$%s0z?t$r%F%9%H$7$^$9!#$3$l$O8+;v$KF0:n$7$^$9!#(BISP $B$X$N(B
<CODE>ppp</CODE> $B@\B3$,3NN)$9$k$H>.$5$J@D$$%\%?%s$,$=$l$r<($7!"@\B3$,@Z$l(B
$B$k$H%\%?%s$,8w$j!"%S!<%W2;$,$7$^$9!#$3$l$G(B <EM>chat</EM> $B$r40`z$K4F;k(B
$B$G$-$k%D!<%k$,$G$-$^$7$?!#(B</P>
<P>XmDipmon $B$O(B
<A HREF="http://www.xs4all.nl/~ripley/RSD/linux.html">Ripley Linux Tools</A>
$B$+$iF~<j$G$-$^$9!#(B</P>
<HR>
<A HREF="Software-Building-HOWTO-14.html">$B<!$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO-12.html">$BA0$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO.html#toc13">$BL\<!$X(B</A>
</BODY>
</HTML>
|