Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add license headers on all files #5183

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/uu/cat/src/splice.rs
Original file line number Diff line number Diff line change
@@ -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 nix::unistd;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/chcon/src/chcon.rs
Original file line number Diff line number Diff line change
@@ -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
#![allow(clippy::upper_case_acronyms)]

Expand Down
4 changes: 4 additions & 0 deletions src/uu/chcon/src/errors.rs
Original file line number Diff line number Diff line change
@@ -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::fmt::Write;
use std::io;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/chcon/src/fts.rs
Original file line number Diff line number Diff line change
@@ -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::marker::PhantomData;
use std::os::raw::{c_int, c_long, c_short};
Expand Down
4 changes: 4 additions & 0 deletions src/uu/csplit/src/csplit.rs
Original file line number Diff line number Diff line change
@@ -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"]
// spell-checker:ignore rustdoc
#![allow(rustdoc::private_intra_doc_links)]
Expand Down
4 changes: 4 additions & 0 deletions src/uu/csplit/src/csplit_error.rs
Original file line number Diff line number Diff line change
@@ -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 thiserror::Error;

Expand Down
4 changes: 4 additions & 0 deletions src/uu/csplit/src/patterns.rs
Original file line number Diff line number Diff line change
@@ -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

use crate::csplit_error::CsplitError;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/csplit/src/split_name.rs
Original file line number Diff line number Diff line change
@@ -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

use regex::Regex;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/dd/src/parseargs/unit_tests.rs
Original file line number Diff line number Diff line change
@@ -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

use super::*;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/dircolors/src/colors.rs
Original file line number Diff line number Diff line change
@@ -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

pub const INTERNAL_DB: &str = r#"# Configuration file for dircolors, a utility to help you set the
Expand Down
4 changes: 4 additions & 0 deletions src/uu/head/src/take.rs
Original file line number Diff line number Diff line change
@@ -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.
use std::io::Read;

Expand Down
4 changes: 4 additions & 0 deletions src/uu/install/src/mode.rs
Original file line number Diff line number Diff line change
@@ -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::path::Path;
#[cfg(not(windows))]
Expand Down
4 changes: 4 additions & 0 deletions src/uu/mknod/src/parsemode.rs
Original file line number Diff line number Diff line change
@@ -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

use libc::{mode_t, S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR};
Expand Down
4 changes: 4 additions & 0 deletions src/uu/nl/src/helper.rs
Original file line number Diff line number Diff line change
@@ -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

use crate::options;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/numfmt/src/format.rs
Original file line number Diff line number Diff line change
@@ -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
use uucore::display::Quotable;

Expand Down
4 changes: 4 additions & 0 deletions src/uu/numfmt/src/options.rs
Original file line number Diff line number Diff line change
@@ -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 crate::units::Unit;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/numfmt/src/units.rs
Original file line number Diff line number Diff line change
@@ -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;

pub const SI_BASES: [f64; 10] = [1., 1e3, 1e6, 1e9, 1e12, 1e15, 1e18, 1e21, 1e24, 1e27];
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/byteorder_io.rs
Original file line number Diff line number Diff line change
@@ -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

// workaround until https://github.com/BurntSushi/byteorder/issues/41 has been fixed
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/formatteriteminfo.rs
Original file line number Diff line number Diff line change
@@ -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

use std::fmt;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/inputdecoder.rs
Original file line number Diff line number Diff line change
@@ -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 std::io;

Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/inputoffset.rs
Original file line number Diff line number Diff line change
@@ -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)]
pub enum Radix {
Decimal,
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/mockstream.rs
Original file line number Diff line number Diff line change
@@ -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

use std::io::{Cursor, Error, ErrorKind, Read, Result};
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/multifilereader.rs
Original file line number Diff line number Diff line change
@@ -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

use std::fs::File;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/output_info.rs
Original file line number Diff line number Diff line change
@@ -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

use std::cmp;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/parse_formats.rs
Original file line number Diff line number Diff line change
@@ -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

use uucore::display::Quotable;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/parse_inputs.rs
Original file line number Diff line number Diff line change
@@ -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 clap::ArgMatches;

Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/parse_nrofbytes.rs
Original file line number Diff line number Diff line change
@@ -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};

pub fn parse_number_of_bytes(s: &str) -> Result<u64, ParseSizeError> {
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/partialreader.rs
Original file line number Diff line number Diff line change
@@ -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

use std::cmp;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/peekreader.rs
Original file line number Diff line number Diff line change
@@ -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

//! Contains the trait `PeekRead` and type `PeekReader` implementing it.
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/prn_char.rs
Original file line number Diff line number Diff line change
@@ -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 crate::formatteriteminfo::{FormatWriter, FormatterItemInfo};
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/prn_float.rs
Original file line number Diff line number Diff line change
@@ -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 std::f32;
use std::f64;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/od/src/prn_int.rs
Original file line number Diff line number Diff line change
@@ -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::*;

/// format string to print octal using `int_writer_unsigned`
Expand Down
4 changes: 4 additions & 0 deletions src/uu/printf/src/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 4 additions & 0 deletions src/uu/printf/src/printf.rs
Original file line number Diff line number Diff line change
@@ -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)]
// spell-checker:ignore (change!) each's
// spell-checker:ignore (ToDO) LONGHELP FORMATSTRING templating parameterizing formatstr
Expand Down
4 changes: 4 additions & 0 deletions src/uu/runcon/src/errors.rs
Original file line number Diff line number Diff line change
@@ -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::fmt::{Display, Formatter, Write};
use std::io;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/runcon/src/runcon.rs
Original file line number Diff line number Diff line change
@@ -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

use clap::builder::ValueParser;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/seq/src/extendedbigdecimal.rs
Original file line number Diff line number Diff line change
@@ -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
//! An arbitrary precision float that can also represent infinity, NaN, etc.
//!
Expand Down
4 changes: 4 additions & 0 deletions src/uu/seq/src/extendedbigint.rs
Original file line number Diff line number Diff line change
@@ -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
//! An arbitrary precision integer that can also represent infinity, NaN, etc.
//!
Expand Down
4 changes: 4 additions & 0 deletions src/uu/seq/src/number.rs
Original file line number Diff line number Diff line change
@@ -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
//! A type to represent the possible start, increment, and end values for seq.
//!
Expand Down
4 changes: 4 additions & 0 deletions src/uu/seq/src/numberparse.rs
Original file line number Diff line number Diff line change
@@ -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
//! Parsing numbers for use in `seq`.
//!
Expand Down
4 changes: 4 additions & 0 deletions src/uu/shuf/src/rand_read_adapter.rs
Original file line number Diff line number Diff line change
@@ -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 2013 The Rust Project Developers.
//
Expand Down
4 changes: 4 additions & 0 deletions src/uu/sort/src/merge.rs
Original file line number Diff line number Diff line change
@@ -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.
//!
//! We achieve performance by splitting the tasks of sorting and writing, and reading and parsing between two threads.
Expand Down
4 changes: 4 additions & 0 deletions src/uu/sort/src/tmp_dir.rs
Original file line number Diff line number Diff line change
@@ -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::File,
path::{Path, PathBuf},
Expand Down
4 changes: 4 additions & 0 deletions src/uu/split/src/platform/mod.rs
Original file line number Diff line number Diff line change
@@ -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)]
pub use self::unix::instantiate_current_writer;
#[cfg(unix)]
Expand Down
4 changes: 4 additions & 0 deletions src/uu/split/src/platform/unix.rs
Original file line number Diff line number Diff line change
@@ -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::io::Write;
use std::io::{BufWriter, Error, ErrorKind, Result};
Expand Down
4 changes: 4 additions & 0 deletions src/uu/split/src/platform/windows.rs
Original file line number Diff line number Diff line change
@@ -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::{BufWriter, Error, ErrorKind, Result};
use std::path::Path;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/stdbuf/build.rs
Original file line number Diff line number Diff line change
@@ -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

use std::env;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/stdbuf/src/libstdbuf/build.rs
Original file line number Diff line number Diff line change
@@ -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

use cpp_build::Config;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/stdbuf/src/libstdbuf/src/libstdbuf.rs
Original file line number Diff line number Diff line change
@@ -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

use cpp::cpp;
Expand Down
4 changes: 4 additions & 0 deletions src/uu/test/src/error.rs
Original file line number Diff line number Diff line change
@@ -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
#[derive(Debug)]
pub enum ParseError {
Expand Down
Loading