65 Commits

Author SHA1 Message Date
dveditz%netscape.com
862b98e6df fixing bustage
git-svn-id: svn://10.0.0.236/trunk@92661 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 05:17:36 +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
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
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
syd%netscape.com
d0df16da36 Set sane directory permissions on creation. Partial fix for 43091. r=dougt
git-svn-id: svn://10.0.0.236/trunk@75608 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 22:13:10 +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
briano%netscape.com
cbd2a79d4f Fix for QNX-specific build bustage. QNX doesn't provide a prototype for truncate().
git-svn-id: svn://10.0.0.236/trunk@55012 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 03:17:04 +00:00
fur%netscape.com
4c203ed17c Took out unnecessary const, which will hopefully unbusticate unix build
git-svn-id: svn://10.0.0.236/trunk@53953 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 02:25:04 +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
cls%seawood.org
696bbb41fa Reverting changes accidentally checked in
git-svn-id: svn://10.0.0.236/trunk@47537 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:28:31 +00:00
cls%seawood.org
46df8144ee Add -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 as appropriate with __STRICT_ANSI__ defined in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47097 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 05:09:53 +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
6c0c6d1084 fixing var name
git-svn-id: svn://10.0.0.236/trunk@46601 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:37:29 +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
driehuis%playbeing.org
39e631595e Unbreak the BSD/OS build. sys/mount.h drags in net/radix.h, which happens
to define a symbol called Free. Sigh. Clean up after net/radix.h.


git-svn-id: svn://10.0.0.236/trunk@46038 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-05 00:49:01 +00:00
shaver%netscape.com
aff923d924 add IsChildOf, and dougt's relative-path-handling diff
git-svn-id: svn://10.0.0.236/trunk@45975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 23:44:59 +00:00
rjc%netscape.com
a744f7636b For Unix, don't return "." ".." or any file/directory that begins with a "."! Perhaps we should really end up having a preference that determines whether to return these "hidden" items or not.
git-svn-id: svn://10.0.0.236/trunk@45146 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 11:40:29 +00:00
pavlov%netscape.com
30ec336bcb isHidden was returning backwards results
git-svn-id: svn://10.0.0.236/trunk@44309 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 18:32:06 +00:00
briano%netscape.com
c3620d71f5 Fix for SCO OpenServer.
git-svn-id: svn://10.0.0.236/trunk@41731 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 19:33:36 +00:00
sspitzer%netscape.com
7442fe6354 make mPath canonical after resolving the symlink. a=mcafee.
git-svn-id: svn://10.0.0.236/trunk@41555 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 20:14:42 +00:00
sspitzer%netscape.com
851457b19f fix for #10697. ResolveSymlink() messes with mCurrent, so we need to restore it. Also, make ResolveSymlink() return an absolute file, instead of a relative one.
git-svn-id: svn://10.0.0.236/trunk@41541 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-29 04:31:04 +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
briano%netscape.com
1a2743b4e1 Fix for NTO, which uses statvfs.
git-svn-id: svn://10.0.0.236/trunk@40575 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 01:31:43 +00:00
briano%netscape.com
d7fd76ef30 QNX-specific hack to deal with their funky statfs() and struct statfs, and to define realpath.
git-svn-id: svn://10.0.0.236/trunk@40538 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 23:15:15 +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
briano%netscape.com
dbf34afb61 Define MAXPATHLEN to be 1024 if it hasn't already been defined. Fix for SCO. a=cyeh.
git-svn-id: svn://10.0.0.236/trunk@39019 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-12 22:36:24 +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
briano%netscape.com
607f6ae160 Fix for AIX, Solaris, OSF/1, and probably others.
git-svn-id: svn://10.0.0.236/trunk@30810 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 06:24:27 +00:00
mcmullen%netscape.com
5f7276e7bd Fix an error in the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@30008 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 23:14:28 +00:00
mcmullen%netscape.com
41ee8ce9bd Check for a null path before calling stat() and friends (bug #5576). a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@29975 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-03 20:29:01 +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
c0a796a5c4 Oops.
git-svn-id: svn://10.0.0.236/trunk@28290 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:31:11 +00:00
mcmullen%netscape.com
7a5c8880e7 Correct a problem my last change to GetParent() introduced.
git-svn-id: svn://10.0.0.236/trunk@28281 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-20 19:09:22 +00:00
mcmullen%netscape.com
0a56e0d57d Fixed GetParent() on windows and unix (was incorrect for directories whose paths end in a separator).
git-svn-id: svn://10.0.0.236/trunk@28107 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-19 22:07:42 +00:00
briano%netscape.com
186131f1cb Cleaned up the statfs mess at the beginning to make use of configure's power.
git-svn-id: svn://10.0.0.236/trunk@26936 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-10 01:13:02 +00:00
mcmullen%netscape.com
a05057c744 memset a buffer to 0, to avoid Solaris UMR diagnostics.
git-svn-id: svn://10.0.0.236/trunk@26510 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 20:10:50 +00:00
mcafee%netscape.com
9760599d9d Simplifying SCO case.
git-svn-id: svn://10.0.0.236/trunk@25820 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 05:16:32 +00:00
mcafee%netscape.com
395fe8ac1e Adding support for NTO.
git-svn-id: svn://10.0.0.236/trunk@25811 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 05:06:34 +00:00
mcafee%netscape.com
53b5e86a59 Simplifying ifdef logic in preparation for jump to hyperspace (autoconf)
git-svn-id: svn://10.0.0.236/trunk@25809 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-01 05:02:32 +00:00
pavlov%pavlov.net
7008c2edf9 add a cast to fix build problems on the ports tinderboxes.
git-svn-id: svn://10.0.0.236/trunk@24617 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-21 15:42:44 +00:00
dougt%netscape.com
6c1d502ade Fixing unix breakage.
git-svn-id: svn://10.0.0.236/trunk@24614 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-21 06:57:56 +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
alecf%netscape.com
f26593c07d oops, back out my old patch - caused more harm than good
git-svn-id: svn://10.0.0.236/trunk@24569 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 02:41:27 +00:00
alecf%netscape.com
e15a6246cb there is no header file on unix that actually includes this path. wierd.
git-svn-id: svn://10.0.0.236/trunk@24566 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 02:34:31 +00:00
mcmullen%netscape.com
76a28accfe Fix unix bustage.
git-svn-id: svn://10.0.0.236/trunk@24505 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 00:13:08 +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