57 Commits

Author SHA1 Message Date
seawood%netscape.com
4551221bef Landing the rest of the mach-o OSX changes.
Bug #75653 r=cls sr=waterson


git-svn-id: svn://10.0.0.236/trunk@106461 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-27 07:38:18 +00:00
dbaron%fas.harvard.edu
8cfde11cea Bug 69873: remove nsAutoCString. r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105247 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-12 02:57:59 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
ccarlen%netscape.com
c083079514 Bug 87831 - Fizilla won't launch if its path contains non-ASCII char. r=ftang/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@104104 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 09:19:42 +00:00
scc%mozilla.org
90f810b66a bug #85271: sr=waterson, r={beard, jag, dbaron}, a=asa. Eliminate features of |nsXPIDLC?String| that keep it out of the string hierarchy (i.e., using assigment to rebind ownership, static |Copy| members, and |getter_Shares|), fixing some leaks in the process.
git-svn-id: svn://10.0.0.236/trunk@97289 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-17 05:23:38 +00:00
sdagley%netscape.com
ce41266bff #3616 - Enable long long in Mac version of NSPR (#defines the HAVE_LONG_LONG flag). sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@94093 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-06 22:43:10 +00:00
dougt%netscape.com
93f5201c5e missed commenting out two assertions which will cause mac and OS2 users
lots of pain.  r=brade, a=leaf.


git-svn-id: svn://10.0.0.236/trunk@67119 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:16:16 +00:00
dougt%netscape.com
bf7163c089 checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.


git-svn-id: svn://10.0.0.236/trunk@67030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:02 +00:00
beard%netscape.com
ebfb917075 Compatibility with Universal Headers 3.3 or later. a=leaf
git-svn-id: svn://10.0.0.236/trunk@66470 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:13:51 +00:00
scc%netscape.com
28db414fa4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@64827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-01 00:39:02 +00:00
pavlov%netscape.com
1fdd348954 changes to let us build on MacOS X
git-svn-id: svn://10.0.0.236/trunk@62619 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 03:08:04 +00:00
sfraser%netscape.com
9023d84036 Test that the filespec has been initialized, before using it to delete entire directory trees. Blocker. r=Ben_Goodger, a=leaf
git-svn-id: svn://10.0.0.236/trunk@59658 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 20:49:40 +00:00
fur%netscape.com
e3d83679ec In support of #8305 (implement cache).
Add Truncate() method to nsIFileSpec and implement in nsFileSpecImpl

[Mac Implementation: sdagley, r: sfraser]
[Win implementation: fur, r:rogerl]
[Unix implementation: yixiong.zue@intel.com, r: fur]


git-svn-id: svn://10.0.0.236/trunk@53948 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:42:46 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
dveditz%netscape.com
6b0912645b Changing nsFileSpec Copy and Move function names to match their
functionality, and also to free up the namespace for a *real* Copy
and Move that allow renaming the leaf name rather than just copying
into different directories (i.e. to make backup files). r=ssu


git-svn-id: svn://10.0.0.236/trunk@51333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:40:39 +00:00
sfraser%netscape.com
8023b08ebc Fix for bugs 15795 and 16090 -- fix startup crash which was due to an uninitialized nsFileSpec trashing the stack. Also no longer set mError on CreateDirectory if the dir already exists, prevent += "foo" when mError is set, and add assertions XP to catch calls with NULL strings.
reviewed by dougt and (in part) sspitzer. a=leaf.


git-svn-id: svn://10.0.0.236/trunk@50360 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:19:06 +00:00
sfraser%netscape.com
b591bc9b02 Fix for bug 15749; passing null strings to nsFileSpec routines was doing bad things, like strlen(NULL). r=dougt
git-svn-id: svn://10.0.0.236/trunk@50135 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:57:21 +00:00
rjc%netscape.com
1256f60809 Fix bug # 15135: when creating a nsFileURL, don't resolve aliases on Mac... just point to the file whether its an alias or not. Review: dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49411 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:41:33 +00:00
waterson%netscape.com
2c189eebdf Make nsFileSpecMac tough enough to deal with a Unix-style path with two or more forward slashes that are right next to each other; e.g., foo//bar/baz.html. Previously, it would convert this to foo::bar:baz.html, which is the Unix equivalent of foo/../bar/baz.html. Oops. Anyway, this keeps Mac from crashing on startup.
git-svn-id: svn://10.0.0.236/trunk@47943 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:03:09 +00:00
dveditz%netscape.com
f8e3f2c05b hoping this fixes dougt's bustage
git-svn-id: svn://10.0.0.236/trunk@46843 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:58:46 +00:00
dougt%netscape.com
4b0f769454 changing GetDiskSpaceAvailable to return a signed 64 bit value
git-svn-id: svn://10.0.0.236/trunk@46835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 20:03:56 +00:00
dougt%netscape.com
66f1984420 nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!


git-svn-id: svn://10.0.0.236/trunk@46590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:20:35 +00:00
bruce%cybersight.com
a5103b136d MacFileHelpers::EncodeMacPath() returns the result of an nsEscape() call, so all callers must nsCRT::free() the result instead of using delete[].
git-svn-id: svn://10.0.0.236/trunk@46013 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 17:09:06 +00:00
beard%netscape.com
6e47742ea0 plugged a memory leak in GetCString().
git-svn-id: svn://10.0.0.236/trunk@44715 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-27 03:47:43 +00:00
dougt%netscape.com
9ce9c8b2b7 Adding fix for 6181. It is currently ifdef'ed out. Looking for a mac person to
verify.


git-svn-id: svn://10.0.0.236/trunk@43448 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 02:17:21 +00:00
pinkerton%netscape.com
086f5f9900 remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete.
git-svn-id: svn://10.0.0.236/trunk@41942 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 04:51:45 +00:00
dougt%netscape.com
d219f1385e Fix for bug 10177 and 10041.
git-svn-id: svn://10.0.0.236/trunk@41167 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 22:09:42 +00:00
dougt%netscape.com
b83a028e86 duh.
git-svn-id: svn://10.0.0.236/trunk@40449 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 18:18:09 +00:00
dougt%netscape.com
0e3652a9a5 fix for bug: 10260
removed warning in nsIFileStream.cpp


git-svn-id: svn://10.0.0.236/trunk@40445 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 17:56:01 +00:00
beard%netscape.com
29879dc3db explicitly include <limits.h> for ULONG_MAX
git-svn-id: svn://10.0.0.236/trunk@39820 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 02:04:20 +00:00
racham%netscape.com
2100995ef9 Removing check for mpath in Recursive copy routine
git-svn-id: svn://10.0.0.236/trunk@38426 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-06 22:41:42 +00:00
racham%netscape.com
f8eb4fa44c Adding RecursiveCopy interface
git-svn-id: svn://10.0.0.236/trunk@38347 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-05 01:39:42 +00:00
ducarroz%netscape.com
ee0ad1d392 fix for bug 8029. ResolveAlias should not set the nsFileSpe's internal error mError if the file doesn't exist which is a legal state during the creation of an nsFileSpec object.
git-svn-id: svn://10.0.0.236/trunk@35318 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:19:23 +00:00
mcmullen%netscape.com
dee7faf9fb Alias resolution now happens almost any time a spec is created from a non-spec. Needed to make things work properly.
git-svn-id: svn://10.0.0.236/trunk@33465 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 01:28:52 +00:00
ducarroz%netscape.com
db9b4787ed fix for bug 7329. Deleteting a file that doesn't exist should not invalidate the nsFileSpec.
git-svn-id: svn://10.0.0.236/trunk@33250 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-29 21:27:16 +00:00
mcmullen%netscape.com
3ac0828129 Fix nsFileSpec to take native paths in constructors and assignment operators. Fix += to work with relative paths on Macintosh. Remove dependency of nsFileSpec on streams (so that dp can move nsFileSpec).
git-svn-id: svn://10.0.0.236/trunk@30800 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 01:18:23 +00:00
mcmullen%netscape.com
d0e8dc5f6e Fixed two small problems in Macintosh-only parts of the code.
git-svn-id: svn://10.0.0.236/trunk@29335 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-27 02:12:22 +00:00
mcmullen%netscape.com
7466c2717c Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140.
git-svn-id: svn://10.0.0.236/trunk@29215 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-26 19:05:00 +00:00
mcmullen%netscape.com
cc68d55c80 An "oops" correction in the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@27517 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 02:17:41 +00:00
mcmullen%netscape.com
1a5c33acc8 Support unix paths .. and . in the path conversion routine.
git-svn-id: svn://10.0.0.236/trunk@27496 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-15 01:06:55 +00:00
dougt%netscape.com
61ba04689f Now adjusting the nsFileSpec after a Move().
Also fixing a bug with Rename().  Now it should successfully take
partial pathnames on Unix and Windows.


git-svn-id: svn://10.0.0.236/trunk@24612 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-21 06:22:45 +00:00
mcmullen%netscape.com
a2a3982ee7 Bugs #3997, 3934
git-svn-id: svn://10.0.0.236/trunk@24495 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 23:09:39 +00:00
mcmullen%netscape.com
0e8563520b Fixes for bugs #3779,#2784. Member initialization of nsFileURL for windows compiler, escaping of url when made from path or spec, add file:// on macintosh when making a url from a spec. [bugs introduced when, for dp, I changed nsFilePath not to escape]. a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@24214 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-16 19:12:51 +00:00
mcmullen%netscape.com
de8fc99c4f Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable)
git-svn-id: svn://10.0.0.236/trunk@24058 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 06:38:57 +00:00
mcmullen%netscape.com
bdbf667fac Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null.
git-svn-id: svn://10.0.0.236/trunk@23564 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-10 21:02:58 +00:00
mcmullen%netscape.com
9e4dad31a3 Fix seek again so it resets eof. Allow ns*FileStream stack-based classes to be closed explicitly. Fix refcounting. Remove "close on destroy" kludge.
git-svn-id: svn://10.0.0.236/trunk@22383 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-28 01:36:48 +00:00
dougt%netscape.com
451b4db4af Merging branch BASE_19_FEB_99 to tip. These are extensive changes
to nsFileSpec and and nsFileStream.  See dougt@netscape.com or
John McMullen for futher information.


git-svn-id: svn://10.0.0.236/trunk@21977 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-25 20:49:47 +00:00
beard%netscape.com
c2c951e7f8 Fixed += operator, which would only work if you had a file or folder called "G'day" in the input directory.
git-svn-id: svn://10.0.0.236/trunk@20479 18797224-902f-48f8-a5cc-f745e15eee43
1999-02-12 00:48:35 +00:00
waterson%netscape.com
c3e5920240 Got Win32-specific stuff up and running. This caused a bit of code-juggling in the Unix and Mac implementations. a=mcmullen.
git-svn-id: svn://10.0.0.236/trunk@18654 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-26 23:49:33 +00:00
mcmullen%netscape.com
67a2f24b86 Added a directory iterator class. Added canonification and recursive directory creation, and some other handy methods. Eventual goal: replace xp_file.h entirely.
git-svn-id: svn://10.0.0.236/trunk@17274 18797224-902f-48f8-a5cc-f745e15eee43
1999-01-06 23:38:21 +00:00