This commit is contained in:
sylvestre
2023-04-28 02:38:31 +00:00
parent 3b2436ccc8
commit b4f502f580
12 changed files with 17 additions and 47 deletions
+4 -28
View File
@@ -219,18 +219,6 @@
<a href="#219" id="219">219</a>
<a href="#220" id="220">220</a>
<a href="#221" id="221">221</a>
<a href="#222" id="222">222</a>
<a href="#223" id="223">223</a>
<a href="#224" id="224">224</a>
<a href="#225" id="225">225</a>
<a href="#226" id="226">226</a>
<a href="#227" id="227">227</a>
<a href="#228" id="228">228</a>
<a href="#229" id="229">229</a>
<a href="#230" id="230">230</a>
<a href="#231" id="231">231</a>
<a href="#232" id="232">232</a>
<a href="#233" id="233">233</a>
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
// *
// * (c) Dorota Kapturkiewicz &lt;dokaptur@gmail.com&gt;
@@ -250,23 +238,11 @@
<span class="kw">use </span>tempfile::TempDir;
<span class="kw">use </span>uucore::error::{FromIo, UResult, USimpleError, UUsageError};
<span class="kw">use </span>uucore::parse_size::parse_size;
<span class="kw">use </span>uucore::{crash, format_usage};
<span class="kw">use </span>uucore::{crash, format_usage, help_about, help_section, help_usage};
<span class="kw">static </span>ABOUT: <span class="kw-2">&amp;</span>str =
<span class="string">&quot;Run COMMAND, with modified buffering operations for its standard streams.\n\n\
Mandatory arguments to long options are mandatory for short options too.&quot;</span>;
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;{} OPTION... COMMAND&quot;</span>;
<span class="kw">static </span>LONG_HELP: <span class="kw-2">&amp;</span>str = <span class="string">&quot;If MODE is &#39;L&#39; the corresponding stream will be line buffered.\n\
This option is invalid with standard input.\n\n\
If MODE is &#39;0&#39; the corresponding stream will be unbuffered.\n\n\
Otherwise MODE is a number which may be followed by one of the following:\n\n\
KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.\n\
In this case the corresponding stream will be fully buffered with the buffer size set to \
MODE bytes.\n\n\
NOTE: If COMMAND adjusts the buffering of its standard streams (&#39;tee&#39; does for e.g.) then \
that will override corresponding settings changed by &#39;stdbuf&#39;.\n\
Also some filters (like &#39;dd&#39; and &#39;cat&#39; etc.) don&#39;t use streams for I/O, \
and are thus unaffected by &#39;stdbuf&#39; settings.\n&quot;</span>;
<span class="kw">const </span>ABOUT: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;stdbuf.md&quot;</span>);
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;stdbuf.md&quot;</span>);
<span class="kw">const </span>LONG_HELP: <span class="kw-2">&amp;</span>str = <span class="macro">help_section!</span>(<span class="string">&quot;after help&quot;</span>, <span class="string">&quot;stdbuf.md&quot;</span>);
<span class="kw">mod </span>options {
<span class="kw">pub const </span>INPUT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;input&quot;</span>;
+3 -9
View File
@@ -410,9 +410,6 @@
<a href="#410" id="410">410</a>
<a href="#411" id="411">411</a>
<a href="#412" id="412">412</a>
<a href="#413" id="413">413</a>
<a href="#414" id="414">414</a>
<a href="#415" id="415">415</a>
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
// *
// * For the full copyright and license information, please view the LICENSE file
@@ -433,7 +430,7 @@
<span class="kw">use </span>std::os::unix::fs::OpenOptionsExt;
<span class="kw">use </span>std::os::unix::io::{AsRawFd, IntoRawFd, RawFd};
<span class="kw">use </span>uucore::error::{UResult, USimpleError};
<span class="kw">use </span>uucore::format_usage;
<span class="kw">use </span>uucore::{format_usage, help_about, help_usage};
<span class="attr">#[cfg(not(any(
target_os = <span class="string">&quot;freebsd&quot;</span>,
@@ -446,11 +443,8 @@
</span><span class="kw">use </span>flags::BAUD_RATES;
<span class="kw">use </span>flags::{CONTROL_FLAGS, INPUT_FLAGS, LOCAL_FLAGS, OUTPUT_FLAGS};
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="string">&quot;\
{} [-F DEVICE | --file=DEVICE] [SETTING]...
{} [-F DEVICE | --file=DEVICE] [-a|--all]
{} [-F DEVICE | --file=DEVICE] [-g|--save]&quot;</span>;
<span class="kw">const </span>SUMMARY: <span class="kw-2">&amp;</span>str = <span class="string">&quot;Print or change terminal characteristics.&quot;</span>;
<span class="kw">const </span>USAGE: <span class="kw-2">&amp;</span>str = <span class="macro">help_usage!</span>(<span class="string">&quot;stty.md&quot;</span>);
<span class="kw">const </span>SUMMARY: <span class="kw-2">&amp;</span>str = <span class="macro">help_about!</span>(<span class="string">&quot;stty.md&quot;</span>);
<span class="attr">#[derive(Clone, Copy, Debug)]
</span><span class="kw">pub struct </span>Flag&lt;T&gt; {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long