Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
brendan%mozilla.org a791fb2253 Fixes to use atomic rename(2) if possible in nsLocalFile::MoveTo (33098, r=?),
plus a bunch of other fixes and cleanups:

- Fix comment misstatements of fact in nsIFile.idl, improve style slightly.
- Fix typo in comment in nsILocalFile.idl.
- Avoid gratuitous nsCString and nsXPIDLCString copy-constructions, which
  entail malloc'ing, in nsLocalFileUnix.cpp's CopyTo and GetParent methods.
  But do use nsXPIDLCString instead of raw nsMemory::Alloc/Free.
- Get rid of unnecessary mLL_II2L and mLL_L2II macros, use "prlong.h" API only.
  Also use the LL_* macros consistently in case a Unix lacking long long type
  support wants to use this code.
* BTW, the "Date" methods should be renamed to use "Time" instead -- after all
  PRTime is the type, and traditionally "time" refers to the time-number, a
  scalar independent of one's position on the surface of the earth, while
  "date" refers to a struct full of locale-specific information derived from
  time and some "environment" variables such as DST.  Can we rename these
  nsIFile methods before Mozilla 0.9 / Netscape 6?
- Use CHECK_mPath consistently and first, before any assertions relating to
  arguments (which logically come after the 'this' parameter CHECK_mPath is
  making assertions about).
- Use nsCOMPtr for singly-inheriting implementations of XPCOM interfaces, to
  avoid scary-when-scaled 0-refcnt instances from being handled (these all
  got a ref via QI or equivalent soon enough, but you never know).  This also
  removed some naked deletes.
- Canonize all paths copied into mPath to lack trailing slashes, so we don't
  need to strip trailing slashes elsewhere, in higher-frequency methods (you
  set path less often than you get it or a substring of it).
- ssize_t for strlen return values.
- Since shaver used a function pointer to consolidate creat/mkdir logic, but
  didn't fold the necessary close of the new fd returned by non-failing creat
  into the pointed-at function, I did that.
- AppendRelativePath forbids .. as a component (bounded by / or beginning or
  end of string on either side), not just in the middle of fragment (so that
  foo..bar is not an illegal relative pathname -- it should not be).  BTW,
  what the heck is the difference between NS_ERROR_FILE_UNRECOGNIZED_PATH and
  ...INVALID_PATH?
- SetLeafName was overallocating the new pathname buffer by failing to subtract
  the old leafname's length.
- CopyTo was failing to return an NSRESULT_FOR_ERRNO(), it just called that
  macro on a line by itself -- eek!  It also contained redundant if (newFD
  == nsnull) {...} cleanup code, it did a useless PR_GetFileInfo call, and it
  leaked FDs on read or write error.
- Implemented CopyToFollowingLinks as a forwarded call to CopyTo, Unix does
  not support "copying" a symlink via normal file i/o.  Should we instead
  lstat in CopyTo and if a link is the source of the copy, do readlink and
  then symlink?
- Fixed the readlink method (GetTarget) to null-terminate the link string in
  the out parameter (readlink does not do that for you).
- Lots of little nsnull vs. NULL vs. 0, == and != applied to boolean or null
  literals, white-space, indentation, bracing, comment, and sloppy code order
  (e.g., declaring an initialized variable that's not used till after early
  returns) fixes.  Also invert some return logic so that NS_OK is the normal,
  least indented, final return.
2000-09-19 00:22:41 +00:00
apache/gzip/src
build Added build for themes:classic:messenger:mac:jar.mn 2000-09-18 22:36:59 +00:00
calendar
caps fix memory corruption bug 52382. r=mstoltz 2000-09-14 08:48:53 +00:00
cck Adding customized UserAgent String to the Browser all-ns.js 2000-08-30 01:26:39 +00:00
chrome Improving debug messages for contents.rdf. 2000-09-18 02:07:06 +00:00
cmd
config Sigh. Need a case for components & non-components. 2000-09-17 18:40:42 +00:00
content Fix for 52810. r=danm 2000-09-18 18:49:58 +00:00
db don't write out row comments for mork, r=waterson 44556 2000-07-26 21:14:34 +00:00
dbm Tinderbox break - change OS/2 only code - third time is a charm 2000-07-10 20:38:41 +00:00
directory fix to mal-formed contract id introduced in mega-check-in:x 2000-09-14 04:18:07 +00:00
docshell Fix for dogfood+ bug 46845 r=pollmann 2000-09-16 04:36:18 +00:00
dom fix for bug 50990 r=jst a=brendan prevent timeout list insertion pointer from being null 2000-09-15 19:22:03 +00:00
editor More tweaks to prefs dialog b=47704, r=ben 2000-09-15 06:52:33 +00:00
ef fix another XXX 1999-12-01 21:26:42 +00:00
embedding + Added OnSecurityChange() to nsIWebProgressListener interface. 2000-09-14 22:56:56 +00:00
expat Some compilers don't like C++ comments in C files. Changing to C comments. 2000-08-30 01:35:07 +00:00
extensions Adding MozillaObjectWrapper.cpp. Not part of default build. a=leaf. 2000-09-18 06:18:55 +00:00
gc/boehm Conditionally compile in GC_trace_object. 2000-09-18 22:09:20 +00:00
gconfig updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
gfx Fix major DC suckage on win2k and 98. Instead of calling GetDC all the time, 2000-09-14 23:53:19 +00:00
grendel Added contribution from Ian Clarke. 2000-04-08 06:16:32 +00:00
htmlparser 46644: Fix FMM. Contribution from Daniel Bratell, bratell@lysator.liu.se, r=waterson and me 2000-09-19 00:14:12 +00:00
include Removing unused/obsolete files. Not part of build. 2000-09-01 02:30:52 +00:00
intl OS/2 GCC Tinderbox bustage 2000-09-15 14:45:07 +00:00
java This fix was contributed by 2000-09-19 00:18:18 +00:00
jpeg Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
js Create SIOUX console with menus, etc. r=jband, a=brendan 2000-09-18 23:49:46 +00:00
js2 Fixing scope problems on Linux 2000-09-12 00:53:33 +00:00
l10n 51193: Corrections and incorporationg first feedback from the ng. r=David 'Master_D' Krause (mostly), a=brendan. 2000-09-08 08:50:27 +00:00
layout #53096 2000-09-18 23:04:07 +00:00
lib added SIOUXSettings. 2000-09-18 19:36:25 +00:00
mailnews Fix for bug 52323. Use event.originalTarget instead of event.target in order to get the right target. a,r=alecf 2000-09-18 23:08:09 +00:00
modules #53096 2000-09-18 23:04:07 +00:00
msgsdk
mstone http stuff 2000-05-10 23:20:05 +00:00
netwerk Fix for bug 52257. mResponseDataListener could be null. r=valeski, brendan. 2000-09-18 23:29:30 +00:00
network/protocol/http Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
nsprpub Bugzilla bug #30746: the primordial thread should wait for the timer 2000-09-01 18:26:28 +00:00
nunet updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
parser 46644: Fix FMM. Contribution from Daniel Bratell, bratell@lysator.liu.se, r=waterson and me 2000-09-19 00:14:12 +00:00
plugin/oji/MRJ Uncommented Initialize() call. 2000-09-19 00:04:02 +00:00
privacy updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
profile part of fix for #42102 - use nsIFile for migration issues 2000-09-18 23:51:30 +00:00
rdf #53096 2000-09-18 23:04:07 +00:00
README/mozilla Just added a newline for test purposes 2000-08-04 04:49:05 +00:00
security Fix a UMR, one of many where the SECItem type field was uninitialized. 2000-09-18 23:53:18 +00:00
silentdl Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
string adding |.get()| for the other half of |NS_LITERAL_STRING| 2000-09-13 03:44:58 +00:00
suite On 12/16/1999, dmose@mozilla.org checked in some changes to the default 1999-12-31 11:48:20 +00:00
sun-java Don't rely upon files that use jri_md.h to include prtypes.h which provides a much needed HAS_LONG_LONG define. Bug 31381 2000-07-27 21:56:07 +00:00
themes Updated to work for mac jar packaging. 2000-09-18 22:33:20 +00:00
timer updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
tools New weekly data: not part of build. 2000-09-07 21:55:24 +00:00
tripledb updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
uriloader OS/2 VACPP Tinderbox bustage 2000-09-15 14:46:01 +00:00
view Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
wallet updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
webshell + Added OnSecurityChange() to nsIWebProgressListener interface. 2000-09-14 22:56:56 +00:00
webtools fix for 52228: Bug list title should be name of query if running named query 2000-09-18 21:29:45 +00:00
widget #47874 2000-09-18 20:39:13 +00:00
xpcom Fixes to use atomic rename(2) if possible in nsLocalFile::MoveTo (33098, r=?), 2000-09-19 00:22:41 +00:00
xpfc updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
xpfe #53096 2000-09-18 23:08:02 +00:00
xpinstall backing out changes for jar packaging 2000-09-16 02:26:20 +00:00
.cvsignore Ignore .mozconfig.mk and .mozconfig.out (made by client.mk) 2000-03-23 23:29:16 +00:00
aclocal.m4 Pass MOZ_TOPSRCDIR to altoptions.m4. This allows third parties (like netscape) to refer to the mozilla copy rather than copying it (and mozconfig2configure and mozconfig-find) into their own tree. 2000-03-14 02:59:54 +00:00
allmakefiles.sh This is the rest of the checkin to remove mozilla's dependency on building psm-glue. All security glue 2000-09-14 19:27:23 +00:00
client.mak Changing security build order to fix win32 clobber bustage. 2000-09-14 21:22:06 +00:00
client.mk Remove obsolete pull l10n commands. 2000-06-29 00:18:55 +00:00
configure Automated update 2000-09-15 22:30:12 +00:00
configure.in Ok, I'm a moron. stderr == 2. 2000-09-15 22:29:20 +00:00
LEGAL
LICENSE
Makefile.in This is the rest of the checkin to remove mozilla's dependency on building psm-glue. All security glue 2000-09-14 19:27:23 +00:00
makefile.win Changing security build order to fix win32 clobber bustage. 2000-09-14 21:22:06 +00:00
nglayout.mac updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
nglayout.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mak updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00