Commit Graph

547 Commits

Author SHA1 Message Date
sdagley%netscape.com
8e7fc7d323 nsLocalFileMac work. Added GetFileSizeWithResFork() method for callers that need to account for the total size of a Mac file (GetFileSize() only returns the size of the data fork). r=pinkerton 2000-02-04 07:17:36 +00:00
sdagley%netscape.com
9419bc40eb For now nsLocalFileMac::GetFileSize should only return the size of the file's data fork to be compatible with other places in the code that make that assumption. r=saari 2000-02-04 05:26:00 +00:00
sgehani%netscape.com
bdb0774998 Fix for XPInstall horkage on the Mac. b = 26327 r = dougt a = leaf 2000-02-03 21:06:35 +00:00
sfraser%netscape.com
d4887789f0 Test that the filespec has been initialized, before using it to delete entire directory trees. Blocker. r=Ben_Goodger, a=leaf 2000-02-03 20:49:40 +00:00
sdagley%netscape.com
6e4b26e6ea Fixing bustages in nsLocalFileMac - fixes #25629, #26106 and #25277. r=pinkerton 2000-02-01 23:42:28 +00:00
dougt%netscape.com
bdecfd4757 bug fix 25626. r=tor@cs.brown.edu 2000-01-31 23:09:14 +00:00
dougt%netscape.com
f20a6b9f24 Since we are only getting information about this file, we should no pass the
GENERIC_READ flag.
2000-01-31 23:07:35 +00:00
dougt%netscape.com
d50e282b56 Initializing return values before they are used. 2000-01-31 23:06:04 +00:00
sdagley%netscape.com
b3c9985980 Fix mem leak in My_CloseDir() (#25614). r=saari 2000-01-31 22:41:05 +00:00
dougt%netscape.com
cff32d57ca Changing IsContainedIn to contains. Reverting to prior version. 2000-01-29 00:00:21 +00:00
dougt%netscape.com
60f34b55dc Renaming IsContainedIn to contains. Fixing implementation on unix. 2000-01-28 23:53:59 +00:00
dougt%netscape.com
4e572a8752 Changing CID format. r=dveditz 2000-01-28 23:38:20 +00:00
dougt%netscape.com
d9a6754c4b Fixing dll exports for NS_NewLocalFile()
r=dveditz
2000-01-28 23:35:55 +00:00
sspitzer%netscape.com
444c856c36 fix build breakage on platforms with out ENOLINK
r=Pascal Hofstee <daeron@shadowmere.student.utwente.nl> and r=leaf
2000-01-28 23:09:58 +00:00
dougt%netscape.com
91f877240e Removing WIN API which requires windows 98 or better. Fixes 25101, and
others.  I erronously checked in a fix which still linked with this non-win95
API.  So, now I am just defaulting to standard GetFileAttributes() and doing
away with the EX version.
2000-01-28 06:17:06 +00:00
sfraser%netscape.com
27e45a31de More fixing for startup crashes and other badness (bugs 25366 and 24312). Fix off by one buffer write. r=sdagley 2000-01-28 01:50:05 +00:00
pollmann%netscape.com
de2fb540ba Fix VC 5.0 build bustage r=dougt, harishd 2000-01-28 00:41:06 +00:00
sfraser%netscape.com
8c541c41a0 Fix for 24312 and other unpredictable crashers on startup. r=sdagley 2000-01-27 23:28:49 +00:00
sgehani%netscape.com
8afb6d4f9e Fix for XPInstall horkage on the Mac. b = 25288 r = sdagley a = mcafee (ssu will be watching the tree in my absence.) 2000-01-27 23:18:06 +00:00
putterman%netscape.com
14753a4220 Fixes 25272 and most likely 25274. r=dougt. 2000-01-27 20:06:23 +00:00
norris%netscape.com
99cce9c9ea Fix crash while loading jar: URI.
r=dougt
2000-01-27 15:58:23 +00:00
sdagley%netscape.com
7053f1d5f7 Residual work on #17949 - Need to make sure that path passed to Mac impl of nsLocalFile::InitWithPath doesn't end in a :. r=davidm 2000-01-27 08:11:19 +00:00
dougt%netscape.com
96194b86a8 All of these are broken. Alway double check submission/suggestions. 2000-01-27 04:35:44 +00:00
dougt%netscape.com
e61447cd08 Removing Windows95 compiler #ifdef in place of a runtime check
Fixing bug 25152 submitted by kin@netscape.com.

windows only changes.
2000-01-27 01:52:02 +00:00
dougt%netscape.com
685b99e170 xpcom/io changes,
Fixes bug 25028.
Added new dirty flag so that resolutions can be purged.
checked in VC5 fix from pollmann and jband
checked in fix from colin@theblakes.com for VMS.

r= valeski, pollmann, colin@theblakes
2000-01-26 21:55:13 +00:00
beard%netscape.com
19afa18999 bustage fix. r=dougt 2000-01-25 22:35:47 +00:00
mscott%netscape.com
52e7ef4deb filesize bustage. dougt's fix, r=shaver@mozilla.org 2000-01-25 21:41:00 +00:00
ssu%netscape.com
cbeb05e698 Fixing up directory service so that the current process will be looked up
before being calculated.

Changed this GetProcessDirectory to return an allocated nsIFile.

Making sure that object stored in the nsHashtable are not muteable.

dougt's changes.  r=ssu.  a=granrose.
2000-01-25 20:43:47 +00:00
dougt%netscape.com
0b0346079c Landing nsIFile. 2000-01-24 21:28:28 +00:00
warren%netscape.com
5439dac668 Fix for bugs 24008 and 23849 -- needed to keep mSegmentEnd and mWriteCursor in sync for out-of-memory case. a=chofmann r=fur,gordon 2000-01-21 23:16:35 +00:00
bienvenu%netscape.com
b4ed4bbdc9 fix crash on win98 with funny file names, r=dougt 23578 2000-01-19 07:29:33 +00:00
waterson%netscape.com
dde56e71e8 Make ResolveSymLink() fail silently if target was not a shortcut. r=lumpy 2000-01-19 00:35:01 +00:00
pinkerton%netscape.com
153998843d fix the case where the char stream impl reallocated its buffer to accomodate data > 256 bytes. mLength wasn't set (at all) so the memcpy() copied nothing into the new buffer. 2000-01-13 02:00:57 +00:00
jdunn%netscape.com
370313154b Fix slamm's warnings of shadowing previous variables.
r= rhp@netscape.com
r= warren@netscape.com
r= rpotts@netscape.com
2000-01-12 00:54:10 +00:00
duncan%be.com
be3945ad99 Fix BeOS build by making changing nsResProtocolHandler.cpp like
Windows and Mac, and fix a couple nsSpecialSystemDirectory bugs.
All the changes are BeOS specific (i.e. wrapped in XP_BEOS or
only used by code wrapped in XP_BEOS).
r=mcafee
2000-01-08 09:09:02 +00:00
edburns%acm.org
13be6d7ebf I know it's unorthodox to do a top level checkin like this, but I've got so many files
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got

r=dp

on this checkin.

Here are the touched files:

M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp

The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.

The new signature is

extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);

I filed a bug for this problem:

b=23157

The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.

I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
2000-01-06 01:05:13 +00:00
warren%netscape.com
e07863e48c Added OnClose method to nsIPipeObserver (bug#23080) 2000-01-05 05:07:46 +00:00
sdagley%netscape.com
a3cedcb874 Fix build bustage - warren obsoleted nsPipe2.h but didn't update the manifest 2000-01-05 04:57:12 +00:00
warren%netscape.com
6fee6622fd Removed nsPipe2.h -- obsolete. 2000-01-05 03:56:47 +00:00
dougt%netscape.com
fec1d697e4 Adding include of prlink.h to nsILocalFile.idl.
remove a bad semicolon in nsLocalFileWin

above not in build.

Adding an explict include of nsCRT to nsPipe2.cpp

this is in the build, but is trival.
1999-12-22 04:11:13 +00:00
dougt%netscape.com
b5b2844b63 implement load().
not part of build.
1999-12-22 03:01:08 +00:00
dougt%netscape.com
0ac3ce03e5 adding a load() command which will allow loading of libraries.
not part of build
1999-12-22 02:59:01 +00:00
dougt%netscape.com
95f50f9301 1. First cut of a Special System Directory replacement (nsDirectoryService).
It is a nsIProperty.

2. Updates to the nsIFile and nsILocalFile interfaces based on conversations
   with warren. (thanks)

3. Updated windows mac and unix implementations based on interface changes.
   Mac and windows changes need to be reviewed.


                          Not part of build.
1999-12-22 01:56:45 +00:00
dougt%netscape.com
8b081cae4b removing nsIFile stuff from the windows makefile for now. a=sdagley. 1999-12-22 01:50:30 +00:00
valeski%netscape.com
f182a466ac a=chofmann, 21783. inverted parameter validation checks have been corrected. 1999-12-21 03:00:54 +00:00
valeski%netscape.com
7eda757e29 21723. a=chofmann, r=warren. earlier this week segment size and max size parameters were exposed to higher level consumers of necko apis. this change warns a user if they try to create a pipe w/ zero len segs and max sizes. pipes are useless without sizes 1999-12-14 22:08:40 +00:00
bienvenu%netscape.com
5b31932b02 fix file truncation on windows, was breaking pop filters, r=dougt, a=chofmann 20634 1999-12-10 23:33:30 +00:00
sdagley%netscape.com
d17bcebfe3 First Checked In. 1999-12-08 07:56:17 +00:00
fur%netscape.com
edbc3a53e1 Need to reset pointers within segment after realloc, since segment base
may have changed.
1999-12-08 06:28:44 +00:00
dougt%netscape.com
ac4e013485 turning on nsIFile for windows. 13320 1999-12-08 05:14:54 +00:00
norris%netscape.com
af18497222 I ran Purify and found this:
>
> [E] ABR: Array bounds read in
> nsFileSpecHelpers::UnixToNative(nsSimpleCharString&) {48 occurrences}
>     Reading 1 byte from 0x03f00b2c (1 byte at 0x03f00b2c illegal)
>     Address 0x03f00b2c is 1 byte past the end of a 268 byte block at
> 0x03f00a20
>     Address 0x03f00b2c points to a malloc'd block in heap 0x03c30000
>     Thread ID: 0x9c
>     Error location
>         nsFileSpecHelpers::UnixToNative(nsSimpleCharString&)
> [nsFileSpecWin.cpp:111]
>                     src = (char*)ioPath;
>
>                     // Convert '/' to '\'.
>              =>     while (*++src)
>                     {
>                         if (*src == '/')
>                             *src = '\\';
>         nsFileSpec::+=(char const*) [nsFileSpecWin.cpp:394]
>         nsChromeRegistry::CheckForProfileFile(nsCAutoString
> const&,nsCAutoString&) [nsChromeRegistry.cpp:1278]
>         nsChromeRegistry::LoadDataSource(nsCAutoString const&,nsIRDFDataSource
> * *,int) [nsChromeRegistry.cpp:713]
>
> nsChromeRegistry::InitializeDataSource(nsString&,nsString&,nsIRDFDataSource *
> *,int) [nsChromeRegistry.cpp:784]
>         nsChromeRegistry::ConvertChromeURL(nsIURI *)
> [nsChromeRegistry.cpp:527]
>         nsChromeProtocolHandler::NewChannel(char const*,nsIURI *,nsILoadGroup
> *,nsIInterfaceRequestor *,UINT,nsIURI *,UINT,UINT,nsIChannel * *)
> [nsChromeProtocolHandler.cpp:371]
>         nsIOService::NewChannelFromURI(char const*,nsIURI *,nsILoadGroup
> *,nsIInterfaceRequestor *,UINT,nsIURI *,UINT,UINT,nsIChannel * *)
> [nsIOService.cpp:250]
>         nsDocumentOpenInfo::Open(nsIURI *,int,char const*,nsISupports *,nsIURI
> *,nsIInputStream *,nsISupports *,nsISupports * *) [nsURILoader.cpp:168]
>         nsURILoader::OpenURIWithPostDataVia(nsIURI *,int,char
> const*,nsISupports *,nsIURI *,nsIInputStream *,nsISupports *,nsISupports *
> *,UINT) [nsURILoader.cpp:418]
>     Allocation location
>         malloc         [dbgheap.c:129]
>         PR_Malloc      [prmem.c:38]
>         nsSimpleCharString::ReallocData(UINT) [nsFileSpec.cpp:248]
>         nsSimpleCharString::CopyFrom(char const*,UINT) [nsFileSpec.cpp:167]
>         nsSimpleCharString::nsSimpleCharString(char const*)
> [nsFileSpec.cpp:60]
>         nsFileSpecHelpers::UnixToNative(nsSimpleCharString&)
> [nsFileSpecWin.cpp:104]
>         nsFileSpec::+=(char const*) [nsFileSpecWin.cpp:394]
>         nsChromeRegistry::CheckForProfileFile(nsCAutoString
> const&,nsCAutoString&) [nsChromeRegistry.cpp:1278]
>         nsChromeRegistry::LoadDataSource(nsCAutoString const&,nsIRDFDataSource
> * *,int) [nsChromeRegistry.cpp:713]
>
> nsChromeRegistry::InitializeDataSource(nsString&,nsString&,nsIRDFDataSource *
> *,int) [nsChromeRegistry.cpp:784]
>
> which is fixed by this patch.
1999-12-08 02:53:37 +00:00
dougt%netscape.com
8b94c587f9 removing MoveToFollowingLinks(). It was discussed that was not needed due
to links being broken. r=shaver

more tweeks to get symlinks working correct on windows.

not part of the build yet.
1999-12-08 02:07:38 +00:00
dougt%netscape.com
e966a61f6c 13320 more tweaking to nsIFile windows impl.
not part of build yet.
1999-12-07 23:31:25 +00:00
sdagley%netscape.com
548e71bc93 Part of #17949. nsLocalFileMac work. Not part of build yet. 1999-12-07 22:26:51 +00:00
sdagley%netscape.com
7441795597 nsStorageStream.h is needed by nkcache. Doesn't affect builds 1999-12-07 06:04:13 +00:00
fur%netscape.com
8913af32b1 Export nsStorageStream.h 1999-12-07 00:05:37 +00:00
valeski%netscape.com
8895af0d3c r=mcafee. 20677 assistance. We now have a scriptable input stream implementation and interface for js. Hurray! 1999-12-04 20:29:42 +00:00
dougt%netscape.com
0594eec67d adding some error codes which I will need. 1999-12-04 01:18:48 +00:00
dougt%netscape.com
ea9d82aefd renamed from the hated nsISomethingImpl. 1999-12-04 01:13:44 +00:00
dougt%netscape.com
66061576a3 Replaced by:
nsLocalFile.h
nsLocalFileUnix.cpp
nsLocalFileUnix.h
nsLocalFileWin.cpp
nsLocalFileWin.h
1999-12-04 01:02:45 +00:00
dougt%netscape.com
f317ac5ba4 removing nsFileUtils. 1999-12-03 00:43:35 +00:00
dougt%netscape.com
6798955ef2 Removing Dir enumerator as it will be part of nsIFile
removing nsFileUtils.
Changing the name of nsIFile children to directoryEntries
removing nsIFile trucate.
Rewrote large parts of nsIFileImplWin to use native APIs.

not part of build
1999-12-03 00:39:31 +00:00
dougt%netscape.com
f25f716d38 Fix tabs.
added enumerator.
1999-12-02 21:45:50 +00:00
dougt%netscape.com
34cd89d967 Removing init() methods as warren suggested. These now live in the new
nsILocalFile interface.
1999-12-02 07:49:57 +00:00
dougt%netscape.com
5adb115018 First cut.
These are the local file init methods for a nsIFile.

not hooked up to the build
1999-12-02 07:45:12 +00:00
sfraser%netscape.com
a23eeb70ea Additional fix to the linebreakers when munging nsStrings. r=pinkerton. 1999-12-02 05:33:50 +00:00
briano%netscape.com
8b970ca718 Fix for QNX-specific build bustage. QNX doesn't provide a prototype for truncate(). 1999-12-02 03:17:04 +00:00
dougt%netscape.com
3456b189e3 Changes to the nsIFile.idl which were discussed between shaver, brendan,
sdagley and I.  not part of the build.
1999-12-02 01:19:10 +00:00
warren%netscape.com
19acf20a26 Fix from Jud where we were dropping error code. r=warren 1999-12-02 00:58:43 +00:00
sfraser%netscape.com
6c630f8cf4 Adding nsLinebreakConverter to the build. 1999-12-01 22:23:58 +00:00
sfraser%netscape.com
2cb9042cec Export nsLinebreakConverter.h 1999-12-01 22:22:21 +00:00
sfraser%netscape.com
d931e7a044 First Checked In. 1999-12-01 22:21:30 +00:00
dp%netscape.com
edcdeb94a5 NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com 1999-11-30 23:36:32 +00:00
warren%netscape.com
2db26922a6 Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
shaver%netscape.com
24299cc8ca - Portions of nsIFile and nsIDirectoryEnumerator implementations for Unix.
- Various missing-newline-at-end-of-file fixes from Andrew Taylor
  <Andrew.Taylor@cal.montage.ca>.
- Fixed case in nsIDirectoryEnumerator.idl
- Added |normalize()|, |truncate()| and |target|, |isSpecial()| to nsIFile.idl
- Changed |isExists()| to |exists()|, |fileName| to |leafName|, |isEqual()| to
  |equals| and added |in boolean recur| to |isContainedIn()|.
- Corrected widespread misspelling of |NS_ERROR_FILE_UNRECOGNIZED_PATH|.
- Partially updated Windows code to track changes.
Partially addresses 17948, r=dougt
1999-11-29 14:55:03 +00:00
warren%netscape.com
96ec037ac6 Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
shaver%netscape.com
89607b7de2 Repair missing newlines at end of files, and remove lines of the form
#endif foo
both of which upset HPUX's compiler quite a bit.
Patch from Andrew Taylor <Andrew.Taylor@cal.montage.ca>.
1999-11-26 05:33:35 +00:00
fur%netscape.com
820e742933 In support of bug #8305 (Implement cache)
Replaced WriteStringZ()/ReadStringZ() stubs with trivial implementations.
Simplified existing code. r: none
1999-11-21 08:01:08 +00:00
fur%netscape.com
ab49175ccc Fixed indentation 1999-11-21 07:58:53 +00:00
duncan%be.com
603a7fb6b2 Clone nsFileSpec::Truncate from nsFileSpecUnix.cpp, r=shaver. 1999-11-20 17:57:42 +00:00
dougt%netscape.com
5a214050de making sure that we do not empty our segmented buffer if we did not create it
bug fix 19290.  submitted by bienvenu, r=dougt.
1999-11-19 03:01:33 +00:00
fur%netscape.com
fed3a5923b Fix build bustage, maybe. Get rid of unnecessary const 1999-11-19 02:35:02 +00:00
fur%netscape.com
dbf19a8e32 Took out unnecessary const, which will hopefully unbusticate unix build 1999-11-19 02:25:04 +00:00
fur%netscape.com
e9aa0af998 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]
1999-11-19 01:42:46 +00:00
fur%netscape.com
2a6ea13771 Quash warning 1999-11-19 01:22:30 +00:00
fur%netscape.com
7f80e52967 Quell warning 1999-11-18 06:59:28 +00:00
fur%netscape.com
f75142159d Quash warnings 1999-11-18 06:19:51 +00:00
dougt%netscape.com
3f746f503d fix for 18949. make seek do a flush to avoid corruption. 1999-11-18 05:16:42 +00:00
fur%netscape.com
c28060f30a Quell warnings 1999-11-18 03:38:32 +00:00
mcafee%netscape.com
d117e7d5b5 Switching to PRBool, un-break Solaris WS build. r=slamm 1999-11-18 03:22:47 +00:00
rhp%netscape.com
a554253a94 Fix for memory allocation off by 1 error. No bug. r: rhp (submitted by Ben Bucksch <mozilla-news@bucksch.org> 1999-11-18 02:46:52 +00:00
fur%netscape.com
32011edc40 Add storage stream and binary stream files. r: none 1999-11-16 19:14:51 +00:00
fur%netscape.com
79b25969d2 Bug #8305, r: valeski, rickg
The storage stream provides an internal buffer that
can be filled by a client using a single output
stream.  One or more independent input streams can
be created to read the data out non-destructively.
The implementation uses a segmented buffer
internally to avoid realloc'ing of large buffers.
1999-11-16 19:14:08 +00:00
fur%netscape.com
8e84de48cf Bug #8305 (Implement cache), r: valeski, rickg
The storage stream provides an internal buffer that
can be filled by a client using a single output
stream.  One or more independent input streams can
be created to read the data out non-destructively.
The implementation uses a segmented buffer
internally to avoid realloc'ing of large buffers.
1999-11-16 19:12:41 +00:00
norris%netscape.com
5b4b0169aa * Fix 12124 [DOGFOOD] Reading user's preferences
* Implement site-specific security policies (bug 858)
r=mstoltz
* Use Recycle rather than delete[] to clean up Purify logs
r=law
1999-11-16 05:07:31 +00:00
fur%netscape.com
f65b44dcd9 Fix build bustage 1999-11-16 03:50:56 +00:00
fur%netscape.com
17737c7b25 In support of #8305 (Implementing cache), allow storing of NUL characters
in string streams. r: dougt
1999-11-16 03:13:49 +00:00
warren%netscape.com
4cbd094273 Fix for case where we're trying to Write to a blocking stream, and we're out of buffer space. This should block. r=rpotts 1999-11-13 06:16:52 +00:00
sspitzer%netscape.com
176ee42b41 fix for #17954
before, if "mail.directory" was set, we'd assume the mail wasn't in the standard
default place, so we'd migrate Mail -> Mail5
now, we check if "mail.directory" == the default place.  if so, we migrate
it like we would if it wasn't set.
Mail -> Users50/<profile>/Mail

to help do this, I added Equals() to the nsIFileSpec interface, to compare
two nsIFileSpec's, it does this by comparing the nsFileSpecs.
1999-11-13 02:02:22 +00:00
sdagley%netscape.com
5af0b5a954 Removed yet another file warren obsoleted from yet another MANIFEST file (didn't he come up with the idea for MANIFEST files in the first place?) 1999-11-09 00:31:52 +00:00
warren%netscape.com
435d35a051 Removed obsolete files from tree. 1999-11-08 22:06:07 +00:00
dmose%mozilla.org
142ac52eaf updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
dveditz%netscape.com
04c2ee43f4 shutting up copious warnings using /W4 on MSVC 1999-11-03 07:39:19 +00:00
warren%netscape.com
e0c226d39d Added some sanity assertions. r=gagan 1999-11-02 05:38:22 +00:00
dougt%netscape.com
8ebbab5553 Adding a set accessor to the permissions functions. Needed by the xpinstall
folks.
1999-11-01 04:44:56 +00:00
scc%netscape.com
d13863d891 removed incorrect use of private class name in favor of |do_QueryInterface|, part of the fix for bug #17364, r=valeski (additional builds done by dmose, and syd) 1999-10-31 00:32:15 +00:00
dougt%netscape.com
21a9bec623 Cleanup.
Removing convertTo* routines

Not hooked up to build yet.
1999-10-26 19:34:56 +00:00
dougt%netscape.com
47cdf76e92 changed license. 1999-10-25 22:45:56 +00:00
dougt%netscape.com
0f1164855f Initial checkin of nsIFile windows implementation. bug 13320. r=dougt
Not hooked up to build, yet.
1999-10-25 22:44:42 +00:00
dougt%netscape.com
a2f7e313f0 adding a progID and className. r=me.
NOT PART OF THE BUILD, YET
1999-10-25 22:33:55 +00:00
dougt%netscape.com
cfd61bd0f8 Modification based on design review.
(THIS IS NOT PART OF THE BUILD YET)
1999-10-23 04:51:35 +00:00
dveditz%netscape.com
ab0d6dd3aa 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
1999-10-21 00:40:39 +00:00
ssu%netscape.com
9419a5b88a fixing bug #16064. checking in for dveditz@netscape.com. r=ssu@netscape.com. This fixes the crash under win98 when running from the windows installer. 1999-10-14 03:26:22 +00:00
sfraser%netscape.com
2204476289 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
kipp%netscape.com
65f6ba5343 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
mscott%netscape.com
3bafcbd4ad Bug #14612. I'm checking this in for warren. r=mscott
The pipe shouldn't block when you write more bytes into the pipe than the size of the pipe's buffer. Add an extra
notify to the writer of the pipe after we read data out of it.
1999-10-08 02:03:34 +00:00
sfraser%netscape.com
a20752a6fd Fix for bug 15749; passing null strings to nsFileSpec routines was doing bad things, like strlen(NULL). r=dougt 1999-10-07 20:57:21 +00:00
sfraser%netscape.com
68d29f8de0 Use CR for line termination on Macintosh, and don't call flush() for an endl. r dougt. 1999-10-05 03:00:13 +00:00
rjc%netscape.com
3a85b37943 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 1999-09-30 06:41:33 +00:00
warren%netscape.com
d37526c717 Cleaned up, using NS_WITH_SERVICE 1999-09-26 10:05:06 +00:00
warren%netscape.com
53e8731812 Took out unused page manager. 1999-09-26 07:26:21 +00:00
bienvenu%netscape.com
cbcb4df751 fix 14544 pop move msg filters broken r=dougt a=chofman 1999-09-23 04:18:00 +00:00
waterson%netscape.com
ff3374fd14 #undef CreateDirectory to fix problem where winbase.h #define
CreateDirectory and makes it appear as if nsFileSpec has a
CreateDirectory[A|W] method.
1999-09-21 03:09:39 +00:00
dougt%netscape.com
efc5b44b57 removing const from nsIFile types 1999-09-20 21:48:30 +00:00
warren%netscape.com
bde1055a86 Fixed warnings. 1999-09-20 20:57:21 +00:00
mccabe%netscape.com
4f7990cd94 Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.
1999-09-19 23:46:35 +00:00
briano%netscape.com
04e901e2a5 General cleanup. 1999-09-18 02:12:56 +00:00
waterson%netscape.com
fa6c2fad91 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. 1999-09-17 07:03:09 +00:00
dp%netscape.com
8c52c7502f Adding Set() to configure component directory and registry 1999-09-16 19:08:31 +00:00
dougt%netscape.com
351689f243 bug 13396. It looks like the returned byte count was off on certain size
files.
1999-09-15 18:24:01 +00:00
cls%seawood.org
0a10e0a466 Reverting changes accidentally checked in 1999-09-15 05:28:31 +00:00
warren%netscape.com
a41c2f2e9f Fixed uninitialized return value. 1999-09-14 09:33:53 +00:00
cls%seawood.org
9403bee785 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
cls%seawood.org
adf94e4618 Add -D_POSIX_SOURCE to DEFS to get rid of those useless 'index shadow' warnings. Add either -D_BSD_SOURCE or -D_XOPEN_SOURCE=500 to whichever Makefile.ins need it to accommodate for Posix' strictness. Add check for getopt.h for nsinstall.c. 1999-09-12 14:25:28 +00:00
rpotts%netscape.com
024ce49205 I've commented out this assert since I was hitting it *alot* after a clean build :-( 1999-09-12 09:00:34 +00:00
warren%netscape.com
399d6fa403 Added assertion for Open failing. 1999-09-11 23:48:07 +00:00
warren%netscape.com
09e4b5658c Disabled the page manager until we have more time to make it work properly. 1999-09-10 23:34:12 +00:00
dveditz%netscape.com
6f9b4b14a2 hoping this fixes dougt's bustage 1999-09-10 20:58:46 +00:00
dougt%netscape.com
00725ef8f7 changing GetDiskSpaceAvailable to return a signed 64 bit value 1999-09-10 20:03:56 +00:00
duncan%be.com
019ad9bd97 Fix int64 support in GetDiskSpaceAvailable, BeOS only fix. 1999-09-10 12:39:08 +00:00
warren%netscape.com
40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
dougt%netscape.com
a29ca16fcf missed this file. 1999-09-09 19:43:26 +00:00
dougt%netscape.com
01cce158c5 fixing var name 1999-09-09 19:37:29 +00:00
dougt%netscape.com
41a7fa078c 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
dougt%netscape.com
d674f8af60 Adding buffered output to nsIFileStream.
Renaming nsIFile to nsIOpenFile.
commenting out a testcase in FilesTest.cpp which fails.  evil, i know.
1999-09-08 20:12:35 +00:00
brendan%mozilla.org
7de384224d Use deadlock detecting nsAutoMonitors, etc., correctly. 1999-09-06 19:57:40 +00:00
driehuis%playbeing.org
1a157b514d 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
bruce%cybersight.com
2627b068df Use nsCRT::free() on result of nsEscape() instead of delete[]. 1999-09-04 17:10:10 +00:00
bruce%cybersight.com
36d8b82698 MacFileHelpers::EncodeMacPath() returns the result of an nsEscape() call, so all callers must nsCRT::free() the result instead of using delete[]. 1999-09-04 17:09:06 +00:00
bruce%cybersight.com
497a6f2b74 Use nsAllocator. Some comments tweaked. 1999-09-04 16:33:12 +00:00