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
32 * Alternatively, the contents of this file may be used under the terms of
36 * of those above. If you wish to allow use of your version of this file only
38 * use your version of this file under the terms of the MPL, indicate your
41 * the provisions above, a recipient may use your version of this file under
85 // On some platforms file/directory name comparisons need to
184 nsLocalFile* file = new nsLocalFile();
185 if (!file)
188 if (NS_FAILED(rv = file->InitWithNativePath(mParentPath)) ||
189 NS_FAILED(rv = file->AppendNative(nsDependentCString(mEntry->d_name)))) {
192 *_retval = NS_STATIC_CAST(nsISupports *, file);
261 nsLocalFile::Clone(nsIFile **file)
264 *file = new nsLocalFile(*this);
265 if (!*file)
268 NS_ADDREF(*file);
354 * We could get EEXIST for an existing file -- not directory --
421 * Ancestor directories get the same permissions as the file we're
735 // check to see if we are a directory or if we are a file
762 // actually create the file.
777 // Create the new file with the old file's permissions, even if write
780 // But we can write to a read-only file on all Unix filesystems if we
791 // open the old file, too
928 nsCOMPtr<nsIFile> file = do_QueryInterface(item, &rv);
931 if (NS_FAILED(rv = file->Remove(recursive)))
1017 * mode_t to permit checks against other file types?
1053 * guarantee the name still refers to the same file.
1074 /* Only two record formats can report correct file content size */
1134 * f_bfree = number of total free blocks in file system.
1605 nsLocalFile *file = new nsLocalFile();
1606 if (!file)
1608 NS_ADDREF(file);
1611 nsresult rv = file->InitWithNativePath(path);
1613 NS_RELEASE(file);
1617 *result = file;