Lines Matching defs:file
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
27 * Alternatively, the contents of this file may be used under the terms of
31 * of those above. If you wish to allow use of your version of this file only
33 * use your version of this file under the terms of the MPL, indicate your
36 * the provisions above, a recipient may use your version of this file under
242 Given an FSSpec to a (possibly non-existent) file, get an FSSpec for its
299 Get the last mod date and time of a file.
301 Entry: fSpec = pointer to file spec.
333 *file = file spec for application on volume.
336 static OSErr FindAppOnVolume (OSType sig, short vRefNum, FSSpec *file)
357 pb.ioNamePtr = file->name;
364 file->vRefNum = vRefNum;
365 file->parID = pb.ioAPPLParID;
367 err = FSpGetFInfo(file, &fInfo);
384 err = GetLastModDateTime(file, &lastModDateTime);
388 *file = candidate;
534 Utility routine to do a mid-trunc on a potential file name so that it is
536 to come up with legal Mac file names.
538 Entry: aNode = initial file name
759 // The directory (or perhaps a file) exists. Find its dirID.
763 err = dupFNErr; // oops! a file exists with that name.
770 // If we got "file not found" and we're allowed to create directories
795 NS_ASSERTION(mFile, "StFollowLinksState passed a NULL file.");
803 NS_ASSERTION(mFile, "StFollowLinksState passed a NULL file.");
1010 // This function resets any cached information about the file.
1072 // Resolve the alias to the original file.
1095 nsLocalFile::Clone(nsIFile **file)
1098 *file = new nsLocalFile(*this);
1099 if (!*file)
1102 NS_ADDREF(*file);
1198 /* If opening with the PR_EXCL flag the existence of the file prior to opening is an error */
1660 const PRInt32 kCopyBufferSize = (1024 * 512); // allocate our own buffer to speed file copies. Bug #103202
1771 // FCB (file control block) list, which it seems to be unable to
1918 // For now we've only got 32 bits of file size info
1953 // Need to open the file to set the size
1959 // Close the file unless we got an error that it was already closed
2032 //if the file does not exist, does not mean that the parent does not.
2060 // construct a new file from our spec + trimmed path
2322 if (!macFile) return NS_OK; // trying to compare non-local with local file
2646 // for launching a file, we'll use mTargetSpec (which is both a resolved spec and a resolved alias)
2679 /* Create alias for file */
2682 /* Create the file list */
2693 /* create the file descriptor and add to aliasList */
2702 /* Add the file alias list to the event */
2754 /* Create the file list */
2995 // Get the leaf name of the file and turn it into a string HFS can use.
3300 // For now we've only got 32 bits of file size info
3499 nsLocalFile* file = new nsLocalFile();
3500 if (file == nsnull)
3502 NS_ADDREF(file);
3504 file->SetFollowLinks(followLinks);
3507 nsresult rv = file->InitWithNativePath(path);
3509 NS_RELEASE(file);
3513 *result = file;
3530 nsLocalFile* file = new nsLocalFile();
3531 if (file == nsnull)
3533 NS_ADDREF(file);
3535 file->SetFollowLinks(followLinks);
3537 nsresult rv = file->InitWithFSSpec(inSpec);
3539 NS_RELEASE(file);
3542 *result = file;