0 Indicates success. nonzero value Indicates that an invalid input value was specified for type or file_ptr, or because file_ptr is being used by another thread.