208 short tmpRef, vRefNum;
214 long gestaltResponse = 0;
217 osErr = Gestalt( gestaltFSAttr, &gestaltResponse );
218 if ( ( osErr != noErr )
219 || !( gestaltResponse & (1<<gestaltHasFSSpecCalls) ) )
220 ERREXITS(cinfo, JERR_TFILE_CREATE,
"- System 7.0 or later required");
224 osErr = Gestalt( gestaltFindFolderAttr, &gestaltResponse );
225 if ( ( osErr != noErr )
226 || !( gestaltResponse & (1<<gestaltFindFolderPresent) ) )
227 ERREXITS(cinfo, JERR_TFILE_CREATE,
"- System 7.0 or later required.");
230 osErr = FindFolder ( kOnSystemDisk, kTemporaryFolderType, kCreateFolder,
232 if ( osErr != noErr )
233 ERREXITS(cinfo, JERR_TFILE_CREATE,
"- temporary items folder unavailable");
243 osErr = FSMakeFSSpec ( vRefNum, dirID, fName, &theSpec );
245 if ( (osErr = FSpGetFInfo ( &theSpec, &finderInfo ) ) != noErr )
249 osErr = FSpCreate ( &theSpec,
'????',
'????', smSystemScript );
250 if ( osErr != noErr )
253 osErr = FSpOpenDF ( &theSpec, fsRdWrPerm, &(
info->temp_file) );
254 if ( osErr != noErr )
257 info->tempSpec = theSpec;
ACPI_SIZE strlen(const char *String)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
#define sprintf(buf, format,...)
#define TRACEMSS(cinfo, lvl, code, str)
write_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
read_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
char * strcpy(char *DstString, const char *SrcString)
close_backing_store(j_common_ptr cinfo, backing_store_ptr info)
#define ERREXITS(cinfo, code, str)