Skip to content

Commit 8a3fa56

Browse files
committed
deploy: c249eba
1 parent 2b1ec83 commit 8a3fa56

11 files changed

+372
-114
lines changed

dev/src/uu_tail/tail.rs.html

+168-104
Large diffs are not rendered by default.

dev/src/uucore/features/signals.rs.html

+195-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,103 @@
136136
<span id="130">130</span>
137137
<span id="131">131</span>
138138
<span id="132">132</span>
139+
<span id="133">133</span>
140+
<span id="134">134</span>
141+
<span id="135">135</span>
142+
<span id="136">136</span>
143+
<span id="137">137</span>
144+
<span id="138">138</span>
145+
<span id="139">139</span>
146+
<span id="140">140</span>
147+
<span id="141">141</span>
148+
<span id="142">142</span>
149+
<span id="143">143</span>
150+
<span id="144">144</span>
151+
<span id="145">145</span>
152+
<span id="146">146</span>
153+
<span id="147">147</span>
154+
<span id="148">148</span>
155+
<span id="149">149</span>
156+
<span id="150">150</span>
157+
<span id="151">151</span>
158+
<span id="152">152</span>
159+
<span id="153">153</span>
160+
<span id="154">154</span>
161+
<span id="155">155</span>
162+
<span id="156">156</span>
163+
<span id="157">157</span>
164+
<span id="158">158</span>
165+
<span id="159">159</span>
166+
<span id="160">160</span>
167+
<span id="161">161</span>
168+
<span id="162">162</span>
169+
<span id="163">163</span>
170+
<span id="164">164</span>
171+
<span id="165">165</span>
172+
<span id="166">166</span>
173+
<span id="167">167</span>
174+
<span id="168">168</span>
175+
<span id="169">169</span>
176+
<span id="170">170</span>
177+
<span id="171">171</span>
178+
<span id="172">172</span>
179+
<span id="173">173</span>
180+
<span id="174">174</span>
181+
<span id="175">175</span>
182+
<span id="176">176</span>
183+
<span id="177">177</span>
184+
<span id="178">178</span>
185+
<span id="179">179</span>
186+
<span id="180">180</span>
187+
<span id="181">181</span>
188+
<span id="182">182</span>
189+
<span id="183">183</span>
190+
<span id="184">184</span>
191+
<span id="185">185</span>
192+
<span id="186">186</span>
193+
<span id="187">187</span>
194+
<span id="188">188</span>
195+
<span id="189">189</span>
196+
<span id="190">190</span>
197+
<span id="191">191</span>
198+
<span id="192">192</span>
199+
<span id="193">193</span>
200+
<span id="194">194</span>
201+
<span id="195">195</span>
202+
<span id="196">196</span>
203+
<span id="197">197</span>
204+
<span id="198">198</span>
205+
<span id="199">199</span>
206+
<span id="200">200</span>
207+
<span id="201">201</span>
208+
<span id="202">202</span>
209+
<span id="203">203</span>
210+
<span id="204">204</span>
211+
<span id="205">205</span>
212+
<span id="206">206</span>
213+
<span id="207">207</span>
214+
<span id="208">208</span>
215+
<span id="209">209</span>
216+
<span id="210">210</span>
217+
<span id="211">211</span>
218+
<span id="212">212</span>
219+
<span id="213">213</span>
220+
<span id="214">214</span>
221+
<span id="215">215</span>
222+
<span id="216">216</span>
223+
<span id="217">217</span>
224+
<span id="218">218</span>
225+
<span id="219">219</span>
226+
<span id="220">220</span>
227+
<span id="221">221</span>
228+
<span id="222">222</span>
229+
<span id="223">223</span>
230+
<span id="224">224</span>
231+
<span id="225">225</span>
232+
<span id="226">226</span>
233+
<span id="227">227</span>
234+
<span id="228">228</span>
235+
<span id="229">229</span>
139236
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.</span>
140237
<span class="comment">//</span>
141238
<span class="comment">// (c) Maciej Dziardziel &lt;fiedzia@gmail.com&gt;</span>
@@ -144,7 +241,7 @@
144241
<span class="comment">// that was distributed with this source code.</span>
145242

146243
<span class="comment">// spell-checker:ignore (vars/api) fcntl setrlimit setitimer</span>
147-
<span class="comment">// spell-checker:ignore (vars/signals) ABRT ALRM CHLD SEGV SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGEMT SIGFPE SIGHUP SIGILL SIGINFO SIGINT SIGIO SIGIOT SIGKILL SIGPIPE SIGPROF SIGQUIT SIGSEGV SIGSTOP SIGSYS SIGTERM SIGTRAP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGUSR SIGVTALRM SIGWINCH SIGXCPU SIGXFSZ STKFLT TSTP TTIN TTOU VTALRM XCPU XFSZ</span>
244+
<span class="comment">// spell-checker:ignore (vars/signals) ABRT ALRM CHLD SEGV SIGABRT SIGALRM SIGBUS SIGCHLD SIGCONT SIGEMT SIGFPE SIGHUP SIGILL SIGINFO SIGINT SIGIO SIGIOT SIGKILL SIGPIPE SIGPROF SIGPWR SIGQUIT SIGSEGV SIGSTOP SIGSYS SIGTERM SIGTRAP SIGTSTP SIGTHR SIGTTIN SIGTTOU SIGURG SIGUSR SIGVTALRM SIGWINCH SIGXCPU SIGXFSZ STKFLT PWR THR TSTP TTIN TTOU VTALRM XCPU XFSZ</span>
148245

149246
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">DEFAULT_SIGNAL</span>: <span class="ident">usize</span> <span class="op">=</span> <span class="number">15</span>;
150247

@@ -216,6 +313,103 @@
216313
<span class="string">&quot;XCPU&quot;</span>, <span class="string">&quot;XFSZ&quot;</span>, <span class="string">&quot;VTALRM&quot;</span>, <span class="string">&quot;PROF&quot;</span>, <span class="string">&quot;WINCH&quot;</span>, <span class="string">&quot;INFO&quot;</span>, <span class="string">&quot;USR1&quot;</span>, <span class="string">&quot;USR2&quot;</span>,
217314
];
218315

316+
<span class="comment">/*
317+
318+
The following signals are defined in NetBSD:
319+
320+
SIGHUP 1 Hangup
321+
SIGINT 2 Interrupt
322+
SIGQUIT 3 Quit
323+
SIGILL 4 Illegal instruction
324+
SIGTRAP 5 Trace/BPT trap
325+
SIGABRT 6 Abort trap
326+
SIGEMT 7 EMT trap
327+
SIGFPE 8 Floating point exception
328+
SIGKILL 9 Killed
329+
SIGBUS 10 Bus error
330+
SIGSEGV 11 Segmentation fault
331+
SIGSYS 12 Bad system call
332+
SIGPIPE 13 Broken pipe
333+
SIGALRM 14 Alarm clock
334+
SIGTERM 15 Terminated
335+
SIGURG 16 Urgent I/O condition
336+
SIGSTOP 17 Suspended (signal)
337+
SIGTSTP 18 Suspended
338+
SIGCONT 19 Continued
339+
SIGCHLD 20 Child exited, stopped or continued
340+
SIGTTIN 21 Stopped (tty input)
341+
SIGTTOU 22 Stopped (tty output)
342+
SIGIO 23 I/O possible
343+
SIGXCPU 24 CPU time limit exceeded
344+
SIGXFSZ 25 File size limit exceeded
345+
SIGVTALRM 26 Virtual timer expired
346+
SIGPROF 27 Profiling timer expired
347+
SIGWINCH 28 Window size changed
348+
SIGINFO 29 Information request
349+
SIGUSR1 30 User defined signal 1
350+
SIGUSR2 31 User defined signal 2
351+
SIGPWR 32 Power fail/restart
352+
*/</span>
353+
354+
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">target_os</span> <span class="op">=</span> <span class="string">&quot;netbsd&quot;</span>)]</span>
355+
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">ALL_SIGNALS</span>: [<span class="kw-2">&amp;</span><span class="ident">str</span>; <span class="number">33</span>] <span class="op">=</span> [
356+
<span class="string">&quot;EXIT&quot;</span>, <span class="string">&quot;HUP&quot;</span>, <span class="string">&quot;INT&quot;</span>, <span class="string">&quot;QUIT&quot;</span>, <span class="string">&quot;ILL&quot;</span>, <span class="string">&quot;TRAP&quot;</span>, <span class="string">&quot;ABRT&quot;</span>, <span class="string">&quot;EMT&quot;</span>, <span class="string">&quot;FPE&quot;</span>, <span class="string">&quot;KILL&quot;</span>, <span class="string">&quot;BUS&quot;</span>, <span class="string">&quot;SEGV&quot;</span>,
357+
<span class="string">&quot;SYS&quot;</span>, <span class="string">&quot;PIPE&quot;</span>, <span class="string">&quot;ALRM&quot;</span>, <span class="string">&quot;TERM&quot;</span>, <span class="string">&quot;URG&quot;</span>, <span class="string">&quot;STOP&quot;</span>, <span class="string">&quot;TSTP&quot;</span>, <span class="string">&quot;CONT&quot;</span>, <span class="string">&quot;CHLD&quot;</span>, <span class="string">&quot;TTIN&quot;</span>, <span class="string">&quot;TTOU&quot;</span>, <span class="string">&quot;IO&quot;</span>,
358+
<span class="string">&quot;XCPU&quot;</span>, <span class="string">&quot;XFSZ&quot;</span>, <span class="string">&quot;VTALRM&quot;</span>, <span class="string">&quot;PROF&quot;</span>, <span class="string">&quot;WINCH&quot;</span>, <span class="string">&quot;INFO&quot;</span>, <span class="string">&quot;USR1&quot;</span>, <span class="string">&quot;USR2&quot;</span>, <span class="string">&quot;PWR&quot;</span>,
359+
];
360+
361+
<span class="comment">/*
362+
363+
The following signals are defined in OpenBSD:
364+
365+
SIGHUP terminate process terminal line hangup
366+
SIGINT terminate process interrupt program
367+
SIGQUIT create core image quit program
368+
SIGILL create core image illegal instruction
369+
SIGTRAP create core image trace trap
370+
SIGABRT create core image abort(3) call (formerly SIGIOT)
371+
SIGEMT create core image emulate instruction executed
372+
SIGFPE create core image floating-point exception
373+
SIGKILL terminate process kill program (cannot be caught or
374+
ignored)
375+
SIGBUS create core image bus error
376+
SIGSEGV create core image segmentation violation
377+
SIGSYS create core image system call given invalid argument
378+
SIGPIPE terminate process write on a pipe with no reader
379+
SIGALRM terminate process real-time timer expired
380+
SIGTERM terminate process software termination signal
381+
SIGURG discard signal urgent condition present on socket
382+
SIGSTOP stop process stop (cannot be caught or ignored)
383+
SIGTSTP stop process stop signal generated from keyboard
384+
SIGCONT discard signal continue after stop
385+
SIGCHLD discard signal child status has changed
386+
SIGTTIN stop process background read attempted from control
387+
terminal
388+
SIGTTOU stop process background write attempted to control
389+
terminal
390+
SIGIO discard signal I/O is possible on a descriptor (see
391+
fcntl(2))
392+
SIGXCPU terminate process CPU time limit exceeded (see
393+
setrlimit(2))
394+
SIGXFSZ terminate process file size limit exceeded (see
395+
setrlimit(2))
396+
SIGVTALRM terminate process virtual time alarm (see setitimer(2))
397+
SIGPROF terminate process profiling timer alarm (see
398+
setitimer(2))
399+
SIGWINCH discard signal window size change
400+
SIGINFO discard signal status request from keyboard
401+
SIGUSR1 terminate process user-defined signal 1
402+
SIGUSR2 terminate process user-defined signal 2
403+
SIGTHR discard signal thread AST
404+
*/</span>
405+
406+
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">target_os</span> <span class="op">=</span> <span class="string">&quot;openbsd&quot;</span>)]</span>
407+
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">ALL_SIGNALS</span>: [<span class="kw-2">&amp;</span><span class="ident">str</span>; <span class="number">33</span>] <span class="op">=</span> [
408+
<span class="string">&quot;EXIT&quot;</span>, <span class="string">&quot;HUP&quot;</span>, <span class="string">&quot;INT&quot;</span>, <span class="string">&quot;QUIT&quot;</span>, <span class="string">&quot;ILL&quot;</span>, <span class="string">&quot;TRAP&quot;</span>, <span class="string">&quot;ABRT&quot;</span>, <span class="string">&quot;EMT&quot;</span>, <span class="string">&quot;FPE&quot;</span>, <span class="string">&quot;KILL&quot;</span>, <span class="string">&quot;BUS&quot;</span>, <span class="string">&quot;SEGV&quot;</span>,
409+
<span class="string">&quot;SYS&quot;</span>, <span class="string">&quot;PIPE&quot;</span>, <span class="string">&quot;ALRM&quot;</span>, <span class="string">&quot;TERM&quot;</span>, <span class="string">&quot;URG&quot;</span>, <span class="string">&quot;STOP&quot;</span>, <span class="string">&quot;TSTP&quot;</span>, <span class="string">&quot;CONT&quot;</span>, <span class="string">&quot;CHLD&quot;</span>, <span class="string">&quot;TTIN&quot;</span>, <span class="string">&quot;TTOU&quot;</span>, <span class="string">&quot;IO&quot;</span>,
410+
<span class="string">&quot;XCPU&quot;</span>, <span class="string">&quot;XFSZ&quot;</span>, <span class="string">&quot;VTALRM&quot;</span>, <span class="string">&quot;PROF&quot;</span>, <span class="string">&quot;WINCH&quot;</span>, <span class="string">&quot;INFO&quot;</span>, <span class="string">&quot;USR1&quot;</span>, <span class="string">&quot;USR2&quot;</span>, <span class="string">&quot;THR&quot;</span>,
411+
];
412+
219413
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">signal_by_name_or_value</span>(<span class="ident">signal_name_or_value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Option</span><span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span> {
220414
<span class="kw">if</span> <span class="kw">let</span> <span class="prelude-val">Ok</span>(<span class="ident">value</span>) <span class="op">=</span> <span class="ident">signal_name_or_value</span>.<span class="ident">parse</span>() {
221415
<span class="kw">if</span> <span class="ident">is_signal</span>(<span class="ident">value</span>) {

dev/uu_tail/fn.stdin_is_bad_fd.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In uu_tail</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../uu_tail/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
66
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
77
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
8-
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_tail</a>::<wbr><a class="fn" href="#">stdin_is_bad_fd</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_tail/tail.rs.html#1500-1507">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn stdin_is_bad_fd() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.bool.html">bool</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_tail" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
8+
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_tail</a>::<wbr><a class="fn" href="#">stdin_is_bad_fd</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_tail/tail.rs.html#1526-1533">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn stdin_is_bad_fd() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.bool.html">bool</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_tail" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
99
</body></html>

dev/uu_tail/fn.stdin_is_pipe_or_fifo.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In uu_tail</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../uu_tail/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
66
<a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div>
77
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
8-
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_tail</a>::<wbr><a class="fn" href="#">stdin_is_pipe_or_fifo</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_tail/tail.rs.html#1487-1498">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn stdin_is_pipe_or_fifo() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.bool.html">bool</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_tail" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
8+
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_tail</a>::<wbr><a class="fn" href="#">stdin_is_pipe_or_fifo</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_tail/tail.rs.html#1513-1524">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn stdin_is_pipe_or_fifo() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.63.0/std/primitive.bool.html">bool</a></code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_tail" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.63.0 (4b91a6ea7 2022-08-08)" ></div>
99
</body></html>

0 commit comments

Comments
 (0)