88 Commits

Author SHA1 Message Date
dougt%netscape.com
1569da98b1 backing out. not part of 122523 bug fix
git-svn-id: svn://10.0.0.236/trunk@113818 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:42:02 +00:00
dougt%netscape.com
9cf73ec70e Optimization which gathers stat() info when opening a file. bug 122523, r=dp@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113817 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 20:40:40 +00:00
dougt%netscape.com
bb7377d5e8 backing out my optimization
git-svn-id: svn://10.0.0.236/trunk@113502 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 03:20:01 +00:00
darin%netscape.com
7814a2d020 should fix btek bustage
git-svn-id: svn://10.0.0.236/trunk@113501 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:49:52 +00:00
dougt%netscape.com
154c1a0782 fixes 122892. Optimization Clone of nsLocalFile. Instead of reiniting object, we use default c++ copy construction. r=ccarlen@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113489 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:25:57 +00:00
seawood%netscape.com
8eaaa40a4c S_ISSOCK isn't defined on BeOS.
git-svn-id: svn://10.0.0.236/trunk@113026 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 07:02:02 +00:00
pete%alphanumerica.com
e39572043e movind implementation of FilleStatCache into nsLocalFileUnix.cpp
where other calls to lstat work fine

This is an attempt to fix bustage on some linux platfroms

--pete


git-svn-id: svn://10.0.0.236/trunk@112996 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:02:18 +00:00
pete%alphanumerica.com
c7642c235b b=107641, r=blizzard, sr=brendan
fix: CopyTo won't copy read-only files or broken symlinks

Thanks to garths@oeone.com for help on this one.

--pete


git-svn-id: svn://10.0.0.236/trunk@112993 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 14:31:25 +00:00
darin%netscape.com
59c63dba70 these files no longer need to include nsEscape.h
git-svn-id: svn://10.0.0.236/trunk@111998 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 01:21:40 +00:00
alecf%netscape.com
f6d3d22234 final fix for bug 100212 - removal final dependency on necko from xpcom by removing nsIFile.URL r=dougt, sr=darin Yay!
git-svn-id: svn://10.0.0.236/trunk@111722 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 20:03:46 +00:00
tingley%sundell.net
c0aa10d601 bug 100132: clean up over-zealous error masking in
nsRDFXMLDataSource::BlockingParse(), and bring nsLocalFileUnix's
OpenNSPRFileDesc() return values in line with other platforms.
r=waterson, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@111039 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-22 19:08:48 +00:00
dougt%netscape.com
8ca28ff027 more bustage
git-svn-id: svn://10.0.0.236/trunk@110762 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 01:03:10 +00:00
dougt%netscape.com
c01e94cad7 nsIComponentManager API Changes (bug 98553)
a) create a new nsIComponentManager with only four functions on it:
CreateInstance CreateInstanceByContractID GetClassInfo GetClassInfoByContractID.

b) rename the old nsIComponentManager to nsIComponentManagerObsolete.

c) fixes callers which use to access the nsIComponentManager for component
registration functionality.  These callers will temporary use the
nsIComponentManagerObsolete interface.

d) Create a new API NS_GetComponentManager() which mirrors the
NS_GetServiceManager()

e) Perserves the old NS_GetGlobalComponentManager().  Note the cast usage.

r/sr = rpotts@netscape.com  alecf@netscape.com  brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@110748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 00:12:41 +00:00
dbaron%fas.harvard.edu
52c1373494 Fix inefficient Assign pattern to use Append instead. b=113188 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@110100 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-08 22:51:15 +00:00
pete%alphanumerica.com
14973255e8 b=112515, r=douft, sr=jst
remove spawn method from nsIFile.

/**
    Warning nsIFile API change
 */

--pete


git-svn-id: svn://10.0.0.236/trunk@109584 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:27:43 +00:00
pete%alphanumerica.com
2921cd1a40 b=92569, r=dougt, sr=brendan
nsLocalFileUnix cleanup part two.
nothing but white space and comment cleanup

--pete


git-svn-id: svn://10.0.0.236/trunk@109149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:10 +00:00
pete%alphanumerica.com
727438403c b=92569, r=dougt, sr=brendan
nsLocalFileUnix general clean up

--pete


git-svn-id: svn://10.0.0.236/trunk@109136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 15:12:14 +00:00
dbaron%fas.harvard.edu
c0b306795b Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@109114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:22:57 +00:00
timeless%mac.com
535b6f20f2 Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 08:05:05 +00:00
dp%netscape.com
0a03dd13ac Printing the dll name in the timeline r=sgehani, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108388 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:23:48 +00:00
locka%iol.ie
acf074d45d Fix for nsILocalFIle::GetURL returning malformed URLs on Unix. b=110299 r=blizzard@mozilla.org sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108294 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 12:07:38 +00:00
pete%alphanumerica.com
7b12a0334d b=108925, r=shaver, sr=jst
patch to remove symlinked dirs when recursive flag is set to false

--pete


git-svn-id: svn://10.0.0.236/trunk@108007 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:42:59 +00:00
pete%alphanumerica.com
6ca4d43048 b=53596, r=dougt, sr=brendan
nsLocalFileUnix fix for ::GetLeafName not working on relative paths

--pete


git-svn-id: svn://10.0.0.236/trunk@107859 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 00:15:28 +00:00
dbaron%fas.harvard.edu
52bea38360 Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@107556 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:12:20 +00:00
pete%alphanumerica.com
3c8b2b33e3 b=92329, r=ccarlen, sr=brendan
Fix for nsLocalFileUnix ::GetTarget doesn't handle relative symlinks


--pete


git-svn-id: svn://10.0.0.236/trunk@107405 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:42:00 +00:00
pete%alphanumerica.com
3c4492f3e0 b=107823, r=ccarlen, sr=brendan
--pete


git-svn-id: svn://10.0.0.236/trunk@106886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:11:15 +00:00
dougt%netscape.com
8e551369e9 ugh. I did not mean to commit these changes. Backing out
git-svn-id: svn://10.0.0.236/trunk@106720 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:19:32 +00:00
dougt%netscape.com
3e064cf384 Moving nsISimpleEnumeratory interface into a seperate idl file. bug 99136. r=alecf@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106715 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:03:05 +00:00
jaggernaut%netscape.com
238eb280fb Bug 53057: [API] turn off implicit |CharT*| conversion operators for nsCString, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106157 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-24 09:06:49 +00:00
pete%alphanumerica.com
e1022dec4d Fix for nsLocalFile::CopyTo not fully implemented on Unix.
r=ccarlen, sr=brendan, b=53474

--pete


git-svn-id: svn://10.0.0.236/trunk@100260 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 03:42:04 +00:00
pete%alphanumerica.com
f6519c6a83 Fix for broken AppendRelativePath on unix. r=jag, sr=brendan b=55406.
Note, this method will be going away soon.

--pete


git-svn-id: svn://10.0.0.236/trunk@100259 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-03 03:26:26 +00:00
pete%alphanumerica.com
63991fa7da Fix for nsIFile delete conflicts with JS reserved name b=37406, r=dougt, sr=jst
Renamed all Delete methods to Remove.

--pete


git-svn-id: svn://10.0.0.236/trunk@99803 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-24 18:38:25 +00:00
dbaron%fas.harvard.edu
9359000a40 Header include dependency cleanup. b=64023 r=jag rs=brendan
git-svn-id: svn://10.0.0.236/trunk@99299 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-16 02:40:48 +00:00
kandrot%netscape.com
b3fc91a88e Adding default string in Normalize to allow Purify to run under Solaris. r=kandrot@netscape.com, sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@98930 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-09 23:42:00 +00:00
mkaply%us.ibm.com
7f39c4dc3d Beos build bustage - 82205
git-svn-id: svn://10.0.0.236/trunk@98383 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 20:26:40 +00:00
pete%alphanumerica.com
58f7048f01 Fix for nsIFile IsSpecial. r=dougt sr=jst b=82205
Checking this in for tenthumbs.

--pete


git-svn-id: svn://10.0.0.236/trunk@98364 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 13:30:32 +00:00
pete%alphanumerica.com
62c2417381 Fix for nsIFile GetTarget method.
r=dougt sr=jst b=88032

--pete


git-svn-id: svn://10.0.0.236/trunk@98292 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 17:43:59 +00:00
scc%mozilla.org
7ab978668d fixing ports bustage
git-svn-id: svn://10.0.0.236/trunk@98291 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 17:39:25 +00:00
pete%alphanumerica.com
5491b3db14 Fix for broken nsIFile method IsSymlink
b=81927 r=blizzard sr=jst

--pete


git-svn-id: svn://10.0.0.236/trunk@98178 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-28 12:03:47 +00:00
pete%alphanumerica.com
baacdd027b Fix for mPath string corruption when nsIFile parent is called and the
file is a top level dir such as /tmp

b=84738 r=dougt sr=jst

--pete


git-svn-id: svn://10.0.0.236/trunk@98058 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-27 12:29:45 +00:00
dougt%netscape.com
5c5c39e4be Landing url parsing branch. 73845. r=alecf@netscape.com, sr=darin@netscape.com, a=blizzard@rednat.com.
This fixes many crashes caused by illegal uses of the nsStdURL.
This also allows a plugable protocol to provide their own url parser.


git-svn-id: svn://10.0.0.236/trunk@97696 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-21 22:02:47 +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
colin%theblakes.com
fef97906b9 Check for ENXIO as well as EXDEV as expected failure from rename.
b=70915 r/sr=brendan


git-svn-id: svn://10.0.0.236/trunk@95631 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:15:33 +00:00
dougt%netscape.com
c650c9da0b won't compile without long long type. Using LL_ macros instead. r=thorgal@amiga.com.pl, sr=brendan@mozilla.org, b=75815
git-svn-id: svn://10.0.0.236/trunk@93111 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-26 05:28:31 +00:00
dveditz%netscape.com
7c7c380c70 bug 71393, miscalculates free space on large drives. Contributed by thorgal@amiga.com.pl and bzbarsky@mit.edu, r=ksosez@softhome.net/dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@92654 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 04:30:26 +00:00
dveditz%netscape.com
932338a552 bug 42704 missing initialization in nsLocalFile::GetFileSize, r=dougt/sr=mscott
git-svn-id: svn://10.0.0.236/trunk@86390 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 00:14:33 +00:00
mscott%netscape.com
d36ff4d4a0 Bug #63346 --> add methods for reveal and launch to a local file. Stub implementions for OS/2 and Unix right now.
r=conrad
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@85736 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-30 05:02:48 +00:00
cls%seawood.org
7b0df0ad65 Fix the BeOS implementation of Normalize().
Thanks to Hiromasa Kato <hiro@eng.iastate.edu> for the patch.
Bug #53014 r=cls@seawood.org sr=scc@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@82952 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-28 01:43:09 +00:00
colin%theblakes.com
031f48020c OpenVMS specific fix for defeciency in stat.
b=60199 r=dougt a=waterson


git-svn-id: svn://10.0.0.236/trunk@82898 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-27 11:19:41 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00