Add license headers on all files

This commit is contained in:
Sylvestre Ledru 2023-08-21 10:49:27 +02:00
parent 682f488720
commit bfca6bf70f
184 changed files with 736 additions and 0 deletions

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use super::{CatResult, FdReadable, InputHandle}; use super::{CatResult, FdReadable, InputHandle};
use nix::unistd; use nix::unistd;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) RFILE // spell-checker:ignore (vars) RFILE
#![allow(clippy::upper_case_acronyms)] #![allow(clippy::upper_case_acronyms)]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::ffi::OsString; use std::ffi::OsString;
use std::fmt::Write; use std::fmt::Write;
use std::io; use std::io;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::ffi::{CStr, CString, OsStr}; use std::ffi::{CStr, CString, OsStr};
use std::marker::PhantomData; use std::marker::PhantomData;
use std::os::raw::{c_int, c_long, c_short}; use std::os::raw::{c_int, c_long, c_short};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#![crate_name = "uu_csplit"] #![crate_name = "uu_csplit"]
// spell-checker:ignore rustdoc // spell-checker:ignore rustdoc
#![allow(rustdoc::private_intra_doc_links)] #![allow(rustdoc::private_intra_doc_links)]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::io; use std::io;
use thiserror::Error; use thiserror::Error;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (regex) SKIPTO UPTO ; (vars) ntimes // spell-checker:ignore (regex) SKIPTO UPTO ; (vars) ntimes
use crate::csplit_error::CsplitError; use crate::csplit_error::CsplitError;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (regex) diuox // spell-checker:ignore (regex) diuox
use regex::Regex; use regex::Regex;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore fname, tname, fpath, specfile, testfile, unspec, ifile, ofile, outfile, fullblock, urand, fileio, atoe, atoibm, behaviour, bmax, bremain, btotal, cflags, creat, ctable, ctty, datastructures, doesnt, etoa, fileout, fname, gnudd, iconvflags, iseek, nocache, noctty, noerror, nofollow, nolinks, nonblock, oconvflags, oseek, outfile, parseargs, rlen, rmax, rposition, rremain, rsofar, rstat, sigusr, sigval, wlen, wstat, oconv // spell-checker:ignore fname, tname, fpath, specfile, testfile, unspec, ifile, ofile, outfile, fullblock, urand, fileio, atoe, atoibm, behaviour, bmax, bremain, btotal, cflags, creat, ctable, ctty, datastructures, doesnt, etoa, fileout, fname, gnudd, iconvflags, iseek, nocache, noctty, noerror, nofollow, nolinks, nonblock, oconvflags, oseek, outfile, parseargs, rlen, rmax, rposition, rremain, rsofar, rstat, sigusr, sigval, wlen, wstat, oconv
use super::*; use super::*;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) EIGHTBIT ETERM MULTIHARDLINK cpio dtterm jfbterm konsole kterm mlterm rmvb rxvt stat'able svgz tmux webm xspf COLORTERM tzst avif tzst mjpg mjpeg webp dpkg rpmnew rpmorig rpmsave // spell-checker:ignore (ToDO) EIGHTBIT ETERM MULTIHARDLINK cpio dtterm jfbterm konsole kterm mlterm rmvb rxvt stat'able svgz tmux webm xspf COLORTERM tzst avif tzst mjpg mjpeg webp dpkg rpmnew rpmorig rpmsave
pub const INTERNAL_DB: &str = r#"# Configuration file for dircolors, a utility to help you set the pub const INTERNAL_DB: &str = r#"# Configuration file for dircolors, a utility to help you set the

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Take all but the last elements of an iterator. //! Take all but the last elements of an iterator.
use std::io::Read; use std::io::Read;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::fs; use std::fs;
use std::path::Path; use std::path::Path;
#[cfg(not(windows))] #[cfg(not(windows))]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (path) osrelease // spell-checker:ignore (path) osrelease
use libc::{mode_t, S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR}; use libc::{mode_t, S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) conv // spell-checker:ignore (ToDO) conv
use crate::options; use crate::options;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore powf // spell-checker:ignore powf
use uucore::display::Quotable; use uucore::display::Quotable;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::str::FromStr; use std::str::FromStr;
use crate::units::Unit; use crate::units::Unit;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::fmt; use std::fmt;
pub const SI_BASES: [f64; 10] = [1., 1e3, 1e6, 1e9, 1e12, 1e15, 1e18, 1e21, 1e24, 1e27]; pub const SI_BASES: [f64; 10] = [1., 1e3, 1e6, 1e9, 1e12, 1e15, 1e18, 1e21, 1e24, 1e27];

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) byteorder // spell-checker:ignore (ToDO) byteorder
// workaround until https://github.com/BurntSushi/byteorder/issues/41 has been fixed // workaround until https://github.com/BurntSushi/byteorder/issues/41 has been fixed

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) formatteriteminfo // spell-checker:ignore (ToDO) formatteriteminfo
use std::fmt; use std::fmt;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use half::f16; use half::f16;
use std::io; use std::io;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#[derive(Copy, Clone, Debug, Eq, PartialEq)] #[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Radix { pub enum Radix {
Decimal, Decimal,

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// https://github.com/lazy-bitfield/rust-mockstream/pull/2 // https://github.com/lazy-bitfield/rust-mockstream/pull/2
use std::io::{Cursor, Error, ErrorKind, Read, Result}; use std::io::{Cursor, Error, ErrorKind, Read, Result};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) multifile curr fnames fname xfrd fillloop mockstream // spell-checker:ignore (ToDO) multifile curr fnames fname xfrd fillloop mockstream
use std::fs::File; use std::fs::File;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore formatteriteminfo blocksize thisblock // spell-checker:ignore formatteriteminfo blocksize thisblock
use std::cmp; use std::cmp;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore formatteriteminfo docopt fvox fvoxw vals acdx // spell-checker:ignore formatteriteminfo docopt fvox fvoxw vals acdx
use uucore::display::Quotable; use uucore::display::Quotable;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use super::options; use super::options;
use clap::ArgMatches; use clap::ArgMatches;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use uucore::parse_size::{parse_size, ParseSizeError}; use uucore::parse_size::{parse_size, ParseSizeError};
pub fn parse_number_of_bytes(s: &str) -> Result<u64, ParseSizeError> { pub fn parse_number_of_bytes(s: &str) -> Result<u64, ParseSizeError> {

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore mockstream abcdefgh bcdefgh // spell-checker:ignore mockstream abcdefgh bcdefgh
use std::cmp; use std::cmp;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) tempbuffer abcdefgh abcdefghij // spell-checker:ignore (ToDO) tempbuffer abcdefgh abcdefghij
//! Contains the trait `PeekRead` and type `PeekReader` implementing it. //! Contains the trait `PeekRead` and type `PeekReader` implementing it.

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::str::from_utf8; use std::str::from_utf8;
use crate::formatteriteminfo::{FormatWriter, FormatterItemInfo}; use crate::formatteriteminfo::{FormatWriter, FormatterItemInfo};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use half::f16; use half::f16;
use std::f32; use std::f32;
use std::f64; use std::f64;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::formatteriteminfo::*; use crate::formatteriteminfo::*;
/// format string to print octal using `int_writer_unsigned` /// format string to print octal using `int_writer_unsigned`

View file

@ -1 +1,5 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
mod cli; mod cli;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#![allow(dead_code)] #![allow(dead_code)]
// spell-checker:ignore (change!) each's // spell-checker:ignore (change!) each's
// spell-checker:ignore (ToDO) LONGHELP FORMATSTRING templating parameterizing formatstr // spell-checker:ignore (ToDO) LONGHELP FORMATSTRING templating parameterizing formatstr

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::ffi::OsString; use std::ffi::OsString;
use std::fmt::{Display, Formatter, Write}; use std::fmt::{Display, Formatter, Write};
use std::io; use std::io;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) RFILE // spell-checker:ignore (vars) RFILE
use clap::builder::ValueParser; use clap::builder::ValueParser;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore bigdecimal extendedbigdecimal extendedbigint // spell-checker:ignore bigdecimal extendedbigdecimal extendedbigint
//! An arbitrary precision float that can also represent infinity, NaN, etc. //! An arbitrary precision float that can also represent infinity, NaN, etc.
//! //!

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore bigint extendedbigint extendedbigdecimal // spell-checker:ignore bigint extendedbigint extendedbigdecimal
//! An arbitrary precision integer that can also represent infinity, NaN, etc. //! An arbitrary precision integer that can also represent infinity, NaN, etc.
//! //!

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore extendedbigdecimal extendedbigint // spell-checker:ignore extendedbigdecimal extendedbigint
//! A type to represent the possible start, increment, and end values for seq. //! A type to represent the possible start, increment, and end values for seq.
//! //!

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore extendedbigdecimal extendedbigint bigdecimal numberparse // spell-checker:ignore extendedbigdecimal extendedbigint bigdecimal numberparse
//! Parsing numbers for use in `seq`. //! Parsing numbers for use in `seq`.
//! //!

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// Copyright 2018 Developers of the Rand project. // Copyright 2018 Developers of the Rand project.
// Copyright 2013 The Rust Project Developers. // Copyright 2013 The Rust Project Developers.
// //

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Merge already sorted files. //! Merge already sorted files.
//! //!
//! We achieve performance by splitting the tasks of sorting and writing, and reading and parsing between two threads. //! We achieve performance by splitting the tasks of sorting and writing, and reading and parsing between two threads.

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::{ use std::{
fs::File, fs::File,
path::{Path, PathBuf}, path::{Path, PathBuf},

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#[cfg(unix)] #[cfg(unix)]
pub use self::unix::instantiate_current_writer; pub use self::unix::instantiate_current_writer;
#[cfg(unix)] #[cfg(unix)]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::env; use std::env;
use std::io::Write; use std::io::Write;
use std::io::{BufWriter, Error, ErrorKind, Result}; use std::io::{BufWriter, Error, ErrorKind, Result};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::io::Write; use std::io::Write;
use std::io::{BufWriter, Error, ErrorKind, Result}; use std::io::{BufWriter, Error, ErrorKind, Result};
use std::path::Path; use std::path::Path;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) dylib libstdbuf deps liblibstdbuf // spell-checker:ignore (ToDO) dylib libstdbuf deps liblibstdbuf
use std::env; use std::env;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) libstdbuf // spell-checker:ignore (ToDO) libstdbuf
use cpp_build::Config; use cpp_build::Config;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) IOFBF IOLBF IONBF cstdio setvbuf // spell-checker:ignore (ToDO) IOFBF IOLBF IONBF cstdio setvbuf
use cpp::cpp; use cpp::cpp;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
/// Represents an error encountered while parsing a test expression /// Represents an error encountered while parsing a test expression
#[derive(Debug)] #[derive(Debug)]
pub enum ParseError { pub enum ParseError {

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::word_count::WordCount; use crate::word_count::WordCount;
use super::WordCountable; use super::WordCountable;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Traits and implementations for iterating over lines in a file-like object. //! Traits and implementations for iterating over lines in a file-like object.
//! //!
//! This module provides a [`WordCountable`] trait and implementations //! This module provides a [`WordCountable`] trait and implementations

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore Sapin // spell-checker:ignore Sapin
mod read; mod read;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore bytestream // spell-checker:ignore bytestream
use super::*; use super::*;
use std::error::Error; use std::error::Error;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::cmp::max; use std::cmp::max;
use std::ops::{Add, AddAssign}; use std::ops::{Add, AddAssign};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! On Linux we can use vmsplice() to write data more efficiently. //! On Linux we can use vmsplice() to write data more efficiently.
//! //!
//! This does not always work. We're not allowed to splice to some targets, //! This does not always work. We're not allowed to splice to some targets,

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// features ~ feature-gated modules (core/bundler file) // features ~ feature-gated modules (core/bundler file)
#[cfg(feature = "encoding")] #[cfg(feature = "encoding")]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Main entry point for our implementation of printf. //! Main entry point for our implementation of printf.
//! //!
//! The [`printf`] and [`sprintf`] closely match the behavior of the //! The [`printf`] and [`sprintf`] closely match the behavior of the

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
/// Thin pipe-related wrappers around functions from the `nix` crate. /// Thin pipe-related wrappers around functions from the `nix` crate.
use std::fs::File; use std::fs::File;
#[cfg(any(target_os = "linux", target_os = "android"))] #[cfg(any(target_os = "linux", target_os = "android"))]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! A fixed-size ring buffer. //! A fixed-size ring buffer.
use std::collections::VecDeque; use std::collections::VecDeque;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
#[allow(clippy::module_inception)] #[allow(clippy::module_inception)]
mod num_format; mod num_format;
pub mod sub; pub mod sub;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
//! Primitives used by Sub Tokenizer //! Primitives used by Sub Tokenizer

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Primitives used by num_format and sub_modules. //! Primitives used by num_format and sub_modules.
//! never dealt with above (e.g. Sub Tokenizer never uses these) //! never dealt with above (e.g. Sub Tokenizer never uses these)

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) arrnum arr_num mult basenum bufferval refd vals arrfloat conv intermed addl // spell-checker:ignore (ToDO) arrnum arr_num mult basenum bufferval refd vals arrfloat conv intermed addl
pub fn arrnum_int_mult(arr_num: &[u8], basenum: u8, base_ten_int_fact: u8) -> Vec<u8> { pub fn arrnum_int_mult(arr_num: &[u8], basenum: u8, base_ten_int_fact: u8) -> Vec<u8> {

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (ToDO) arrnum mult // spell-checker:ignore (ToDO) arrnum mult
#[cfg(test)] #[cfg(test)]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
// spell-checker:ignore (ToDO) arrnum // spell-checker:ignore (ToDO) arrnum

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
//! formatter for %g %G decimal subs //! formatter for %g %G decimal subs

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
// spell-checker:ignore (ToDO) arrnum // spell-checker:ignore (ToDO) arrnum

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
// spell-checker:ignore (ToDO) arrnum // spell-checker:ignore (ToDO) arrnum

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
// spell-checker:ignore (ToDO) arrnum // spell-checker:ignore (ToDO) arrnum

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety
mod base_conv; mod base_conv;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety
//! formatter for %e %E scientific notation subs //! formatter for %e %E scientific notation subs

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
pub mod format_field; pub mod format_field;
mod formatter; mod formatter;
mod formatters; mod formatters;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf cninetyninehexfloatf decf floatf intf scif strf Cninety
//! handles creating printed output for numeric substitutions //! handles creating printed output for numeric substitutions

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety // spell-checker:ignore (vars) charf decf floatf intf scif strf Cninety
//! Sub is a token that represents a //! Sub is a token that represents a

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Traits and enums dealing with Tokenization of printf Format String //! Traits and enums dealing with Tokenization of printf Format String
use std::io::Write; use std::io::Write;
use std::iter::Peekable; use std::iter::Peekable;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! UnescapedText is a tokenizer impl //! UnescapedText is a tokenizer impl
//! for tokenizing character literals, //! for tokenizing character literals,
//! and escaped character literals (of allowed escapes), //! and escaped character literals (of allowed escapes),

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// library ~ (core/bundler file) // library ~ (core/bundler file)
// Copyright (C) ~ Alex Lyon <arcterus@mail.com> // Copyright (C) ~ Alex Lyon <arcterus@mail.com>

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// mods ~ cross-platforms modules (core/bundler file) // mods ~ cross-platforms modules (core/bundler file)
pub mod backup_control; pub mod backup_control;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Implement GNU-style backup functionality. //! Implement GNU-style backup functionality.
//! //!
//! This module implements the backup functionality as described in the [GNU //! This module implements the backup functionality as described in the [GNU

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
/// Utilities for printing paths, with special attention paid to special /// Utilities for printing paths, with special attention paid to special
/// characters and invalid unicode. /// characters and invalid unicode.
/// ///

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// TODO fix broken links // TODO fix broken links
#![allow(rustdoc::broken_intra_doc_links)] #![allow(rustdoc::broken_intra_doc_links)]
//! All utils return exit with an exit code. Usually, the following scheme is used: //! All utils return exit with an exit code. Usually, the following scheme is used:

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Provides consistent newline/zero terminator handling for `-z`/`--zero` flags. //! Provides consistent newline/zero terminator handling for `-z`/`--zero` flags.
//! //!
//! See the [`LineEnding`] struct for more information. //! See the [`LineEnding`] struct for more information.

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
/// Test if the program is running under WSL /// Test if the program is running under WSL
// ref: <https://github.com/microsoft/WSL/issues/4555> @@ <https://archive.is/dP0bz> // ref: <https://github.com/microsoft/WSL/issues/4555> @@ <https://archive.is/dP0bz>

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Custom panic hooks that allow silencing certain types of errors. //! Custom panic hooks that allow silencing certain types of errors.
//! //!
//! Use the [`mute_sigpipe_panic`] function to silence panics caused by //! Use the [`mute_sigpipe_panic`] function to silence panics caused by

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::char::from_digit; use std::char::from_digit;
use std::ffi::OsStr; use std::ffi::OsStr;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use std::cmp::Ordering; use std::cmp::Ordering;
/// Compares the non-digit parts of a version. /// Compares the non-digit parts of a version.

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
pub mod parse_glob; pub mod parse_glob;
pub mod parse_size; pub mod parse_size;
pub mod parse_time; pub mod parse_time;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
//! Parsing a glob Pattern from a string. //! Parsing a glob Pattern from a string.
//! //!
//! Use the [`from_str`] function to parse a [`Pattern`] from a string. //! Use the [`from_str`] function to parse a [`Pattern`] from a string.

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore abcdefgh // spell-checker:ignore abcdefgh
use clap::{ use clap::{
builder::{PossibleValue, TypedValueParser}, builder::{PossibleValue, TypedValueParser},

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// Copyright (C) ~ Roy Ivy III <rivy.dev@gmail.com>; MIT license // Copyright (C) ~ Roy Ivy III <rivy.dev@gmail.com>; MIT license
// spell-checker:ignore backticks uuhelp // spell-checker:ignore backticks uuhelp

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion}; use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use uu_factor::numeric; use uu_factor::numeric;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use array_init::array_init; use array_init::array_init;
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput}; use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
use uu_factor::{table::*, Factors}; use uu_factor::{table::*, Factors};

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario; use crate::common::util::TestScenario;
#[test] #[test]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario; use crate::common::util::TestScenario;
#[test] #[test]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (words) reallylongexecutable // spell-checker:ignore (words) reallylongexecutable
use crate::common::util::TestScenario; use crate::common::util::TestScenario;

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario; use crate::common::util::TestScenario;
#[test] #[test]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore NOFILE // spell-checker:ignore NOFILE
#[cfg(not(windows))] #[cfg(not(windows))]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (jargon) xattributes // spell-checker:ignore (jargon) xattributes
#![cfg(feature = "feat_selinux")] #![cfg(feature = "feat_selinux")]

View file

@ -1,3 +1,7 @@
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
// spell-checker:ignore (words) nosuchgroup groupname // spell-checker:ignore (words) nosuchgroup groupname
use crate::common::util::TestScenario; use crate::common::util::TestScenario;

Some files were not shown because too many files have changed in this diff Show more