dougt@netscape.com
324726c714
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
f9f3c8c48e
implement load().
...
not part of build.
1999-12-22 03:01:08 +00:00
dougt@netscape.com
4073200d43
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
059ed9f7e4
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
78af1efa38
removing nsIFile stuff from the windows makefile for now. a=sdagley.
1999-12-22 01:50:30 +00:00
valeski@netscape.com
804a74c6e9
a=chofmann, 21783. inverted parameter validation checks have been corrected.
1999-12-21 03:00:54 +00:00
valeski@netscape.com
8d14364815
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
54ee2d6511
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
8946039591
First Checked In.
1999-12-08 07:56:17 +00:00
fur@netscape.com
8d3851bda3
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
e3cadef891
turning on nsIFile for windows. 13320
1999-12-08 05:14:54 +00:00
norris@netscape.com
7339787196
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
1c19c8c240
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
e67c71d84c
13320 more tweaking to nsIFile windows impl.
...
not part of build yet.
1999-12-07 23:31:25 +00:00
sdagley@netscape.com
14eae5ef90
Part of #17949 . nsLocalFileMac work. Not part of build yet.
1999-12-07 22:26:51 +00:00
sdagley@netscape.com
afe5ce1abb
nsStorageStream.h is needed by nkcache. Doesn't affect builds
1999-12-07 06:04:13 +00:00
fur@netscape.com
93d37f5084
Export nsStorageStream.h
1999-12-07 00:05:37 +00:00
valeski@netscape.com
c04ab299bb
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
85b6914eba
adding some error codes which I will need.
1999-12-04 01:18:48 +00:00
dougt@netscape.com
65bd2ccfdf
renamed from the hated nsISomethingImpl.
1999-12-04 01:13:44 +00:00
dougt@netscape.com
0501415bf1
Replaced by:
...
nsLocalFile.h
nsLocalFileUnix.cpp
nsLocalFileUnix.h
nsLocalFileWin.cpp
nsLocalFileWin.h
1999-12-04 01:02:45 +00:00
dougt@netscape.com
089957cea4
removing nsFileUtils.
1999-12-03 00:43:35 +00:00
dougt@netscape.com
ea4b56e83f
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
53fc46dfae
Fix tabs.
...
added enumerator.
1999-12-02 21:45:50 +00:00
dougt@netscape.com
ff4ff8d089
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
4e79c338a3
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
e03332eacb
Additional fix to the linebreakers when munging nsStrings. r=pinkerton.
1999-12-02 05:33:50 +00:00
briano@netscape.com
f9d939115e
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
f1661ff04b
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
6c8c26e798
Fix from Jud where we were dropping error code. r=warren
1999-12-02 00:58:43 +00:00
sfraser@netscape.com
89e69df8c8
Adding nsLinebreakConverter to the build.
1999-12-01 22:23:58 +00:00
sfraser@netscape.com
eb4c33436a
Export nsLinebreakConverter.h
1999-12-01 22:22:21 +00:00
sfraser@netscape.com
1f96758056
First Checked In.
1999-12-01 22:21:30 +00:00
dp@netscape.com
6fb4a9e682
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
3abca0bf7e
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
3f18928dd8
- 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
a03f1a7799
Eliminated the libs build pass.
1999-11-28 03:05:01 +00:00
shaver@netscape.com
4b6419d64c
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
75e2b9496e
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
2c3cbba90e
Fixed indentation
1999-11-21 07:58:53 +00:00
duncan@be.com
8dfd60222a
Clone nsFileSpec::Truncate from nsFileSpecUnix.cpp, r=shaver.
1999-11-20 17:57:42 +00:00
dougt@netscape.com
fe59298353
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
76845ceb98
Fix build bustage, maybe. Get rid of unnecessary const
1999-11-19 02:35:02 +00:00
fur@netscape.com
35536c375a
Took out unnecessary const, which will hopefully unbusticate unix build
1999-11-19 02:25:04 +00:00
fur@netscape.com
40efdbc477
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
39d46d0d40
Quash warning
1999-11-19 01:22:30 +00:00
fur@netscape.com
dc37bcb67d
Quell warning
1999-11-18 06:59:28 +00:00
fur@netscape.com
1cd71b492a
Quash warnings
1999-11-18 06:19:51 +00:00
dougt@netscape.com
204132f4b7
fix for 18949. make seek do a flush to avoid corruption.
1999-11-18 05:16:42 +00:00
fur@netscape.com
3ef99cf44a
Quell warnings
1999-11-18 03:38:32 +00:00