diff --git a/dev/search-index.js b/dev/search-index.js index 48114f64f..ad9ac4e60 100644 --- a/dev/search-index.js +++ b/dev/search-index.js @@ -111,7 +111,7 @@ var searchIndex = JSON.parse('{\ "uu_chroot":{"doc":"","t":[5,5],"n":["uu_app","uumain"],"q":["uu_chroot",""],"d":["",""],"i":[0,0],"f":[[[],["command",6]],[[],["i32",0]]],"p":[]},\ "uu_cksum":{"doc":"","t":[5,5],"n":["uu_app","uumain"],"q":["uu_cksum",""],"d":["",""],"i":[0,0],"f":[[[],["command",6]],[[],["i32",0]]],"p":[]},\ "uu_comm":{"doc":"","t":[5,5],"n":["uu_app","uumain"],"q":["uu_comm",""],"d":["",""],"i":[0,0],"f":[[[],["command",6]],[[],["i32",0]]],"p":[]},\ -"uu_cp":{"doc":"","t":[13,13,4,13,13,13,4,13,13,4,6,13,4,13,13,13,13,13,13,13,13,13,13,13,13,13,13,3,4,13,4,13,13,6,6,13,13,13,13,6,6,4,13,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,11,11,5,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,5,5,12,12,12,12,12,12,12,12,12,12,12,12],"n":["Always","AttrOnly","Attribute","Auto","Backup","Clobber","ClobberMode","Context","Copy","CopyMode","CopyResult","Directory","Error","Error","File","Force","Interactive","InvalidArgument","IoErr","IoErrContext","Link","Links","Mode","Never","NoClobber","NotAllFilesCopied","NotImplemented","Options","OverwriteMode","Ownership","ReflinkMode","RemoveDestination","Skipped","Source","SourceSlice","Sparse","Standard","StripPrefixError","SymLink","Target","TargetSlice","TargetType","Timestamps","Update","WalkDirErr","Xattr","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","cmp","code","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","ficlone","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_str","into","into","into","into","into","into","into","into","localize_to_target","ne","partial_cmp","path_has_prefix","paths_refer_to_same_file","source","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","uu_app","uumain","verify_target_type","0","0","0","0","0","0","0","0","0","1","0","0"],"q":["uu_cp","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","uu_cp::Error","","","","","","","","","","uu_cp::OverwriteMode",""],"d":["","","","","Invalid arguments to backup","Default Always overwrite existing files","Specifies whether when overwrite files","","","","","","","General copy error","","","Prompt before overwriting a file","Result of a skipped file","Simple io::Error wrapper","Wrapper for io::Error with path context","","","","","Never overwrite a file","Represents the state when a non-fatal error has occurred …","All standard options are included as an an implementation …","Re-usable, extensible copy options","Specifies whether when overwrite files","","Possible arguments for --reflink.","","Result of a skipped file","","","","","Simple std::path::StripPrefixError wrapper","","","","Specifies the expected file type of copy target","","","Simple walkdir::Error wrapper","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Returns the argument unchanged.","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Remove the root prefix from source and prefix it with …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Generate an error message if target is not the correct …","","","","","","","","","","","",""],"i":[1,2,0,1,3,4,0,5,2,0,0,6,0,3,6,7,4,3,3,3,2,5,5,1,4,3,3,0,0,5,0,7,3,0,0,2,7,3,2,0,0,0,5,2,3,5,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,7,4,1,5,7,4,1,5,5,3,7,4,1,5,7,4,1,5,0,3,3,5,6,2,8,3,3,3,3,3,3,3,3,7,4,1,5,5,6,2,8,3,7,4,1,5,0,4,5,0,0,3,7,4,1,5,3,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,0,0,0,9,10,11,12,13,14,15,16,17,10,18,19],"f":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["clobbermode",4]],[[["",0]],["overwritemode",4]],[[["",0]],["reflinkmode",4]],[[["",0]],["attribute",4]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["attribute",4]],["ordering",4]],[[["",0]],["i32",0]],[[["",0],["clobbermode",4]],["bool",0]],[[["",0],["overwritemode",4]],["bool",0]],[[["",0],["reflinkmode",4]],["bool",0]],[[["",0],["attribute",4]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["c_int",6]],["c_int",6]],[[["",0],["formatter",3]],["result",6]],[[["",0],["formatter",3]],["result",6]],[[["",0],["formatter",3]],["result",6]],[[]],[[]],[[]],[[["context",3,[["str",0],["error",3]]]],["error",4]],[[["stripprefixerror",3]],["error",4]],[[]],[[["context",3,[["string",3],["error",3]]]],["error",4]],[[["error",3]],["error",4]],[[["string",3]],["error",4]],[[["str",0]],["error",4]],[[["error",3]],["error",4]],[[]],[[]],[[]],[[]],[[["str",0]],["copyresult",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["path",3],["path",3],["path",3]],["copyresult",6,[["pathbuf",3]]]],[[["",0],["overwritemode",4]],["bool",0]],[[["",0],["attribute",4]],["option",4,[["ordering",4]]]],[[["path",3],["path",3]],["result",6,[["bool",0]]]],[[["path",3],["path",3]],["result",6,[["bool",0]]]],[[["",0]],["option",4,[["error",8]]]],[[["",0]]],[[["",0]]],[[["",0]]],[[["",0]]],[[["",0]],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[],["command",6]],[[],["i32",0]],[[["path",3],["targettype",4]],["copyresult",6]],null,null,null,null,null,null,null,null,null,null,null,null],"p":[[4,"ReflinkMode"],[4,"CopyMode"],[4,"Error"],[4,"OverwriteMode"],[4,"Attribute"],[4,"TargetType"],[4,"ClobberMode"],[3,"Options"],[13,"IoErr"],[13,"IoErrContext"],[13,"Error"],[13,"WalkDirErr"],[13,"StripPrefixError"],[13,"Skipped"],[13,"InvalidArgument"],[13,"NotImplemented"],[13,"Backup"],[13,"Clobber"],[13,"Interactive"]]},\ +"uu_cp":{"doc":"","t":[13,13,4,13,13,13,4,13,13,4,6,13,4,13,13,13,13,13,13,13,13,13,13,13,13,13,13,3,4,13,4,13,13,6,6,13,13,13,13,6,6,4,13,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,11,11,5,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,5,5,12,12,12,12,12,12,12,12,12,12,12,12],"n":["Always","AttrOnly","Attribute","Auto","Backup","Clobber","ClobberMode","Context","Copy","CopyMode","CopyResult","Directory","Error","Error","File","Force","Interactive","InvalidArgument","IoErr","IoErrContext","Link","Links","Mode","Never","NoClobber","NotAllFilesCopied","NotImplemented","Options","OverwriteMode","Ownership","ReflinkMode","RemoveDestination","Skipped","Source","SourceSlice","Sparse","Standard","StripPrefixError","SymLink","Target","TargetSlice","TargetType","Timestamps","Update","WalkDirErr","Xattr","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","cmp","code","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_str","into","into","into","into","into","into","into","into","localize_to_target","ne","partial_cmp","path_has_prefix","paths_refer_to_same_file","source","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","uu_app","uumain","verify_target_type","0","0","0","0","0","0","0","0","0","1","0","0"],"q":["uu_cp","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","uu_cp::Error","","","","","","","","","","uu_cp::OverwriteMode",""],"d":["","","","","Invalid arguments to backup","Default Always overwrite existing files","Specifies whether when overwrite files","","","","","","","General copy error","","","Prompt before overwriting a file","Result of a skipped file","Simple io::Error wrapper","Wrapper for io::Error with path context","","","","","Never overwrite a file","Represents the state when a non-fatal error has occurred …","All standard options are included as an an implementation …","Re-usable, extensible copy options","Specifies whether when overwrite files","","Possible arguments for --reflink.","","Result of a skipped file","","","","","Simple std::path::StripPrefixError wrapper","","","","Specifies the expected file type of copy target","","","Simple walkdir::Error wrapper","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Returns the argument unchanged.","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Remove the root prefix from source and prefix it with …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Generate an error message if target is not the correct …","","","","","","","","","","","",""],"i":[1,2,0,1,3,4,0,5,2,0,0,6,0,3,6,7,4,3,3,3,2,5,5,1,4,3,3,0,0,5,0,7,3,0,0,2,7,3,2,0,0,0,5,2,3,5,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,7,4,1,5,7,4,1,5,5,3,7,4,1,5,7,4,1,5,3,3,5,6,2,8,3,3,3,3,3,3,3,3,7,4,1,5,5,6,2,8,3,7,4,1,5,0,4,5,0,0,3,7,4,1,5,3,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,6,2,8,3,7,4,1,5,0,0,0,9,10,11,12,13,14,15,16,17,10,18,19],"f":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["",0]],[[["",0]],["clobbermode",4]],[[["",0]],["overwritemode",4]],[[["",0]],["reflinkmode",4]],[[["",0]],["attribute",4]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["",0]]],[[["",0],["attribute",4]],["ordering",4]],[[["",0]],["i32",0]],[[["",0],["clobbermode",4]],["bool",0]],[[["",0],["overwritemode",4]],["bool",0]],[[["",0],["reflinkmode",4]],["bool",0]],[[["",0],["attribute",4]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["",0]],["bool",0]],[[["",0],["formatter",3]],["result",6]],[[["",0],["formatter",3]],["result",6]],[[["",0],["formatter",3]],["result",6]],[[]],[[]],[[]],[[["context",3,[["string",3],["error",3]]]],["error",4]],[[["error",3]],["error",4]],[[["string",3]],["error",4]],[[["str",0]],["error",4]],[[]],[[["error",3]],["error",4]],[[["stripprefixerror",3]],["error",4]],[[["context",3,[["str",0],["error",3]]]],["error",4]],[[]],[[]],[[]],[[]],[[["str",0]],["copyresult",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["path",3],["path",3],["path",3]],["copyresult",6,[["pathbuf",3]]]],[[["",0],["overwritemode",4]],["bool",0]],[[["",0],["attribute",4]],["option",4,[["ordering",4]]]],[[["path",3],["path",3]],["result",6,[["bool",0]]]],[[["path",3],["path",3]],["result",6,[["bool",0]]]],[[["",0]],["option",4,[["error",8]]]],[[["",0]]],[[["",0]]],[[["",0]]],[[["",0]]],[[["",0]],["string",3]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[["",0]],["typeid",3]],[[],["command",6]],[[],["i32",0]],[[["path",3],["targettype",4]],["copyresult",6]],null,null,null,null,null,null,null,null,null,null,null,null],"p":[[4,"ReflinkMode"],[4,"CopyMode"],[4,"Error"],[4,"OverwriteMode"],[4,"Attribute"],[4,"TargetType"],[4,"ClobberMode"],[3,"Options"],[13,"IoErr"],[13,"IoErrContext"],[13,"Error"],[13,"WalkDirErr"],[13,"StripPrefixError"],[13,"Skipped"],[13,"InvalidArgument"],[13,"NotImplemented"],[13,"Backup"],[13,"Clobber"],[13,"Interactive"]]},\ "uu_csplit":{"doc":"","t":[3,11,11,5,11,11,11,11,11,5,5],"n":["CsplitOptions","borrow","borrow_mut","csplit","from","into","try_from","try_into","type_id","uu_app","uumain"],"q":["uu_csplit","","","","","","","","","",""],"d":["Command line options for csplit.","","","Splits a file into severals according to the command line …","Returns the argument unchanged.","Calls U::from(self).","","","","",""],"i":[0,1,1,0,1,1,1,1,1,0,0],"f":[null,[[["",0]],["",0]],[[["",0]],["",0]],[[["csplitoptions",3],["vec",3,[["pattern",4]]]],["result",4,[["cspliterror",4]]]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[["",0]],["typeid",3]],[[],["command",6]],[[],["i32",0]]],"p":[[3,"CsplitOptions"]]},\ "uu_cut":{"doc":"","t":[5,5],"n":["uu_app","uumain"],"q":["uu_cut",""],"d":["",""],"i":[0,0],"f":[[[],["command",6]],[[],["i32",0]]],"p":[]},\ "uu_date":{"doc":"","t":[5,5],"n":["uu_app","uumain"],"q":["uu_date",""],"d":["",""],"i":[0,0],"f":[[[],["command",6]],[[],["i32",0]]],"p":[]},\ diff --git a/dev/src/uu_cp/cp.rs.html b/dev/src/uu_cp/cp.rs.html index e504e4b7e..67e327765 100644 --- a/dev/src/uu_cp/cp.rs.html +++ b/dev/src/uu_cp/cp.rs.html @@ -1713,6 +1713,12 @@ 1708 1709 1710 +1711 +1712 +1713 +1714 +1715 +1716
#![allow(clippy::missing_safety_doc)]
 
 // This file is part of the uutils coreutils package.
@@ -1725,9 +1731,6 @@
 
 // spell-checker:ignore (ToDO) ficlone linkgs lstat nlink nlinks pathbuf reflink strs xattrs symlinked
 
-#[cfg(any(target_os = "linux", target_os = "android"))]
-#[macro_use]
-extern crate ioctl_sys;
 #[macro_use]
 extern crate quick_error;
 #[macro_use]
@@ -1776,9 +1779,6 @@
 use uucore::fs::{canonicalize, MissingHandling, ResolveMode};
 use walkdir::WalkDir;
 
-#[cfg(any(target_os = "linux", target_os = "android"))]
-ioctl!(write ficlone with 0x94, 9; std::os::raw::c_int);
-
 quick_error! {
     #[derive(Debug)]
     pub enum Error {
@@ -1945,6 +1945,16 @@
     verbose: bool,
 }
 
+// From /usr/include/linux/fs.h:
+// #define FICLONE		_IOW(0x94, 9, int)
+#[cfg(any(target_os = "linux", target_os = "android"))]
+// Use a macro as libc::ioctl expects u32 or u64 depending on the arch
+macro_rules! FICLONE {
+    () => {
+        0x40049409
+    };
+}
+
 static ABOUT: &str = "Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.";
 static LONG_HELP: &str = "";
 static EXIT_ERR: i32 = 1;
@@ -3282,7 +3292,8 @@
         .context(context)?;
     match mode {
         ReflinkMode::Always => unsafe {
-            let result = ficlone(dst_file.as_raw_fd(), src_file.as_raw_fd() as *const i32);
+            let result = libc::ioctl(dst_file.as_raw_fd(), FICLONE!(), src_file.as_raw_fd());
+
             if result != 0 {
                 Err(format!(
                     "failed to clone {:?} from {:?}: {}",
@@ -3296,7 +3307,8 @@
             }
         },
         ReflinkMode::Auto => unsafe {
-            let result = ficlone(dst_file.as_raw_fd(), src_file.as_raw_fd() as *const i32);
+            let result = libc::ioctl(dst_file.as_raw_fd(), FICLONE!(), src_file.as_raw_fd());
+
             if result != 0 {
                 fs::copy(source, dest).context(context)?;
             }
diff --git a/dev/src/uu_sleep/sleep.rs.html b/dev/src/uu_sleep/sleep.rs.html
index 4de38e264..890d4a133 100644
--- a/dev/src/uu_sleep/sleep.rs.html
+++ b/dev/src/uu_sleep/sleep.rs.html
@@ -108,7 +108,7 @@ specified by the sum of their values.";
 
 #[uucore::main]
 pub fn uumain(args: impl uucore::Args) -> UResult<()> {
-    let matches = uu_app().get_matches_from(args);
+    let matches = uu_app().try_get_matches_from(args)?;
 
     if let Some(values) = matches.values_of(options::NUMBER) {
         let numbers = values.collect::<Vec<_>>();
diff --git a/dev/uu_cp/all.html b/dev/uu_cp/all.html
index 2abdac18d..a057a2052 100644
--- a/dev/uu_cp/all.html
+++ b/dev/uu_cp/all.html
@@ -3,5 +3,5 @@
         

+

Crate uu_cp

\ No newline at end of file diff --git a/dev/uu_cp/enum.Attribute.html b/dev/uu_cp/enum.Attribute.html index 305d16189..7233d20a8 100644 --- a/dev/uu_cp/enum.Attribute.html +++ b/dev/uu_cp/enum.Attribute.html @@ -4,33 +4,33 @@
pub enum Attribute {
+    

Enum uu_cp::Attribute

source · []
pub enum Attribute {
     Ownership,
     Mode,
     Timestamps,
     Context,
     Links,
     Xattr,
-}

Variants

Ownership

Mode

Timestamps

Context

Xattr

Trait Implementations

Returns a copy of the value. Read more

+}

Variants

Ownership

Mode

Timestamps

Context

Xattr

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

The associated error which can be returned from parsing.

-

Parses a string s to return a value of this type. Read more

-

This method returns an Ordering between self and other. Read more

+

Formats the value using the given formatter. Read more

+

The associated error which can be returned from parsing.

+

Parses a string s to return a value of this type. Read more

+

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

-

This method returns an ordering between self and other values if one exists. Read more

+

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/dev/uu_cp/enum.ClobberMode.html b/dev/uu_cp/enum.ClobberMode.html index a9326834d..67314be5d 100644 --- a/dev/uu_cp/enum.ClobberMode.html +++ b/dev/uu_cp/enum.ClobberMode.html @@ -4,17 +4,17 @@
pub enum ClobberMode {
+    

Enum uu_cp::ClobberMode

source · []
pub enum ClobberMode {
     Force,
     RemoveDestination,
     Standard,
 }
Expand description

Specifies whether when overwrite files

-

Variants

Force

RemoveDestination

Standard

Trait Implementations

Returns a copy of the value. Read more

+

Variants

Force

RemoveDestination

Standard

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/dev/uu_cp/enum.CopyMode.html b/dev/uu_cp/enum.CopyMode.html index 80ad85b18..a9861939e 100644 --- a/dev/uu_cp/enum.CopyMode.html +++ b/dev/uu_cp/enum.CopyMode.html @@ -4,7 +4,7 @@
pub enum CopyMode {
+    

Enum uu_cp::CopyMode

source · []
pub enum CopyMode {
     Link,
     SymLink,
     Sparse,
diff --git a/dev/uu_cp/enum.Error.html b/dev/uu_cp/enum.Error.html
index 23129369e..f44cb7f88 100644
--- a/dev/uu_cp/enum.Error.html
+++ b/dev/uu_cp/enum.Error.html
@@ -4,7 +4,7 @@
     
     
-

Enum uu_cp::Error

source · []
pub enum Error {
+    

Enum uu_cp::Error

source · []
pub enum Error {
     IoErr(Error),
     IoErrContext(ErrorString),
     Error(String),
@@ -28,20 +28,20 @@ and not all files were copied.

path, but those that are not implemented yet should return a NotImplemented error.

Backup(String)

Invalid arguments to backup

-

Trait Implementations

Formats the value using the given formatter. Read more

-

Formats the value using the given formatter. Read more

-

The lower-level source of this error, if any. Read more

+

Trait Implementations

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

+

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Converts to this type from the input type.

-

Error code of a custom error. Read more

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Converts to this type from the input type.

+

Error code of a custom error. Read more

Print usage help to a custom error. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/dev/uu_cp/enum.OverwriteMode.html b/dev/uu_cp/enum.OverwriteMode.html index 6cdeb97a1..5b598e8dd 100644 --- a/dev/uu_cp/enum.OverwriteMode.html +++ b/dev/uu_cp/enum.OverwriteMode.html @@ -4,7 +4,7 @@
pub enum OverwriteMode {
+    

Enum uu_cp::OverwriteMode

source · []
pub enum OverwriteMode {
     Clobber(ClobberMode),
     Interactive(ClobberMode),
     NoClobber,
@@ -12,12 +12,12 @@
 

Variants

Clobber(ClobberMode)

Default Always overwrite existing files

Interactive(ClobberMode)

Prompt before overwriting a file

NoClobber

Never overwrite a file

-

Trait Implementations

Returns a copy of the value. Read more

+

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/dev/uu_cp/enum.ReflinkMode.html b/dev/uu_cp/enum.ReflinkMode.html index 575005423..5c8c5a1a4 100644 --- a/dev/uu_cp/enum.ReflinkMode.html +++ b/dev/uu_cp/enum.ReflinkMode.html @@ -4,17 +4,17 @@
pub enum ReflinkMode {
+    

Enum uu_cp::ReflinkMode

source · []
pub enum ReflinkMode {
     Always,
     Auto,
     Never,
 }
Expand description

Possible arguments for --reflink.

-

Variants

Always

Auto

Never

Trait Implementations

Returns a copy of the value. Read more

+

Variants

Always

Auto

Never

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/dev/uu_cp/enum.TargetType.html b/dev/uu_cp/enum.TargetType.html index c38c1fa53..111609df3 100644 --- a/dev/uu_cp/enum.TargetType.html +++ b/dev/uu_cp/enum.TargetType.html @@ -4,7 +4,7 @@
pub enum TargetType {
+    

Enum uu_cp::TargetType

source · []
pub enum TargetType {
     Directory,
     File,
 }
Expand description

Specifies the expected file type of copy target

diff --git a/dev/uu_cp/fn.ficlone.html b/dev/uu_cp/fn.ficlone.html deleted file mode 100644 index c3dd0cc8f..000000000 --- a/dev/uu_cp/fn.ficlone.html +++ /dev/null @@ -1,8 +0,0 @@ -ficlone in uu_cp - Rust - -
-

Function uu_cp::ficlone

source · []
pub unsafe fn ficlone(fd: c_int, val: *const c_int) -> c_int
- \ No newline at end of file diff --git a/dev/uu_cp/fn.localize_to_target.html b/dev/uu_cp/fn.localize_to_target.html index 33f394e62..20a84e6b0 100644 --- a/dev/uu_cp/fn.localize_to_target.html +++ b/dev/uu_cp/fn.localize_to_target.html @@ -4,7 +4,7 @@
pub fn localize_to_target(
    root: &Path,
    source: &Path,
    target: &Path
) -> CopyResult<PathBuf>
Expand description

Remove the root prefix from source and prefix it with target +

Function uu_cp::localize_to_target

source · []
pub fn localize_to_target(
    root: &Path,
    source: &Path,
    target: &Path
) -> CopyResult<PathBuf>
Expand description

Remove the root prefix from source and prefix it with target to create a file that is local to target

Examples

assert!(uu_cp::localize_to_target(
diff --git a/dev/uu_cp/fn.path_has_prefix.html b/dev/uu_cp/fn.path_has_prefix.html
index 63b458eb7..1b154104c 100644
--- a/dev/uu_cp/fn.path_has_prefix.html
+++ b/dev/uu_cp/fn.path_has_prefix.html
@@ -4,5 +4,5 @@
     
     
pub fn path_has_prefix(p1: &Path, p2: &Path) -> Result<bool>
+

Function uu_cp::path_has_prefix

source · []
pub fn path_has_prefix(p1: &Path, p2: &Path) -> Result<bool>
\ No newline at end of file diff --git a/dev/uu_cp/fn.paths_refer_to_same_file.html b/dev/uu_cp/fn.paths_refer_to_same_file.html index d9d78182d..da2fbf84d 100644 --- a/dev/uu_cp/fn.paths_refer_to_same_file.html +++ b/dev/uu_cp/fn.paths_refer_to_same_file.html @@ -4,5 +4,5 @@
pub fn paths_refer_to_same_file(p1: &Path, p2: &Path) -> Result<bool>
+

Function uu_cp::paths_refer_to_same_file

source · []
pub fn paths_refer_to_same_file(p1: &Path, p2: &Path) -> Result<bool>
\ No newline at end of file diff --git a/dev/uu_cp/fn.uu_app.html b/dev/uu_cp/fn.uu_app.html index 13bf07d1d..1659ac2f3 100644 --- a/dev/uu_cp/fn.uu_app.html +++ b/dev/uu_cp/fn.uu_app.html @@ -4,5 +4,5 @@
-

Function uu_cp::uu_app

source · []
pub fn uu_app<'a>() -> Command<'a>
+

Function uu_cp::uu_app

source · []
pub fn uu_app<'a>() -> Command<'a>
\ No newline at end of file diff --git a/dev/uu_cp/fn.uumain.html b/dev/uu_cp/fn.uumain.html index bce0c32dd..bf8e19b02 100644 --- a/dev/uu_cp/fn.uumain.html +++ b/dev/uu_cp/fn.uumain.html @@ -4,5 +4,5 @@
-

Function uu_cp::uumain

source · []
pub fn uumain(args: impl Args) -> i32
+

Function uu_cp::uumain

source · []
pub fn uumain(args: impl Args) -> i32
\ No newline at end of file diff --git a/dev/uu_cp/fn.verify_target_type.html b/dev/uu_cp/fn.verify_target_type.html index 09753e0bc..cee40fa94 100644 --- a/dev/uu_cp/fn.verify_target_type.html +++ b/dev/uu_cp/fn.verify_target_type.html @@ -4,6 +4,6 @@
pub fn verify_target_type(
    target: &Path,
    target_type: &TargetType
) -> CopyResult<()>
Expand description

Generate an error message if target is not the correct target_type

+

Function uu_cp::verify_target_type

source · []
pub fn verify_target_type(
    target: &Path,
    target_type: &TargetType
) -> CopyResult<()>
Expand description

Generate an error message if target is not the correct target_type

\ No newline at end of file diff --git a/dev/uu_cp/index.html b/dev/uu_cp/index.html index 0402b1b1f..4e2856713 100644 --- a/dev/uu_cp/index.html +++ b/dev/uu_cp/index.html @@ -4,7 +4,7 @@
-

Crate uu_cp

source · []

Structs

+

Crate uu_cp

source · []

Structs

Re-usable, extensible copy options

Enums

Specifies whether when overwrite files

@@ -12,7 +12,7 @@

Possible arguments for --reflink.

Specifies the expected file type of copy target

Functions

-

Remove the root prefix from source and prefix it with target +

Remove the root prefix from source and prefix it with target to create a file that is local to target

Generate an error message if target is not the correct target_type

Type Definitions

diff --git a/dev/uu_cp/sidebar-items.js b/dev/uu_cp/sidebar-items.js index df30746d7..16ab1003a 100644 --- a/dev/uu_cp/sidebar-items.js +++ b/dev/uu_cp/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["Attribute",""],["ClobberMode","Specifies whether when overwrite files"],["CopyMode",""],["Error",""],["OverwriteMode","Specifies whether when overwrite files"],["ReflinkMode","Possible arguments for `--reflink`."],["TargetType","Specifies the expected file type of copy target"]],"fn":[["ficlone",""],["localize_to_target","Remove the `root` prefix from `source` and prefix it with `target` to create a file that is local to `target`"],["path_has_prefix",""],["paths_refer_to_same_file",""],["uu_app",""],["uumain",""],["verify_target_type","Generate an error message if `target` is not the correct `target_type`"]],"struct":[["Options","Re-usable, extensible copy options"]],"type":[["CopyResult",""],["Source",""],["SourceSlice",""],["Target",""],["TargetSlice",""]]}); \ No newline at end of file +initSidebarItems({"enum":[["Attribute",""],["ClobberMode","Specifies whether when overwrite files"],["CopyMode",""],["Error",""],["OverwriteMode","Specifies whether when overwrite files"],["ReflinkMode","Possible arguments for `--reflink`."],["TargetType","Specifies the expected file type of copy target"]],"fn":[["localize_to_target","Remove the `root` prefix from `source` and prefix it with `target` to create a file that is local to `target`"],["path_has_prefix",""],["paths_refer_to_same_file",""],["uu_app",""],["uumain",""],["verify_target_type","Generate an error message if `target` is not the correct `target_type`"]],"struct":[["Options","Re-usable, extensible copy options"]],"type":[["CopyResult",""],["Source",""],["SourceSlice",""],["Target",""],["TargetSlice",""]]}); \ No newline at end of file diff --git a/dev/uu_cp/struct.Options.html b/dev/uu_cp/struct.Options.html index 25640e885..7bdef3adc 100644 --- a/dev/uu_cp/struct.Options.html +++ b/dev/uu_cp/struct.Options.html @@ -4,7 +4,7 @@
-

Struct uu_cp::Options

source · []
pub struct Options { /* private fields */ }
Expand description

Re-usable, extensible copy options

+

Struct uu_cp::Options

source · []
pub struct Options { /* private fields */ }
Expand description

Re-usable, extensible copy options

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/dev/uu_cp/type.CopyResult.html b/dev/uu_cp/type.CopyResult.html index d92cdaf41..3bc65362b 100644 --- a/dev/uu_cp/type.CopyResult.html +++ b/dev/uu_cp/type.CopyResult.html @@ -4,5 +4,5 @@
-

Type Definition uu_cp::CopyResult

source · []
pub type CopyResult<T> = Result<T, Error>;
+

Type Definition uu_cp::CopyResult

source · []
pub type CopyResult<T> = Result<T, Error>;
\ No newline at end of file diff --git a/dev/uu_cp/type.Source.html b/dev/uu_cp/type.Source.html index 747b43da6..e1b0500b7 100644 --- a/dev/uu_cp/type.Source.html +++ b/dev/uu_cp/type.Source.html @@ -4,5 +4,5 @@
-

Type Definition uu_cp::Source

source · []
pub type Source = PathBuf;
+

Type Definition uu_cp::Source

source · []
pub type Source = PathBuf;
\ No newline at end of file diff --git a/dev/uu_cp/type.SourceSlice.html b/dev/uu_cp/type.SourceSlice.html index fe6ba71b8..3fe0749c5 100644 --- a/dev/uu_cp/type.SourceSlice.html +++ b/dev/uu_cp/type.SourceSlice.html @@ -4,5 +4,5 @@
-

Type Definition uu_cp::SourceSlice

source · []
pub type SourceSlice = Path;
+

Type Definition uu_cp::SourceSlice

source · []
pub type SourceSlice = Path;
\ No newline at end of file diff --git a/dev/uu_cp/type.Target.html b/dev/uu_cp/type.Target.html index 67f489903..cc09e620a 100644 --- a/dev/uu_cp/type.Target.html +++ b/dev/uu_cp/type.Target.html @@ -4,5 +4,5 @@
-

Type Definition uu_cp::Target

source · []
pub type Target = PathBuf;
+

Type Definition uu_cp::Target

source · []
pub type Target = PathBuf;
\ No newline at end of file diff --git a/dev/uu_cp/type.TargetSlice.html b/dev/uu_cp/type.TargetSlice.html index b1d747b9c..30560b625 100644 --- a/dev/uu_cp/type.TargetSlice.html +++ b/dev/uu_cp/type.TargetSlice.html @@ -4,5 +4,5 @@
-

Type Definition uu_cp::TargetSlice

source · []
pub type TargetSlice = Path;
+

Type Definition uu_cp::TargetSlice

source · []
pub type TargetSlice = Path;
\ No newline at end of file