

A descriptive error string for the error may be obtained by calling gd_error_string(3). The error code is also stored in the DIRFILE object and may be retrieved after this function returns by calling gd_error(3). The metadata of the fragment which included the removed fragment was protected from change. GD_E_IOĪn I/O error occurred while trying to write modified data or metadata to disk. The supplied fragment index was out of range, or an attempt was made to remove the primary format specification. The library was unable to allocate memory. The supplied dirfile was opened in read-only mode. On error, a negative-valued error code is returned. The primary format specification (the fragment indexed by zero) cannot be removed from the dirfile. To delete these binary files, use gd_delete(3) before calling this function. Regardless of the value of del, binary data files associated with RAW fields defined in the removed fragments will not be deleted. If del is non-zero, the format specification fragments will be deleted from disk, if possible. If del is zero, metadata changes will also be written to the removed fragments. Fields defined in the removed fragments will be removed from the dirfile.īefore removing the specified fragment, all pending writes are flushed to RAW fields defined the the removed fragments. The gd_uninclude() removes the format specification fragment indexed by fragment_index from the specified dirfile, as well as any fragments the indicated fragment INCLUDEs. Int gd_uninclude(DIRFILE * dirfile, int fragment_index, int del ) Description Remove a format specification fragment from a Dirfile Synopsis
