Function hdfsOpenFile

Source
pub unsafe extern "C" fn hdfsOpenFile(
    fs: hdfsFS,
    path: *const c_char,
    flags: c_int,
    bufferSize: c_int,
    replication: c_short,
    blocksize: tOffset,
) -> hdfsFile
Expand description

hdfsOpenFile - Open a hdfs file in given mode. @param fs The configured filesystem handle. @param path The full path to the file. @param flags - an | of bits/fcntl.h file flags - supported flags are O_RDONLY, O_WRONLY (meaning create or overwrite i.e., implies O_TRUNCAT), O_WRONLY|O_APPEND and O_SYNC. Other flags are generally ignored other than (O_RDWR || (O_EXCL & O_CREAT)) which return NULL and set errno equal ENOTSUP. @param bufferSize Size of buffer for read/write - pass 0 if you want to use the default configured values. @param replication Block replication - pass 0 if you want to use the default configured values. @param blocksize Size of block - pass 0 if you want to use the default configured values. @return Returns the handle to the open file or NULL on error.