hdfs::native::hdfsOpenFile [] [src]

pub unsafe extern fn hdfsOpenFile(fs: *const hdfsFS, path: *const c_char, flags: c_int, bufferSize: c_int, replication: c_short, blocksize: int32_t) -> *const hdfsFile

Open a hdfs file in given mode.

Params

Return

Returns 0 on success, -1 on error. On error, errno will be set appropriately. If the hdfs file was valid, the memory associated with it will be freed at the end of this call, even if there was an I/O error.