fn files_have_same_device_and_inode_numbers(first: &str, second: &str) -> i32 {
    // Obtain the device and inode of the first file or return FAILED
    get_dev_and_inode(first).map_or(FAILED, |left| {
        // Obtain the device and inode of the second file or return FAILED
        get_dev_and_inode(second).map_or(FAILED, |right| {
            // Compare the device and inodes of the first and second files
            evaluate_bool(left == right)
        })
    })
}
/// Exits SUCCESS if both files have the same device and inode numbers
Exits SUCCESS if both files have the same device and inode numbers
Exits SUCCESS if both files have the same device and inode numbers
fn files_have_same_device_and_inode_numbers(first: &str, second: &str) -> i32 {
    // Obtain the device and inode of the first file or return FAILED
    get_dev_and_inode(first).map_or(FAILED, |left| {
        // Obtain the device and inode of the second file or return FAILED
        get_dev_and_inode(second).map_or(FAILED, |right| {
            // Compare the device and inodes of the first and second files
            evaluate_bool(left == right)
        })
    })
}
fn files_have_same_device_and_inode_numbers ( first : & str , second : & str ) -> i32 { // Obtain the device and inode of the first file or return FAILED get_dev_and_inode ( first ) . map_or ( FAILED , | left | { // Obtain the device and inode of the second file or return FAILED get_dev_and_inode ( second ) . map_or ( FAILED , | right | { // Compare the device and inodes of the first and second files evaluate_bool ( left == right ) } ) } ) }
Exits SUCCESS if both files have the same device and inode numbers
Exits SUCCESS if both files have the same device and inode numbers
first
&str
second
&str