Commit Graph
54 Commits
Author SHA1 Message Date
sfraser@netscape.com 98f4ac7894 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. 1999-10-11 21:19:06 +00:00
cls@seawood.org 76cfdf5e4f Reverting changes accidentally checked in 1999-09-15 05:28:31 +00:00
cls@seawood.org 24501f955c Add -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 as appropriate with __STRICT_ANSI__ defined in <prinet.h> 1999-09-13 05:09:53 +00:00
dveditz@netscape.com 15d3dc1501 hoping this fixes dougt's bustage 1999-09-10 20:58:46 +00:00
dougt@netscape.com 34b2b3fc5f changing GetDiskSpaceAvailable to return a signed 64 bit value 1999-09-10 20:03:56 +00:00
dougt@netscape.com b9810251c8 fixing var name 1999-09-09 19:37:29 +00:00
dougt@netscape.com 9adbcd8446 nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
thanks to Chet Murphy <cmurphy@modelworks.com> for the windows code!
1999-09-09 19:20:35 +00:00
driehuis@playbeing.org 924d61d238 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.
1999-09-05 00:49:01 +00:00
shaver@netscape.com aada0d9fec add IsChildOf, and dougt's relative-path-handling diff 1999-09-03 23:44:59 +00:00
rjc@netscape.com 2c22f89170 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. 1999-08-30 11:40:29 +00:00
pavlov@netscape.com 0a6c875dc5 isHidden was returning backwards results 1999-08-24 18:32:06 +00:00
briano@netscape.com 91194c6553 Fix for SCO OpenServer. 1999-07-31 19:33:36 +00:00
sspitzer@netscape.com c572ed67f0 make mPath canonical after resolving the symlink. a=mcafee. 1999-07-29 20:14:42 +00:00
sspitzer@netscape.com 10dfd94715 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. 1999-07-29 04:31:04 +00:00
dougt@netscape.com 2676ba3bb6 Fix for bug 10177 and 10041. 1999-07-26 22:09:42 +00:00
briano@netscape.com 3f3c2cbf6c Fix for NTO, which uses statvfs. 1999-07-22 01:31:43 +00:00
briano@netscape.com b5c09752c6 QNX-specific hack to deal with their funky statfs() and struct statfs, and to define realpath. 1999-07-21 23:15:15 +00:00
dougt@netscape.com 1860049c71 fix for bug: 10260
removed warning in nsIFileStream.cpp
1999-07-21 17:56:01 +00:00
briano@netscape.com bee9fc8af3 Define MAXPATHLEN to be 1024 if it hasn't already been defined. Fix for SCO. a=cyeh. 1999-07-12 22:36:24 +00:00
racham@netscape.com a96c529c7f Adding RecursiveCopy interface 1999-07-05 01:39:42 +00:00
briano@netscape.com 091f8b0588 Fix for AIX, Solaris, OSF/1, and probably others. 1999-05-08 06:24:27 +00:00
mcmullen@netscape.com c3ba384e07 Fix an error in the previous checkin. 1999-05-03 23:14:28 +00:00
mcmullen@netscape.com b06bf31d66 Check for a null path before calling stat() and friends (bug #5576). a=chofmann. 1999-05-03 20:29:01 +00:00
mcmullen@netscape.com dac1037c11 Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140. 1999-04-26 19:05:00 +00:00
mcmullen@netscape.com e8819f27b2 Oops. 1999-04-20 19:31:11 +00:00
mcmullen@netscape.com d9544d4571 Correct a problem my last change to GetParent() introduced. 1999-04-20 19:09:22 +00:00
mcmullen@netscape.com 0523a923a8 Fixed GetParent() on windows and unix (was incorrect for directories whose paths end in a separator). 1999-04-19 22:07:42 +00:00
briano@netscape.com 78f4662c51 Cleaned up the statfs mess at the beginning to make use of configure's power. 1999-04-10 01:13:02 +00:00
mcmullen@netscape.com c1e00d810d memset a buffer to 0, to avoid Solaris UMR diagnostics. 1999-04-06 20:10:50 +00:00
mcafee@netscape.com a429a39f4f Simplifying SCO case. 1999-04-01 05:16:32 +00:00
mcafee@netscape.com 8e1cf764aa Adding support for NTO. 1999-04-01 05:06:34 +00:00
mcafee@netscape.com 0d4aaed14e Simplifying ifdef logic in preparation for jump to hyperspace (autoconf) 1999-04-01 05:02:32 +00:00
pavlov@pavlov.net ecf276c69d add a cast to fix build problems on the ports tinderboxes. 1999-03-21 15:42:44 +00:00
dougt@netscape.com 2b5b1345b8 Fixing unix breakage. 1999-03-21 06:57:56 +00:00
dougt@netscape.com 2c7f65f10a Now adjusting the nsFileSpec after a Move().
Also fixing a bug with Rename().  Now it should successfully take
partial pathnames on Unix and Windows.
1999-03-21 06:22:45 +00:00
alecf@netscape.com f115e08f16 oops, back out my old patch - caused more harm than good 1999-03-20 02:41:27 +00:00
alecf@netscape.com e739d14723 there is no header file on unix that actually includes this path. wierd. 1999-03-20 02:34:31 +00:00
mcmullen@netscape.com b9bfbb69f3 Fix unix bustage. 1999-03-20 00:13:08 +00:00
mcmullen@netscape.com a9b9bd1efc Bugs #3997, 3934 1999-03-19 23:09:39 +00:00
mcmullen@netscape.com a925bce5fd Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable) 1999-03-13 06:38:57 +00:00
mcmullen@netscape.com 615081d918 Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null. 1999-03-10 21:02:58 +00:00
mcmullen@netscape.com b14b466ad4 Fix a unix warning 1999-03-05 23:00:57 +00:00
mcmullen@netscape.com 9084fa1f7e Fix unix build errors 1999-02-28 02:17:55 +00:00
mcmullen@netscape.com ca0a6d1c26 Fix seek again so it resets eof. Allow ns*FileStream stack-based classes to be closed explicitly. Fix refcounting. Remove "close on destroy" kludge. 1999-02-28 01:36:48 +00:00
mcafee@netscape.com c7bccc4efa Switching false/true over to PR_FALSE/PR_TRUE 1999-02-26 19:47:48 +00:00
alecf@netscape.com 537c3a08bf fix -pedantic bustage - Delete isn't const, so re-cast "this" 1999-02-26 17:56:44 +00:00
dougt@netscape.com a08d84c4ba 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.
1999-02-25 20:49:47 +00:00
donm@netscape.com 745f997314 fixing includes for solaris. -donm 1999-01-07 21:03:42 +00:00
mcmullen@netscape.com 180e117493 Added a directory iterator class. Added canonification and recursive directory creation, and some other handy methods. Eventual goal: replace xp_file.h entirely. 1999-01-06 23:38:21 +00:00
mcmullen@netscape.com f352cb8ab6 Some more tweaks to suit various compilers and platforms. 1998-12-11 01:42:04 +00:00