fixed accidental passing of FILE* instead of inode to fcntl in osx