file.h File Reference

#include "shelltypes.h"

Include dependency graph for file.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tysftypelist
struct  tyfileinfo

Defines

#define maxsftypelist   20

Typedefs

typedef tysftypelistptrsftypelist

Enumerations

enum  tysfverb { sfputfileverb = 1, sfgetfileverb = 2, sfgetfolderverb = 3, sfgetdiskverb = 4 }
enum  tyfolderview {
  viewbysmallicon = 0, viewbyicon = 1, viewbyname = 2, viewbydate = 3,
  viewbysize = 4, viewbykind = 5, viewbycomment = 6, viewbycolor = 7,
  viewbyversion = 8
}

Functions

void setfserrorparam (const tyfilespec *)
boolean endswithpathsep (bigstring bs)
boolean cleanendoffilename (bigstring bs)
boolean getmachinename (bigstring bsname)
boolean equalfilespecs (const tyfilespec *, const tyfilespec *)
boolean filegetinfo (const tyfilespec *fs, tyfileinfo *info)
void filegetinfofrompb (CInfoPBRec *pb, tyfileinfo *info)
boolean filegetvolumeinfo (short vnum, tyfileinfo *info)
boolean filegetvolumename (short vnum, bigstring volname)
boolean getmacfileinfo (const tyfilespec *fs, CInfoPBRec *pb)
boolean filemakespec (short vnum, long dirid, bigstring fname, ptrfilespec pfs)
boolean filegetfilename (const tyfilespec *pfs, bigstring name)
void filenotfounderror (bigstring)
boolean surefile (const tyfilespec *)
boolean filegeteof (hdlfilenum, long *)
boolean fileseteof (hdlfilenum, long)
boolean filesetposition (hdlfilenum, long)
boolean filegetposition (hdlfilenum, long *)
long filegetsize (hdlfilenum)
boolean filetruncate (hdlfilenum)
boolean filewrite (hdlfilenum, long, void *)
boolean filereaddata (hdlfilenum, long, long *, void *)
boolean fileread (hdlfilenum, long, void *)
boolean filegetchar (hdlfilenum, char *)
boolean fileputchar (hdlfilenum, char)
boolean filewritehandle (hdlfilenum, Handle)
boolean filereadhandle (hdlfilenum, Handle *)
boolean fileparsevolname (bigstring, short *, bigstring)
boolean fileresolvealias (tyfilespec *)
boolean filefrompath (bigstring, bigstring)
boolean folderfrompath (bigstring, bigstring)
boolean getfileparentfolder (const tyfilespec *, tyfilespec *)
boolean deletefile (const tyfilespec *)
boolean renamefile (const tyfilespec *, bigstring)
boolean movefile (const tyfilespec *, const tyfilespec *)
boolean lockfile (const tyfilespec *)
boolean unlockfile (const tyfilespec *)
boolean newfolder (const tyfilespec *)
boolean newfile (const tyfilespec *, OSType, OSType)
void fileinit (void)
void fileshutdown (void)
boolean fileopenorcreate (const tyfilespec *, OSType, OSType, hdlfilenum *)
boolean opennewfile (const tyfilespec *, OSType, OSType, hdlfilenum *)
boolean openfile (const tyfilespec *, hdlfilenum *, boolean)
boolean closefile (hdlfilenum)
boolean flushvolumechanges (const tyfilespec *fsspec, hdlfilenum fnum)
boolean getfullfilepath (bigstring)
boolean foldertest (CInfoPBRec *)
boolean getfiletype (const tyfilespec *, OSType *)
boolean getfilecreator (const tyfilespec *, OSType *)
boolean fileexists (const tyfilespec *, boolean *)
boolean filesize (const tyfilespec *, long *)
boolean fileisfolder (const tyfilespec *, boolean *)
boolean fileisvolume (const tyfilespec *)
boolean fileislocked (const tyfilespec *, boolean *)
boolean fileisbusy (const tyfilespec *, boolean *)
boolean filehasbundle (const tyfilespec *, boolean *)
boolean filesetbundle (const tyfilespec *, boolean)
boolean fileisalias (const tyfilespec *, boolean *)
boolean fileisvisible (const tyfilespec *, boolean *)
boolean filesetvisible (const tyfilespec *, boolean)
boolean getfiledates (const tyfilespec *, unsigned long *, unsigned long *)
boolean setfiledates (const tyfilespec *, unsigned long, unsigned long)
boolean getfilepos (const tyfilespec *, Point *)
boolean setfilepos (const tyfilespec *, Point)
boolean setfilecreated (const tyfilespec *, long)
boolean setfilemodified (const tyfilespec *, long)
boolean setfiletype (const tyfilespec *, OSType)
boolean setfilecreator (const tyfilespec *, OSType)
boolean largefilebuffer (Handle *)
boolean copyfile (const tyfilespec *, const tyfilespec *, boolean, boolean)
short filegetapplicationvnum (void)
short filegetapplicationrnum (void)
short filegetsystemvnum (void)
boolean getspecialfolderpath (bigstring, bigstring, boolean, tyfilespec *)
boolean ejectvol (const tyfilespec *)
boolean isejectable (const tyfilespec *, boolean *)
boolean langgetextendedvolumeinfo (const tyfilespec *, double *, double *)
boolean getfreespace (const tyfilespec *, long *)
boolean getvolumesize (const tyfilespec *, long *)
boolean getvolumeblocksize (const tyfilespec *, long *)
boolean filesonvolume (const tyfilespec *, long *)
boolean foldersonvolume (const tyfilespec *, long *)
boolean isvolumelocked (const tyfilespec *, boolean *)
boolean volumecreated (const tyfilespec *, unsigned long *)
boolean lockvolume (const tyfilespec *, boolean)
boolean unmountvolume (const tyfilespec *)
boolean drivenumtovolname (short, bigstring)
boolean findapplication (OSType, tyfilespec *)
boolean getfilecomment (const tyfilespec *, bigstring)
boolean setfilecomment (const tyfilespec *, bigstring)
boolean getfilelabel (const tyfilespec *, bigstring)
boolean setfilelabel (const tyfilespec *, bigstring)
boolean mountvolume (bigstring, bigstring, bigstring)
boolean initfile (void)
boolean fiffindinfile (const tyfilespec *, bigstring, long *)
boolean fifcomparefiles (const tyfilespec *, const tyfilespec *)
boolean fifcharcounter (const tyfilespec *, char, long *)
boolean fifclosefile (const tyfilespec *)
boolean fifcloseallfiles (long)
boolean fifopenfile (const tyfilespec *, long)
boolean fifendoffile (const tyfilespec *)
boolean fifreadline (const tyfilespec *, Handle *)
boolean fifwriteline (const tyfilespec *, Handle)
boolean fifreadhandle (const tyfilespec *, long, Handle *)
boolean fifreadfile (const tyfilespec *fs, Handle *x)
boolean fifwritehandle (const tyfilespec *, Handle)
boolean fifsetposition (const tyfilespec *, long)
boolean fifgetposition (const tyfilespec *, long *)
boolean fifsetendoffile (const tyfilespec *fs, long eof)
boolean fifgetendoffile (const tyfilespec *fs, long *eof)
boolean directorytopath (long, short, bigstring)
boolean volumerefnumtopath (short, bigstring)
boolean filesetdefaultpath (const tyfilespec *)
boolean filegetdefaultpath (tyfilespec *)
boolean filespectopath (const tyfilespec *, bigstring)
boolean pathtofilespec (bigstring, tyfilespec *)
boolean filegetpath (const tyfilespec *, bigstring)
boolean setfsfile (tyfilespec *, bigstring)
boolean getfsfile (const tyfilespec *, bigstring)
boolean getfsvolume (const tyfilespec *, long *)
void initfsdefault (void)
boolean filegetprogramversion (bigstring)
boolean filestart (void)
boolean sfdialog (tysfverb, bigstring, ptrsftypelist, tyfilespec *, OSType)
boolean initfiledialog (void)
boolean getmp3info (const tyfilespec *, long *, long *, long *, long *, boolean *)
short getfilelabelindex (const tyfilespec *, short *)
boolean setfilelabelindex (const tyfilespec *, short, boolean)

Variables

boolean flsupportslargevolumes


Define Documentation

#define maxsftypelist   20
 

Definition at line 84 of file file.h.

Referenced by clickersvisit(), and gettypelistvalue().


Typedef Documentation

typedef struct tysftypelist * ptrsftypelist
 


Enumeration Type Documentation

enum tyfolderview
 

Enumerator:
viewbysmallicon 
viewbyicon 
viewbyname 
viewbydate 
viewbysize 
viewbykind 
viewbycomment 
viewbycolor 
viewbyversion 

Definition at line 95 of file file.h.

enum tysfverb
 

Enumerator:
sfputfileverb 
sfgetfileverb 
sfgetfolderverb 
sfgetdiskverb 

Definition at line 72 of file file.h.


Function Documentation

boolean cleanendoffilename bigstring  bs  ) 
 

Definition at line 174 of file fileops.c.

References endswithpathsep(), setstringlength, and stringlength.

Referenced by deletefile(), fileexists(), filegetinfo(), folderfrompathverb(), langgetextendedvolumeinfo(), movefile(), and parsepageaddress().

Here is the call graph for this function:

boolean closefile hdlfilenum   ) 
 

Definition at line 715 of file file.c.

References FileRefNumGetFSRef(), FSClearNameLocked(), FSpClearNameLocked(), FSpGetFileLocation(), noErr, and oserror().

Referenced by ccsavespecialfile(), closewindowfile(), dbclosefile(), dbnewverb(), dbopenverb(), fifclosefile(), filecloser(), fwstransmitfile(), getgifheightwidthverb(), getjpegheightwidthverb(), shelldatabasesaveas(), shellnewfile(), shellnormalsaveas(), and shellopenfile().

Here is the call graph for this function:

boolean copyfile const tyfilespec ,
const tyfilespec ,
boolean  ,
boolean 
 

Referenced by copyfileverb().

boolean deletefile const tyfilespec  ) 
 

Definition at line 765 of file file.c.

References cleanendoffilename(), copystring(), error, fileisfolder(), FSClearNameLocked(), fsname, FSpClearNameLocked(), nullterminate, oserror(), and setfserrorparam().

Referenced by closewindowfile(), dbnewverb(), filecreateandopen(), filefunctionvalue(), opennewfile(), shelldatabasesaveas(), and shellnewfile().

Here is the call graph for this function:

boolean directorytopath long  ,
short  ,
bigstring 
 

Referenced by filegetfolder(), filegetpath(), filespectopath(), and PathNameFromWD().

boolean drivenumtovolname short  ,
bigstring 
 

boolean ejectvol const tyfilespec  ) 
 

Referenced by filefunctionvalue().

boolean endswithpathsep bigstring  bs  ) 
 

Definition at line 151 of file fileops.c.

References stringlength.

Referenced by cleanendoffilename(), filefrompathverb(), and movefile().

boolean equalfilespecs const tyfilespec ,
const tyfilespec
 

Definition at line 66 of file file.c.

Referenced by copyfileverb(), deletealiasescallback(), EQvalue(), fileisrunningvisit(), findbyfilevisit(), findfilevisit(), findopenfile(), foldercontainsaliascallback(), getlibrary(), getodbparam(), and shellfindfilevisit().

boolean fifcharcounter const tyfilespec ,
char  ,
long
 

Definition at line 469 of file findinfile.c.

References ct, fileopener(), tyopenfile::fs, tyopenfile::hbuffer, largefilebuffer(), loadbufferfromfile(), and nil.

Referenced by countlinesverb().

Here is the call graph for this function:

boolean fifcloseallfiles long   ) 
 

Definition at line 576 of file findinfile.c.

References fifclosefile(), tyopenfile::fs, hfirstfile, tyopenfile::nextfile, and nil.

Referenced by processruncode().

Here is the call graph for this function:

boolean fifclosefile const tyfilespec  ) 
 

Definition at line 542 of file findinfile.c.

References closefile(), disposehandle(), fifopenfileerror(), findopenfile(), tyopenfile::fs, hfirstfile, tyopenfile::nextfile, and nil.

Referenced by closefileverb(), fifcloseallfiles(), fifopenfile(), filefunctionvalue(), and readwholefileverb().

Here is the call graph for this function:

boolean fifcomparefiles const tyfilespec fs1,
const tyfilespec fs2
 

no more chars to look at

Definition at line 382 of file findinfile.c.

References filebuffersize, fileopener(), loadbufferfromfile(), newclearhandle(), and nil.

Referenced by comparefilesverb().

Here is the call graph for this function:

boolean fifendoffile const tyfilespec  ) 
 

Definition at line 663 of file findinfile.c.

References findopenfile(), and tyopenfile::fs.

Referenced by endoffileverb().

Here is the call graph for this function:

boolean fiffindinfile const tyfilespec ,
bigstring  ,
long
 

Definition at line 254 of file findinfile.c.

References alllower(), backupfilepos(), fileopener(), tyopenfile::fpos, tyopenfile::fs, tyopenfile::hbuffer, largefilebuffer(), loadbufferfromfile(), lowercasehandle(), nil, and stringlength.

Referenced by findfileverb().

Here is the call graph for this function:

boolean fifgetendoffile const tyfilespec fs,
long eof
 

Definition at line 1053 of file findinfile.c.

References filecloser(), filegeteof(), fileopener(), fl, and tyopenfile::fs.

Referenced by getendoffileverb().

Here is the call graph for this function:

boolean fifgetposition const tyfilespec ,
long
 

Definition at line 989 of file findinfile.c.

References tyopenfile::ctbufferbytes, fifopenfileerror(), filegetposition(), findopenfile(), and tyopenfile::fs.

Referenced by getmp3info(), and getpositionverb().

Here is the call graph for this function:

boolean fifopenfile const tyfilespec ,
long 
 

Definition at line 600 of file findinfile.c.

References disposehandle(), error, fifclosefile(), filebuffersize, filegeteof(), fileopener(), findopenfile(), tyopenfile::fs, tyopenfile::hbuffer, hfirstfile, newclearhandle(), and nil.

Referenced by filefunctionvalue(), openfileverb(), and readwholefileverb().

Here is the call graph for this function:

boolean fifreadfile const tyfilespec fs,
Handle x
 

Definition at line 855 of file findinfile.c.

References disposehandle(), fifopenfileerror(), filegeteof(), fileread(), findopenfile(), fl, tyopenfile::fs, h, lockhandle(), newhandle(), nil, and unlockhandle().

Referenced by readwholefileverb().

Here is the call graph for this function:

boolean fifreadhandle const tyfilespec ,
long  ,
Handle
 

Definition at line 845 of file findinfile.c.

References chnul, fifread(), and tyopenfile::fs.

Referenced by getmp3info(), and readverb().

Here is the call graph for this function:

boolean fifreadline const tyfilespec ,
Handle
 

Definition at line 835 of file findinfile.c.

References chreturn, fifread(), tyopenfile::fs, and longinfinity.

Referenced by readlineverb().

Here is the call graph for this function:

boolean fifsetendoffile const tyfilespec fs,
long  eof
 

Definition at line 1018 of file findinfile.c.

References filecloser(), fileopener(), fileseteof(), fl, tyopenfile::fs, max, min, and nil.

Referenced by setendoffileverb().

Here is the call graph for this function:

boolean fifsetposition const tyfilespec ,
long 
 

Definition at line 954 of file findinfile.c.

References tyopenfile::ctbytesleft, fifopenfileerror(), filebuffersize, filegeteof(), filesetposition(), findopenfile(), and tyopenfile::fs.

Referenced by getmp3info(), and setpositionverb().

Here is the call graph for this function:

boolean fifwritehandle const tyfilespec ,
Handle 
 

Definition at line 903 of file findinfile.c.

References filecloser(), filegeteof(), fileopener(), filesetposition(), filewrite(), fl, tyopenfile::fs, and gethandlesize().

Referenced by fifwriteline(), and writeverb().

Here is the call graph for this function:

boolean fifwriteline const tyfilespec ,
Handle 
 

Definition at line 934 of file findinfile.c.

References fifwritehandle(), tyopenfile::fs, and pushtexthandle().

Referenced by writelineverb().

Here is the call graph for this function:

boolean fileexists const tyfilespec ,
boolean
 

Definition at line 822 of file file.c.

Referenced by filefrompathverb(), filefunctionvalue(), filegetuniquename(), filespecaddvalue(), filespectopath(), filesurefolder(), findapplication(), gethelperfolder(), isstalepageaddress(), opennewfile(), shellopendefaultfile(), stringtoalias(), surefile(), and windowgetfspec().

boolean filefrompath bigstring  ,
bigstring 
 

Definition at line 2811 of file fileops.c.

References copyctopstring(), copystring(), fileisvolume(), fsname, isemptystring, lastword(), NULL, nullterminate, setemptystring, and stringlength.

Referenced by filefrompathverb(), folderfrompath(), getfsfile(), movefile(), openlibrary(), parsepageaddress(), renamefile(), shellclose(), and shellrevert().

Here is the call graph for this function:

short filegetapplicationrnum void   ) 
 

Definition at line 1746 of file fileops.c.

References applicationresnum.

Referenced by checktable(), and osacomponentstart().

short filegetapplicationvnum void   ) 
 

boolean filegetchar hdlfilenum  ,
char * 
 

Definition at line 333 of file file.c.

boolean filegetdefaultpath tyfilespec  ) 
 

Definition at line 92 of file filepath.c.

References fsname, nil, oserror(), and setstringlength.

Referenced by filefunctionvalue(), pathtofilespec(), and shellopendefaultfile().

Here is the call graph for this function:

boolean filegeteof hdlfilenum  ,
long
 

Definition at line 135 of file file.c.

References filegetposition(), filesetposition(), NULL, and oserror().

Referenced by dbgeteof(), fifgetendoffile(), fifopenfile(), fifreadfile(), fifsetposition(), and fifwritehandle().

Here is the call graph for this function:

boolean filegetfilename const tyfilespec pfs,
bigstring  name
 

Definition at line 895 of file file.c.

Referenced by addaliastospecialfolder(), claygetfilename(), coercetoboolean(), getappfilename(), openappwindow(), saveaswindow(), and setfileerrorfile().

boolean filegetinfo const tyfilespec fs,
tyfileinfo info
 

Definition at line 660 of file fileops.c.

Referenced by claygetfileinfo(), CreateAliasFile(), filedelete(), filehasbundle(), fileisalias(), fileisbusy(), fileisfolder(), fileislocked(), fileisvisible(), filesetvisible(), filesize(), filteredcopy(), findapplication(), getfilecreator(), getfiledates(), getfiletype(), openappwindow(), and openfilespec().

void filegetinfofrompb CInfoPBRec pb,
tyfileinfo info
 

Definition at line 316 of file appletfiles.c.

Referenced by filegetinfo(), folderloop(), and sffilter().

boolean filegetpath const tyfilespec ,
bigstring 
 

Referenced by filefunctionvalue().

boolean filegetposition hdlfilenum  ,
long
 

Definition at line 114 of file file.c.

References NULL, and oserror().

Referenced by backupfilepos(), fifgetposition(), filegeteof(), and fileopener().

Here is the call graph for this function:

boolean filegetprogramversion bigstring   ) 
 

Referenced by ccdrawabout(), drawabout(), and frontierversion().

long filegetsize hdlfilenum   ) 
 

Definition at line 203 of file file.c.

Referenced by filereadhandle(), and filereadwholefile().

short filegetsystemvnum void   ) 
 

Referenced by filefunctionvalue().

boolean filegetvolumeinfo short  vnum,
tyfileinfo info
 

Definition at line 237 of file appletfiles.c.

Referenced by diskloop(), and filegetinfofrompb().

boolean filegetvolumename short  vnum,
bigstring  volname
 

Definition at line 759 of file fileops.c.

Referenced by filegetfilename().

boolean filehasbundle const tyfilespec ,
boolean
 

Definition at line 824 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

void fileinit void   ) 
 

Definition at line 494 of file file.c.

Referenced by shellinit().

boolean fileisalias const tyfilespec ,
boolean
 

Definition at line 866 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean fileisbusy const tyfilespec ,
boolean
 

Definition at line 807 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean fileisfolder const tyfilespec ,
boolean
 

Definition at line 991 of file fileops.c.

References copystring(), filegetinfo(), fileisvolume(), fsname, info, and stringlength.

Referenced by deletefile(), filefunctionvalue(), filespecaddvalue(), and movefile().

Here is the call graph for this function:

boolean fileislocked const tyfilespec ,
boolean
 

Definition at line 1069 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean fileisvisible const tyfilespec ,
boolean
 

Definition at line 883 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean fileisvolume const tyfilespec  ) 
 

Definition at line 1025 of file fileops.c.

References bigstring, copystring(), fsname, getlower, isemptystring, and stringlength.

Referenced by fileexists(), filefrompath(), filefunctionvalue(), filegetinfo(), fileisfolder(), and pathtofilespec().

Here is the call graph for this function:

boolean filemakespec short  vnum,
long  dirid,
bigstring  fname,
ptrfilespec  pfs
 

Definition at line 60 of file appletfiles.c.

Referenced by addaliastospecialfolder(), deletealiasescallback(), filedeletevisit(), filegetprefsspec(), filegetsubitemspec(), filegettempspec(), filegetuniquename(), findapplication(), foldercontainsaliascallback(), foldercopyvisit(), getfolderfilespec(), helpercallback(), and verbmakefilespec().

void filenotfounderror bigstring   ) 
 

Definition at line 2996 of file fileops.c.

References oserror(), and setoserrorparam().

Referenced by ccloadspecialfile(), coercetofilespec(), and surefile().

Here is the call graph for this function:

boolean fileopenorcreate const tyfilespec ,
OSType  ,
OSType  ,
hdlfilenum * 
 

Definition at line 562 of file file.c.

References copystring(), filecreateandopen(), fsname, FSpSetNameLocked(), FSSetNameLocked(), noErr, NULL, and nullterminate.

Referenced by ccstart().

Here is the call graph for this function:

boolean fileparsevolname bigstring  ,
short ,
bigstring 
 

Definition at line 2681 of file fileops.c.

References bigstring, clearbytes(), copystring(), deletestring(), isallnumeric(), isemptystring, midstring(), nil, noErr, nullterminate, pushchar(), scanstring(), setemptystring, setstringlength, stringlength, and stringtoshort().

Referenced by aliastofilespec(), getfsvolume(), and getvolumevalue().

Here is the call graph for this function:

boolean fileputchar hdlfilenum  ,
char 
 

Definition at line 355 of file file.c.

References filewrite().

Here is the call graph for this function:

boolean fileread hdlfilenum  ,
long  ,
void * 
 

Definition at line 305 of file file.c.

Referenced by dbread(), dbreadswap(), fifreadfile(), filegetchar(), filereadhandle(), first_marker(), getGifBounds(), read_1_byte(), and read_2_bytes().

boolean filereaddata hdlfilenum  ,
long  ,
long ,
void * 
 

Definition at line 269 of file file.c.

References noErr, NULL, and oserror().

Referenced by fileread(), fwstransmitfile(), and loadbufferfromfile().

Here is the call graph for this function:

boolean filereadhandle hdlfilenum  ,
Handle
 

Definition at line 399 of file file.c.

Referenced by filereadwholefile(), and opwinloadfile().

boolean fileresolvealias tyfilespec  ) 
 

Referenced by deletealiasescallback(), filteredcopy(), foldercontainsaliascallback(), and shellopenfile().

boolean filesetbundle const tyfilespec ,
boolean 
 

Definition at line 841 of file fileops.c.

References getmacfileinfo(), and setmacfileinfo().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean filesetdefaultpath const tyfilespec  ) 
 

Definition at line 119 of file filepath.c.

References clearbytes(), fsname, isemptystring, longsizeof, oserror(), and setoserrorparam().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean fileseteof hdlfilenum  ,
long 
 

Definition at line 166 of file file.c.

Referenced by ccsavespecialfile(), dbseteof(), fifsetendoffile(), filetruncate(), opwinsavefile(), and saveappwindow().

boolean filesetposition hdlfilenum  ,
long 
 

Definition at line 91 of file file.c.

References NULL, and oserror().

Referenced by backupfilepos(), ccsavespecialfile(), dbseek(), fifsetposition(), fifwritehandle(), filecloser(), filegeteof(), fwstransmitfile(), and opwinsavefile().

Here is the call graph for this function:

boolean filesetvisible const tyfilespec ,
boolean 
 

Definition at line 900 of file fileops.c.

References filegetinfo(), fsname, getmacfileinfo(), info, and setmacfileinfo().

Referenced by filefunctionvalue().

Here is the call graph for this function:

void fileshutdown void   ) 
 

Definition at line 502 of file file.c.

Referenced by shellshutdown().

boolean filesize const tyfilespec ,
long
 

Definition at line 978 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue(), filegetsize(), filereadhandle(), and webservercallresponder().

Here is the call graph for this function:

boolean filesonvolume const tyfilespec ,
long
 

Definition at line 2209 of file fileops.c.

References tyfileinfo::ctfiles.

Referenced by filefunctionvalue().

boolean filespectopath const tyfilespec ,
bigstring 
 

Definition at line 165 of file filepath.c.

References assurelastchariscolon(), convertcstring(), copyptocstring(), copystring(), directorytopath(), fileexists(), tyfileinfo::flfolder, fsname, isemptystring, lenbigstring, nullterminate, pushchar(), pushstring(), and setemptystring.

Referenced by aliastostring(), browserselectfile(), ccloadspecialfile(), coercetostring(), filespectoalias(), filespectoobjspec(), getfsfile(), langgetvalsize(), langpackfileval(), and windowgetpath().

Here is the call graph for this function:

boolean filestart void   ) 
 

Definition at line 3855 of file fileverbs.c.

References flsupportslargevolumes, nil, and NULL.

Referenced by frontierstart().

boolean filetruncate hdlfilenum   ) 
 

Definition at line 230 of file file.c.

boolean filewrite hdlfilenum  ,
long  ,
void * 
 

Definition at line 236 of file file.c.

Referenced by dbwrite(), dbwriteswap(), fifwritehandle(), fileputchar(), and filewritehandle().

boolean filewritehandle hdlfilenum  ,
Handle 
 

Definition at line 361 of file file.c.

Referenced by ccsavespecialfile(), opwinsavefile(), and saveappwindow().

boolean findapplication OSType  ,
tyfilespec
 

Definition at line 3275 of file fileops.c.

Referenced by assureappisrunning(), and findapplicationverb().

boolean flushvolumechanges const tyfilespec fsspec,
hdlfilenum  fnum
 

Definition at line 464 of file file.c.

References NULL.

Referenced by closewindowfile(), dbflushheader(), shelldatabasesaveas(), shellnormalsaveas(), and shellsave().

boolean folderfrompath bigstring  ,
bigstring 
 

Definition at line 2864 of file fileops.c.

References bigstring, copystring(), filefrompath(), setstringlength, and stringlength.

Referenced by folderfrompathverb(), parsepageaddress(), pathtofilespec(), renamefile(), and setfsfile().

Here is the call graph for this function:

boolean foldersonvolume const tyfilespec ,
long
 

Definition at line 2226 of file fileops.c.

References tyfileinfo::ctfolders.

Referenced by filefunctionvalue().

boolean foldertest CInfoPBRec  ) 
 

Referenced by fileexists(), and setfiledates().

boolean getfilecomment const tyfilespec ,
bigstring 
 

Referenced by filecopycomment().

boolean getfilecreator const tyfilespec ,
OSType
 

Definition at line 963 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean getfiledates const tyfilespec ,
unsigned long ,
unsigned long
 

Definition at line 1082 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue(), setfilecreated(), and setfilemodified().

Here is the call graph for this function:

boolean getfilelabel const tyfilespec ,
bigstring 
 

short getfilelabelindex const tyfilespec ,
short
 

boolean getfileparentfolder const tyfilespec ,
tyfilespec
 

Referenced by folderfrompathverb().

boolean getfilepos const tyfilespec ,
Point
 

Referenced by geticonposverb().

boolean getfiletype const tyfilespec ,
OSType
 

Definition at line 948 of file fileops.c.

References filegetinfo(), and info.

Referenced by filefunctionvalue(), shellnormalsaveas(), shellopenfile(), and shellsave().

Here is the call graph for this function:

boolean getfreespace const tyfilespec ,
long
 

Definition at line 2036 of file fileops.c.

References tyfileinfo::ctfreebytes.

Referenced by filefunctionvalue().

boolean getfsfile const tyfilespec ,
bigstring 
 

Definition at line 359 of file filepath.c.

References bigstring, copystring(), filefrompath(), filespectopath(), and fsname.

Referenced by fifopenfileerror(), langexternalzoomfilewindow(), newfilewindow(), shellsaveas(), and windowsetfspec().

Here is the call graph for this function:

boolean getfsvolume const tyfilespec ,
long
 

Definition at line 384 of file filepath.c.

References clearbytes(), fileparsevolname(), fsname, nil, and noErr.

Referenced by windowgetfspec().

Here is the call graph for this function:

boolean getfullfilepath bigstring   ) 
 

boolean getmacfileinfo const tyfilespec fs,
CInfoPBRec pb
 

Referenced by copyonefile(), filegetfolderid(), filegetinfo(), filegetmodified(), filegettempfolder(), filesetbundle(), filesetfolderview(), filesetlabel(), filesetvisible(), foldercopy(), folderloop(), movefile(), setfiledates(), and setmodified().

boolean getmachinename bigstring  bsname  ) 
 

Definition at line 184 of file fileops.c.

References bigstring, fl, nil, setemptystring, setstringlength, and texthandletostring().

Referenced by langpackfileval().

Here is the call graph for this function:

boolean getmp3info const tyfilespec ,
long ,
long ,
long ,
long ,
boolean
 

Definition at line 387 of file filemp3.c.

References extractfourbytes(), fifgetposition(), fifreadhandle(), fifsetposition(), h, long, and nil.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean getspecialfolderpath bigstring  ,
bigstring  ,
boolean  ,
tyfilespec
 

Definition at line 1796 of file fileops.c.

References bigstring, chspace, tyfileinfo::dirid, equalidentifiers(), findstringlist(), firstword(), fsname, gestalt(), isemptystring, nil, noErr, NULL, nullterminate, oserror(), pushchar(), setoserrorparam(), setstringlength, specialfolderlistnumber, stringlength, and stringtoostype().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean getvolumeblocksize const tyfilespec ,
long
 

Definition at line 2196 of file fileops.c.

References tyfileinfo::blocksize.

Referenced by filefunctionvalue().

boolean getvolumesize const tyfilespec ,
long
 

Definition at line 2183 of file fileops.c.

References tyfileinfo::cttotalbytes.

Referenced by filefunctionvalue().

boolean initfile void   ) 
 

Definition at line 3235 of file fileops.c.

References applicationresnum, initfiledialog(), nil, and RememberA5.

Referenced by shellinit().

Here is the call graph for this function:

boolean initfiledialog void   ) 
 

Referenced by initfile().

void initfsdefault void   ) 
 

Definition at line 413 of file filepath.c.

References getapplicationfilespec(), and nil.

Referenced by shellinit().

Here is the call graph for this function:

boolean isejectable const tyfilespec ,
boolean
 

Definition at line 2023 of file fileops.c.

References tyfileinfo::flejectable.

Referenced by filefunctionvalue().

boolean isvolumelocked const tyfilespec ,
boolean
 

Definition at line 2239 of file fileops.c.

References tyfileinfo::fllocked.

Referenced by filefunctionvalue().

boolean langgetextendedvolumeinfo const tyfilespec ,
double *  ,
double * 
 

Definition at line 2067 of file fileops.c.

References bigstring, cleanendoffilename(), copystring(), flsupportslargevolumes, FSGetVInfo(), fsname, nil, noErr, nullterminate, pushchar(), volumeinfoerror(), and XGetVInfo().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean largefilebuffer Handle  ) 
 

Definition at line 1349 of file fileops.c.

References FreeMem(), h, memoryerror(), NewHandle, newhandle(), and nil.

Referenced by copyonefile(), fifcharcounter(), and fiffindinfile().

Here is the call graph for this function:

boolean lockfile const tyfilespec  ) 
 

Definition at line 3094 of file fileops.c.

References error, fsname, oserror(), and setfserrorparam().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean lockvolume const tyfilespec ,
boolean 
 

Definition at line 2269 of file fileops.c.

References oserror().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean mountvolume bigstring  ,
bigstring  ,
bigstring 
 

Referenced by filefunctionvalue().

boolean movefile const tyfilespec ,
const tyfilespec
 

Definition at line 2926 of file fileops.c.

References appendcstring(), bigstring, cleanendoffilename(), copystring(), endswithpathsep(), filefrompath(), fileisfolder(), fl, fsname, getmacfileinfo(), nullterminate, oserror(), pushstring(), setfserrorparam(), setstringlength, and stringlength.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean newfile const tyfilespec ,
OSType  ,
OSType 
 

Definition at line 3177 of file fileops.c.

References copystring(), fsname, NULL, nullterminate, oserror(), setfserrorparam(), and verify.

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean newfolder const tyfilespec  ) 
 

Definition at line 3153 of file fileops.c.

References fsname, NULL, oserror(), and setfserrorparam().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean openfile const tyfilespec ,
hdlfilenum *  ,
boolean 
 

Definition at line 628 of file file.c.

References copystring(), fsname, FSpSetNameLocked(), FSSetNameLocked(), noErr, NULL, nullterminate, oserror(), and setfserrorparam().

Referenced by ccsavespecialfile(), dbopenverb(), fileopener(), fwstransmitfile(), getgifheightwidthverb(), getjpegheightwidthverb(), and shellopenfile().

Here is the call graph for this function:

boolean opennewfile const tyfilespec ,
OSType  ,
OSType  ,
hdlfilenum * 
 

Definition at line 614 of file file.c.

References deletefile(), filecreateandopen(), and fileexists().

Referenced by dbnewverb(), shelldatabasesaveas(), shellnewfile(), and shellnormalsaveas().

Here is the call graph for this function:

boolean pathtofilespec bigstring  ,
tyfilespec
 

Definition at line 226 of file filepath.c.

References bigstring, clearbytes(), copystring(), filegetdefaultpath(), fileisvolume(), folderfrompath(), fsname, isallnumeric(), isemptystring, midstring(), noErr, nullterminate, poptrailingchars(), pushstring(), scanstring(), stringlength, and stringtoshort().

Referenced by coercetofilespec(), filemenufunctionvalue(), findapplication(), isstalepageaddress(), langunpackfileval(), openwindowsparamlinefiles(), parsepageaddress(), and stringtoalias().

Here is the call graph for this function:

boolean renamefile const tyfilespec ,
bigstring 
 

Definition at line 3031 of file fileops.c.

References bigstring, copystring(), filefrompath(), folderfrompath(), fsname, nullterminate, oserror(), pushstring(), setoserrorparam(), and surefile().

Referenced by clayrenamefile(), and filefunctionvalue().

Here is the call graph for this function:

boolean setfilecomment const tyfilespec ,
bigstring 
 

Referenced by filecopycomment().

boolean setfilecreated const tyfilespec ,
long 
 

Definition at line 1210 of file fileops.c.

References getfiledates(), and setfiledates().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean setfilecreator const tyfilespec ,
OSType 
 

Referenced by filefunctionvalue().

boolean setfiledates const tyfilespec ,
unsigned  long,
unsigned  long
 

Definition at line 1097 of file fileops.c.

References copystring(), fl, foldertest(), fsname, getmacfileinfo(), h, NULL, nullterminate, oserror(), setmacfileinfo(), and verify.

Referenced by setfilecreated(), and setfilemodified().

Here is the call graph for this function:

boolean setfilelabel const tyfilespec ,
bigstring 
 

boolean setfilelabelindex const tyfilespec ,
short  ,
boolean 
 

boolean setfilemodified const tyfilespec ,
long 
 

Definition at line 1225 of file fileops.c.

References getfiledates(), and setfiledates().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean setfilepos const tyfilespec ,
Point 
 

Referenced by seticonposverb().

boolean setfiletype const tyfilespec ,
OSType 
 

Referenced by filefunctionvalue().

void setfserrorparam const tyfilespec  ) 
 

Definition at line 136 of file fileops.c.

References fsname, and setoserrorparam().

Referenced by deletefile(), filecreateandopen(), lockfile(), movefile(), newfile(), newfolder(), openfile(), and unlockfile().

Here is the call graph for this function:

boolean setfsfile tyfilespec ,
bigstring 
 

Definition at line 311 of file filepath.c.

References bigstring, copystring(), folderfrompath(), fsname, nullterminate, and pushstring().

Referenced by shellopendefaultfile(), and shellsaveas().

Here is the call graph for this function:

boolean sfdialog tysfverb  ,
bigstring  ,
ptrsftypelist  ,
tyfilespec ,
OSType 
 

Referenced by filedialogverb(), openfrontwindow(), saveasfrontwindow(), shellnew(), shellopen(), and shellsaveas().

boolean surefile const tyfilespec  ) 
 

Definition at line 3018 of file fileops.c.

References fileexists(), filenotfounderror(), and fsname.

Referenced by renamefile().

Here is the call graph for this function:

boolean unlockfile const tyfilespec  ) 
 

Definition at line 3124 of file fileops.c.

References error, fsname, oserror(), and setfserrorparam().

Referenced by filefunctionvalue().

Here is the call graph for this function:

boolean unmountvolume const tyfilespec  ) 
 

Referenced by filefunctionvalue().

boolean volumecreated const tyfilespec ,
unsigned long
 

Definition at line 2256 of file fileops.c.

References tyfileinfo::timecreated.

Referenced by filefunctionvalue().

boolean volumerefnumtopath short  ,
bigstring 
 


Variable Documentation

boolean flsupportslargevolumes
 

Definition at line 60 of file fileverbs.c.

Referenced by filestart(), and langgetextendedvolumeinfo().


Generated on Thu Jun 1 07:04:05 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6