unsafe extern "C" fn read_bitmap(mut fname: *mut u8_0) {
    let mut fd: s32 = open(fname as *const libc::c_char, 0 as libc::c_int);
    if fd < 0 as libc::c_int {
        fflush(stdout);
        printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-]  SYSTEM ERROR : \x1b[0mUnable to open \'%s\'\x00"
                   as *const u8 as *const libc::c_char, fname);
        printf(b"\x1b[1;91m\n    Stop location : \x1b[0m%s(), %s:%u\n\x00" as
                   *const u8 as *const libc::c_char,
               b"func_unknown\x00" as *const u8 as *const libc::c_char,
               b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
               915 as libc::c_int);
        printf(b"\x1b[1;91m       OS message : \x1b[0m%s\n\x00" as *const u8
                   as *const libc::c_char, strerror(*__errno_location()));
        exit(1 as libc::c_int);
    }
    let mut _len: u32_0 = ((1 as libc::c_int) << 16 as libc::c_int) as u32_0;
    let mut _res: s32 =
        read(fd, mask_bitmap as *mut libc::c_void, _len as size_t) as s32;
    if _res as libc::c_uint != _len {
        if _res < 0 as libc::c_int {
            fflush(stdout);
            printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-]  SYSTEM ERROR : \x1b[0mShort read from %s\x00"
                       as *const u8 as *const libc::c_char, fname);
            printf(b"\x1b[1;91m\n    Stop location : \x1b[0m%s(), %s:%u\n\x00"
                       as *const u8 as *const libc::c_char,
                   b"func_unknown\x00" as *const u8 as *const libc::c_char,
                   b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
                   917 as libc::c_int);
            printf(b"\x1b[1;91m       OS message : \x1b[0m%s\n\x00" as
                       *const u8 as *const libc::c_char,
                   strerror(*__errno_location()));
            exit(1 as libc::c_int);
        } else {
            printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mShort read from %s\x00"
                       as *const u8 as *const libc::c_char, fname);
            printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                       as *const u8 as *const libc::c_char,
                   b"func_unknown\x00" as *const u8 as *const libc::c_char,
                   b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
                   917 as libc::c_int);
            exit(1 as libc::c_int);
        }
    }
    close(fd);
}
/* Read mask bitmap from file. This is for the -B option. */
Read mask bitmap from file. This is for the -B option.
Read mask bitmap from file . This is for the - B option .
unsafe extern "C" fn read_bitmap(mut fname: *mut u8_0) {
    let mut fd: s32 = open(fname as *const libc::c_char, 0 as libc::c_int);
    if fd < 0 as libc::c_int {
        fflush(stdout);
        printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-]  SYSTEM ERROR : \x1b[0mUnable to open \'%s\'\x00"
                   as *const u8 as *const libc::c_char, fname);
        printf(b"\x1b[1;91m\n    Stop location : \x1b[0m%s(), %s:%u\n\x00" as
                   *const u8 as *const libc::c_char,
               b"func_unknown\x00" as *const u8 as *const libc::c_char,
               b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
               915 as libc::c_int);
        printf(b"\x1b[1;91m       OS message : \x1b[0m%s\n\x00" as *const u8
                   as *const libc::c_char, strerror(*__errno_location()));
        exit(1 as libc::c_int);
    }
    let mut _len: u32_0 = ((1 as libc::c_int) << 16 as libc::c_int) as u32_0;
    let mut _res: s32 =
        read(fd, mask_bitmap as *mut libc::c_void, _len as size_t) as s32;
    if _res as libc::c_uint != _len {
        if _res < 0 as libc::c_int {
            fflush(stdout);
            printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-]  SYSTEM ERROR : \x1b[0mShort read from %s\x00"
                       as *const u8 as *const libc::c_char, fname);
            printf(b"\x1b[1;91m\n    Stop location : \x1b[0m%s(), %s:%u\n\x00"
                       as *const u8 as *const libc::c_char,
                   b"func_unknown\x00" as *const u8 as *const libc::c_char,
                   b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
                   917 as libc::c_int);
            printf(b"\x1b[1;91m       OS message : \x1b[0m%s\n\x00" as
                       *const u8 as *const libc::c_char,
                   strerror(*__errno_location()));
            exit(1 as libc::c_int);
        } else {
            printf(b"\x0f\x1b)B\x1b[?25h\x1b[0m\x1b[1;91m\n[-] PROGRAM ABORT : \x1b[0mShort read from %s\x00"
                       as *const u8 as *const libc::c_char, fname);
            printf(b"\x1b[1;91m\n         Location : \x1b[0m%s(), %s:%u\n\n\x00"
                       as *const u8 as *const libc::c_char,
                   b"func_unknown\x00" as *const u8 as *const libc::c_char,
                   b"src/afl-tmin.c\x00" as *const u8 as *const libc::c_char,
                   917 as libc::c_int);
            exit(1 as libc::c_int);
        }
    }
    close(fd);
}
unsafe extern " " fn read_bitmap ( mut fname : * mut u8_0 ) { let mut fd : s32 = open ( fname as * const libc :: c_char , 0 as libc :: c_int ) ; if fd < 0 as libc :: c_int { fflush ( stdout ) ; printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \' \' \x00 " as * const u8 as * const libc :: c_char , fname ) ; printf ( b" \x1b \n \x1b \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 915 as libc :: c_int ) ; printf ( b" \x1b \x1b \n \x00 " as * const u8 as * const libc :: c_char , strerror ( * __errno_location ( ) ) ) ; exit ( 1 as libc :: c_int ) ; } let mut _len : u32_0 = ( ( 1 as libc :: c_int ) << 16 as libc :: c_int ) as u32_0 ; let mut _res : s32 = read ( fd , mask_bitmap as * mut libc :: c_void , _len as size_t ) as s32 ; if _res as libc :: c_uint != _len { if _res < 0 as libc :: c_int { fflush ( stdout ) ; printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \x00 " as * const u8 as * const libc :: c_char , fname ) ; printf ( b" \x1b \n \x1b \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 917 as libc :: c_int ) ; printf ( b" \x1b \x1b \n \x00 " as * const u8 as * const libc :: c_char , strerror ( * __errno_location ( ) ) ) ; exit ( 1 as libc :: c_int ) ; } else { printf ( b" \x0f \x1b \x1b \x1b \x1b \n \x1b \x00 " as * const u8 as * const libc :: c_char , fname ) ; printf ( b" \x1b \n \x1b \n \n \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , b" \x00 " as * const u8 as * const libc :: c_char , 917 as libc :: c_int ) ; exit ( 1 as libc :: c_int ) ; } } close ( fd ) ; }
Read mask bitmap from file.
Read mask bitmap from file .
fname
*mut u8_0
fname
*mut u8_0