fcntl: Add error checking and at least TODOs about buffer return values.