         
         try ensureFileIsOpen()
         
-        let bytesRead = filereadlh(file, readPointer, 1, readBuffer.count, deadline.int64milliseconds)
+        let bytesRead = mill_mfreadlh_(file, readPointer, 1, readBuffer.count, deadline.int64milliseconds)
         
         guard bytesRead > 0 else {
             try ensureLastOperationSucceeded()

    public fileprivate(set) var path: String? = nil

    public func cursorPosition() throws -> Int {
        let position = Int(filetell(file))
        try ensureLastOperationSucceeded()
        return position
    }

    public func seek(cursorPosition: Int) throws -> Int {
        let position = Int(fileseek(file, off_t(cursorPosition)))
        try ensureLastOperationSucceeded()
        return position
    }

    public var length: Int {
        return Int(filesize(self.file))
    }

    public var cursorIsAtEndOfFile: Bool {
        return fileeof(file) != 0
    }

    public lazy var fileExtension: String? = {


    public func flush(deadline: Double) throws {
        try ensureFileIsOpen()
        mill_mfflush_(file, deadline.int64milliseconds)
        try ensureLastOperationSucceeded()
    }

