dougt%netscape.com
77509d47e0
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.
git-svn-id: svn://10.0.0.236/trunk@56352 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 04:11:13 +00:00
dougt%netscape.com
de1e8beaf0
implement load().
...
not part of build.
git-svn-id: svn://10.0.0.236/trunk@56343 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 03:01:08 +00:00
dougt%netscape.com
da42fa46ee
adding a load() command which will allow loading of libraries.
...
not part of build
git-svn-id: svn://10.0.0.236/trunk@56342 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 02:59:01 +00:00
dougt%netscape.com
5e6a51e582
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.
git-svn-id: svn://10.0.0.236/trunk@56336 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:56:45 +00:00
dougt%netscape.com
b3545fcbef
removing nsIFile stuff from the windows makefile for now. a=sdagley.
...
git-svn-id: svn://10.0.0.236/trunk@56331 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-22 01:50:30 +00:00
valeski%netscape.com
4fd0540efa
a=chofmann, 21783. inverted parameter validation checks have been corrected.
...
git-svn-id: svn://10.0.0.236/trunk@56269 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 03:00:54 +00:00
valeski%netscape.com
62482783f2
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
...
git-svn-id: svn://10.0.0.236/trunk@55989 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-14 22:08:40 +00:00
bienvenu%netscape.com
a6d5ab0a18
fix file truncation on windows, was breaking pop filters, r=dougt, a=chofmann 20634
...
git-svn-id: svn://10.0.0.236/trunk@55871 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-10 23:33:30 +00:00
sdagley%netscape.com
fafc5636c1
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@55748 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 07:56:17 +00:00
fur%netscape.com
d500130ed8
Need to reset pointers within segment after realloc, since segment base
...
may have changed.
git-svn-id: svn://10.0.0.236/trunk@55738 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 06:28:44 +00:00
dougt%netscape.com
b80e941838
turning on nsIFile for windows. 13320
...
git-svn-id: svn://10.0.0.236/trunk@55731 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:14:54 +00:00
norris%netscape.com
d630910cd9
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.
git-svn-id: svn://10.0.0.236/trunk@55693 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:53:37 +00:00
dougt%netscape.com
0419f0e310
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.
git-svn-id: svn://10.0.0.236/trunk@55684 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 02:07:38 +00:00
dougt%netscape.com
83e21d3a65
13320 more tweaking to nsIFile windows impl.
...
not part of build yet.
git-svn-id: svn://10.0.0.236/trunk@55643 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 23:31:25 +00:00
sdagley%netscape.com
27cbf1994b
Part of #17949 . nsLocalFileMac work. Not part of build yet.
...
git-svn-id: svn://10.0.0.236/trunk@55624 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 22:26:51 +00:00
sdagley%netscape.com
4713b64ef5
nsStorageStream.h is needed by nkcache. Doesn't affect builds
...
git-svn-id: svn://10.0.0.236/trunk@55537 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 06:04:13 +00:00
fur%netscape.com
997f01f69a
Export nsStorageStream.h
...
git-svn-id: svn://10.0.0.236/trunk@55486 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 00:05:37 +00:00
valeski%netscape.com
e875c61670
r=mcafee. 20677 assistance. We now have a scriptable input stream implementation and interface for js. Hurray!
...
git-svn-id: svn://10.0.0.236/trunk@55308 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 20:29:42 +00:00
dougt%netscape.com
fe5547695c
adding some error codes which I will need.
...
git-svn-id: svn://10.0.0.236/trunk@55247 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:18:48 +00:00
dougt%netscape.com
94ecbedb06
renamed from the hated nsISomethingImpl.
...
git-svn-id: svn://10.0.0.236/trunk@55246 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:13:44 +00:00
dougt%netscape.com
9381ffc62d
Replaced by:
...
nsLocalFile.h
nsLocalFileUnix.cpp
nsLocalFileUnix.h
nsLocalFileWin.cpp
nsLocalFileWin.h
git-svn-id: svn://10.0.0.236/trunk@55241 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 01:02:45 +00:00
dougt%netscape.com
6771abf254
removing nsFileUtils.
...
git-svn-id: svn://10.0.0.236/trunk@55136 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:43:35 +00:00
dougt%netscape.com
88fc92f608
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
git-svn-id: svn://10.0.0.236/trunk@55133 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:39:31 +00:00
dougt%netscape.com
fd347bcedd
Fix tabs.
...
added enumerator.
git-svn-id: svn://10.0.0.236/trunk@55084 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 21:45:50 +00:00
dougt%netscape.com
9f59512919
Removing init() methods as warren suggested. These now live in the new
...
nsILocalFile interface.
git-svn-id: svn://10.0.0.236/trunk@55051 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:49:57 +00:00
dougt%netscape.com
b7a4eda34c
First cut.
...
These are the local file init methods for a nsIFile.
not hooked up to the build
git-svn-id: svn://10.0.0.236/trunk@55050 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:45:12 +00:00
sfraser%netscape.com
7d7ac5b8ec
Additional fix to the linebreakers when munging nsStrings. r=pinkerton.
...
git-svn-id: svn://10.0.0.236/trunk@55023 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 05:33:50 +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
dougt%netscape.com
c0e28dfae6
Changes to the nsIFile.idl which were discussed between shaver, brendan,
...
sdagley and I. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@54989 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 01:19:10 +00:00
warren%netscape.com
871543dac7
Fix from Jud where we were dropping error code. r=warren
...
git-svn-id: svn://10.0.0.236/trunk@54972 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 00:58:43 +00:00
sfraser%netscape.com
2cdd793b5e
Adding nsLinebreakConverter to the build.
...
git-svn-id: svn://10.0.0.236/trunk@54941 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:23:58 +00:00
sfraser%netscape.com
8bafd8a0da
Export nsLinebreakConverter.h
...
git-svn-id: svn://10.0.0.236/trunk@54939 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:22:21 +00:00
sfraser%netscape.com
a6db22e556
First Checked In.
...
git-svn-id: svn://10.0.0.236/trunk@54938 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-01 22:21:30 +00:00
dp%netscape.com
9b0cfefb70
NS_GET_IID(). Thanks to patch from pp@ludasdesign.com r=dp@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@54812 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 23:36:32 +00:00
warren%netscape.com
51881fbcea
Landing no_neckoutil2_branch. Bug #11159 . Removes neckoutil_s.lib from build which helps beos and openvms.
...
git-svn-id: svn://10.0.0.236/trunk@54722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 04:50:42 +00:00
shaver%netscape.com
2c78142979
- 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
git-svn-id: svn://10.0.0.236/trunk@54563 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 14:55:03 +00:00
warren%netscape.com
eb9a891946
Eliminated the libs build pass.
...
git-svn-id: svn://10.0.0.236/trunk@54523 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-28 03:05:01 +00:00
shaver%netscape.com
df01636bd9
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>.
git-svn-id: svn://10.0.0.236/trunk@54484 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-26 05:33:35 +00:00
fur%netscape.com
897d69d466
In support of bug #8305 (Implement cache)
...
Replaced WriteStringZ()/ReadStringZ() stubs with trivial implementations.
Simplified existing code. r: none
git-svn-id: svn://10.0.0.236/trunk@54112 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-21 08:01:08 +00:00
fur%netscape.com
82f02c752b
Fixed indentation
...
git-svn-id: svn://10.0.0.236/trunk@54111 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-21 07:58:53 +00:00
duncan%be.com
ea96df6f46
Clone nsFileSpec::Truncate from nsFileSpecUnix.cpp, r=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@54070 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-20 17:57:42 +00:00
dougt%netscape.com
f5f94a1ba7
making sure that we do not empty our segmented buffer if we did not create it
...
bug fix 19290. submitted by bienvenu, r=dougt.
git-svn-id: svn://10.0.0.236/trunk@53958 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 03:01:33 +00:00
fur%netscape.com
92928f5ea4
Fix build bustage, maybe. Get rid of unnecessary const
...
git-svn-id: svn://10.0.0.236/trunk@53954 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 02:35:02 +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
fur%netscape.com
42df532834
Quash warning
...
git-svn-id: svn://10.0.0.236/trunk@53945 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 01:22:30 +00:00
fur%netscape.com
5a97fd4572
Quell warning
...
git-svn-id: svn://10.0.0.236/trunk@53849 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 06:59:28 +00:00
fur%netscape.com
d81b34c48f
Quash warnings
...
git-svn-id: svn://10.0.0.236/trunk@53842 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 06:19:51 +00:00
dougt%netscape.com
5156796d61
fix for 18949. make seek do a flush to avoid corruption.
...
git-svn-id: svn://10.0.0.236/trunk@53828 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 05:16:42 +00:00
fur%netscape.com
e76b531c35
Quell warnings
...
git-svn-id: svn://10.0.0.236/trunk@53820 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 03:38:32 +00:00