Граф коммитов

554 Коммитов

Автор SHA1 Сообщение Дата
dougt%netscape.com 514d3b99e4 removing nsIFile stuff from the windows makefile for now. a=sdagley. 1999-12-22 01:50:30 +00:00
valeski%netscape.com 6ed9a7dcaf a=chofmann, 21783. inverted parameter validation checks have been corrected. 1999-12-21 03:00:54 +00:00
valeski%netscape.com db4a26738b 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 8abf627d48 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 1c96ab9feb First Checked In. 1999-12-08 07:56:17 +00:00
fur%netscape.com fe221171f0 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 5cba257f20 turning on nsIFile for windows. 13320 1999-12-08 05:14:54 +00:00
norris%netscape.com b64e703d96 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 d5178e7c9c 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 a7d3f7a216 13320 more tweaking to nsIFile windows impl.
not part of build yet.
1999-12-07 23:31:25 +00:00
sdagley%netscape.com 3cbd4e0000 Part of #17949. nsLocalFileMac work. Not part of build yet. 1999-12-07 22:26:51 +00:00
sdagley%netscape.com 3eee3791ab nsStorageStream.h is needed by nkcache. Doesn't affect builds 1999-12-07 06:04:13 +00:00
fur%netscape.com fccc09be1e Export nsStorageStream.h 1999-12-07 00:05:37 +00:00
valeski%netscape.com 7f46457968 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 1a627e0baa adding some error codes which I will need. 1999-12-04 01:18:48 +00:00
dougt%netscape.com e1bf51574a renamed from the hated nsISomethingImpl. 1999-12-04 01:13:44 +00:00
dougt%netscape.com f09e97b385 Replaced by:
nsLocalFile.h
nsLocalFileUnix.cpp
nsLocalFileUnix.h
nsLocalFileWin.cpp
nsLocalFileWin.h
1999-12-04 01:02:45 +00:00
dougt%netscape.com 8af8cfcfb6 removing nsFileUtils. 1999-12-03 00:43:35 +00:00
dougt%netscape.com 1f8e921d88 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 dcb447212a Fix tabs.
added enumerator.
1999-12-02 21:45:50 +00:00
dougt%netscape.com b7685332a6 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 2ddfea1496 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 7afabfb427 Additional fix to the linebreakers when munging nsStrings. r=pinkerton. 1999-12-02 05:33:50 +00:00
briano%netscape.com 398e717fc7 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 02869e1fe1 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 900ae728fc Fix from Jud where we were dropping error code. r=warren 1999-12-02 00:58:43 +00:00
sfraser%netscape.com 1107804e01 Adding nsLinebreakConverter to the build. 1999-12-01 22:23:58 +00:00
sfraser%netscape.com 6c3aa7008e Export nsLinebreakConverter.h 1999-12-01 22:22:21 +00:00
sfraser%netscape.com 9ee798b150 First Checked In. 1999-12-01 22:21:30 +00:00
dp%netscape.com 187770cd22 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 a265a32348 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 528cb517ac - 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 4ab4ee4d4e Eliminated the libs build pass. 1999-11-28 03:05:01 +00:00
shaver%netscape.com 506027739d 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 90c108fd78 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 19a79cf816 Fixed indentation 1999-11-21 07:58:53 +00:00
duncan%be.com a8e97d16e1 Clone nsFileSpec::Truncate from nsFileSpecUnix.cpp, r=shaver. 1999-11-20 17:57:42 +00:00
dougt%netscape.com 3c56a40e88 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 77db84cccd Fix build bustage, maybe. Get rid of unnecessary const 1999-11-19 02:35:02 +00:00
fur%netscape.com 47f23d1f43 Took out unnecessary const, which will hopefully unbusticate unix build 1999-11-19 02:25:04 +00:00
fur%netscape.com 9b088cf1a4 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 5679113aa6 Quash warning 1999-11-19 01:22:30 +00:00
fur%netscape.com c00421c2be Quell warning 1999-11-18 06:59:28 +00:00
fur%netscape.com 6d099d6300 Quash warnings 1999-11-18 06:19:51 +00:00
dougt%netscape.com 6a5a4287d0 fix for 18949. make seek do a flush to avoid corruption. 1999-11-18 05:16:42 +00:00
fur%netscape.com a12148872d Quell warnings 1999-11-18 03:38:32 +00:00
mcafee%netscape.com e1a1f4d558 Switching to PRBool, un-break Solaris WS build. r=slamm 1999-11-18 03:22:47 +00:00
rhp%netscape.com a54e5586ba 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 fa84f35c0c Add storage stream and binary stream files. r: none 1999-11-16 19:14:51 +00:00
fur%netscape.com 76e910595b 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 3a8af5ffd8 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 411aade911 * 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 35c485450a Fix build bustage 1999-11-16 03:50:56 +00:00
fur%netscape.com 524123901e 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 38804a8859 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 d610244e7a 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 c865d49c0a 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 b9ebf4cb31 Removed obsolete files from tree. 1999-11-08 22:06:07 +00:00
dmose%mozilla.org 8535dda53e 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 2571930b5e shutting up copious warnings using /W4 on MSVC 1999-11-03 07:39:19 +00:00
warren%netscape.com 33d77cb1fb Added some sanity assertions. r=gagan 1999-11-02 05:38:22 +00:00
dougt%netscape.com d44e416546 Adding a set accessor to the permissions functions. Needed by the xpinstall
folks.
1999-11-01 04:44:56 +00:00
scc%netscape.com b67e1fc39c 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 2bc3d49418 Cleanup.
Removing convertTo* routines

Not hooked up to build yet.
1999-10-26 19:34:56 +00:00
dougt%netscape.com eba9afd931 changed license. 1999-10-25 22:45:56 +00:00
dougt%netscape.com 6ff4a8ef56 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 3ba1f0a07c adding a progID and className. r=me.
NOT PART OF THE BUILD, YET
1999-10-25 22:33:55 +00:00
dougt%netscape.com 08030792d4 Modification based on design review.
(THIS IS NOT PART OF THE BUILD YET)
1999-10-23 04:51:35 +00:00
dveditz%netscape.com 4b0ca9d0cd 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 8e422bb733 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 af96133451 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 b0dcc883f8 Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage 1999-10-08 20:41:19 +00:00
mscott%netscape.com b39c6b6df6 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 5b71ad69f3 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 7d4a0c331c 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 a8b61ee726 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 017be78c96 Cleaned up, using NS_WITH_SERVICE 1999-09-26 10:05:06 +00:00
warren%netscape.com 9c1b7ede80 Took out unused page manager. 1999-09-26 07:26:21 +00:00
bienvenu%netscape.com d88d8c7de9 fix 14544 pop move msg filters broken r=dougt a=chofman 1999-09-23 04:18:00 +00:00
waterson%netscape.com 9399054cb4 #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 780ed62171 removing const from nsIFile types 1999-09-20 21:48:30 +00:00
warren%netscape.com 1c51d9a00b Fixed warnings. 1999-09-20 20:57:21 +00:00
mccabe%netscape.com 39e5fe6519 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 12f9f9743e General cleanup. 1999-09-18 02:12:56 +00:00
waterson%netscape.com 638ad511fc 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 9623ad7646 Adding Set() to configure component directory and registry 1999-09-16 19:08:31 +00:00
dougt%netscape.com ff9927f56b 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 7bd0965e19 Reverting changes accidentally checked in 1999-09-15 05:28:31 +00:00
warren%netscape.com b100d809ee Fixed uninitialized return value. 1999-09-14 09:33:53 +00:00
cls%seawood.org fb6ccf14b6 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 1a2e16af42 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 93cea3f89b 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 e82cc6071b Added assertion for Open failing. 1999-09-11 23:48:07 +00:00
warren%netscape.com b644ce1197 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 08b5c219f9 hoping this fixes dougt's bustage 1999-09-10 20:58:46 +00:00
dougt%netscape.com 82c52d63e8 changing GetDiskSpaceAvailable to return a signed 64 bit value 1999-09-10 20:03:56 +00:00
duncan%be.com 6dcf30a221 Fix int64 support in GetDiskSpaceAvailable, BeOS only fix. 1999-09-10 12:39:08 +00:00
warren%netscape.com e6619b2ad6 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 330ad391c0 missed this file. 1999-09-09 19:43:26 +00:00
dougt%netscape.com 040525b8df fixing var name 1999-09-09 19:37:29 +00:00
dougt%netscape.com d8fcfee5c9 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 a494e44ce6 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 b540021495 Use deadlock detecting nsAutoMonitors, etc., correctly. 1999-09-06 19:57:40 +00:00
driehuis%playbeing.org f1accaf47c 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 ea1d7d167a Use nsCRT::free() on result of nsEscape() instead of delete[]. 1999-09-04 17:10:10 +00:00
bruce%cybersight.com ab0cb7d279 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 80a5285b38 Use nsAllocator. Some comments tweaked. 1999-09-04 16:33:12 +00:00
shaver%netscape.com 36331ac52e add IsChildOf, and dougt's relative-path-handling diff 1999-09-03 23:44:59 +00:00
duncan%be.com f96a5f0ec0 A bunch of things to get the BeOS build to work. Mostly
BeOS specific fixes, except for the change to nsinstall.c
that ignores trailing "/." in the function mkdirs (as
creating a "." dir fails under BeOS).
1999-09-03 12:54:05 +00:00
dougt%netscape.com 452841d4e5 more changes from conversations with brendan@mozilla.org 1999-09-01 23:51:11 +00:00
cata%netscape.com 8197c9839b Fixing build warnings. Step 2: switch to use new method from the interface. 1999-09-01 22:50:50 +00:00
mscott%netscape.com fe861fd9d3 Bug #9836 --> Unix only fix. When returning the temp directory, don't return /tmp/. Try to return the temp dir
specified by the unix environment variable: TMPDIR. If that variable isn't set, then use /tmp/.
a=sdagley
1999-09-01 02:37:55 +00:00
cyeh%netscape.com cc2825cbe0 Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
warren%netscape.com c5f6d7673b Made NS_BASE_STREAM_WOULD_BLOCK a failure code (for JS). Reduced socket transport buffer size. Fixed ABBA deadlock when calling OnEmpty in pipe code (bug#12870). 1999-08-31 21:47:30 +00:00
rjc%netscape.com 51cd65edef 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
bruce%cybersight.com c151f3ec16 Fix build bustage. Thanks waterson! Sorry about that. 1999-08-30 01:06:54 +00:00
bruce%cybersight.com bfa29c4eb6 Fix warning from my last checkin. 1999-08-30 00:51:56 +00:00
bruce%cybersight.com e68d0f0437 Change deallocation for nsAutoCString to use nsAllocator. This removes several thousand FMM errors in Purify. 1999-08-30 00:32:27 +00:00
shaver%netscape.com 3c6983141e make sure that /path/to/dir and /path/to/dir/ are treated as equal 1999-08-29 22:05:11 +00:00
mscott%netscape.com 707396a2a8 Bug #12638 --> Fix nsPipe2::GetLength to return the number of unread bytes in the pipe. r=warren, a=cyeh 1999-08-27 19:14:57 +00:00
warren%netscape.com 856e96363f Fixed bug that OnEmpty wasn't called. Fixed bug in Search (it would terminate prematurely on eof). 1999-08-27 10:32:45 +00:00
beard%netscape.com 9fe2e5a81b plugged a memory leak in GetCString(). 1999-08-27 03:47:43 +00:00
warren%netscape.com 2e5cd86a3c Reset cursors on Empty. 1999-08-26 00:25:43 +00:00
warren%netscape.com c726d36b08 Fixed QI bug that could cause the input stream to be closed too early. 1999-08-26 00:25:20 +00:00
dougt%netscape.com a1ca34cde8 more changes based on feedback. 1999-08-25 06:11:14 +00:00
brendan%mozilla.org bbe959f4d1 Massive spankage to capitalize C++ method and attribute name bindings, per
Architecture Item 6.3 (news://news.mozilla.org/37BA89CF.3823D6F9%40meer.net).
1999-08-25 05:26:25 +00:00
dougt%netscape.com a9aa90f850 more changes as suggested by warren@netscape.com 1999-08-24 21:51:32 +00:00
dougt%netscape.com 617f2450b0 renaming nsIDirectoryIterator.idl to nsIDirectoryEnumerator.idl 1999-08-24 20:22:21 +00:00
pavlov%netscape.com 2c0db25826 isHidden was returning backwards results 1999-08-24 18:32:06 +00:00
warren%netscape.com 4324494f97 Added nsIPipe.idl, replacing nsPipe2.h. Fixed up some nsPipe2.cpp problems. Fixed bug in nsSegmentedBuffer segment growth. Extended TestPipes test case to cover much much more. 1999-08-24 08:45:17 +00:00
warren%netscape.com 07ee016605 Added -- supercedes nsIBuffer.h 1999-08-24 04:54:56 +00:00
dougt%netscape.com b4ded63005 a real iid. 1999-08-24 03:59:07 +00:00
dougt%netscape.com ae238f6cb6 First cut of an IDL for a replace of the nsDirectoryIterator class. 1999-08-24 00:47:41 +00:00
dougt%netscape.com 7c880326fe Adding Append() and ResolveSymlink() 1999-08-24 00:47:02 +00:00
scc%netscape.com 0454213f91 got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in 1999-08-23 10:14:16 +00:00
scc%netscape.com 83feff8821 Added |GetIID| 1999-08-22 20:54:08 +00:00
mccabe%netscape.com b95a2bdd54 Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO. 1999-08-22 11:25:50 +00:00
dougt%netscape.com 6fdb4496ff first cut of a new file class. 1999-08-21 07:38:26 +00:00
dougt%netscape.com 7aa075083f Adding fix for 6181. It is currently ifdef'ed out. Looking for a mac person to
verify.
1999-08-18 02:17:21 +00:00
warren%netscape.com 0357d0e958 Fix for bug 10797: Messenger hang. 2 problems: mac shouldn't be using page manager -- doesn't do vm, and trying to flush when the buffer is empty ends up spinning. 1999-08-13 00:46:16 +00:00
dougt%netscape.com 1f154a72f4 Fix for bug 9007 submitted by david.gardiner@unisa.edu.au. 1999-08-10 23:00:53 +00:00
warren%netscape.com bc45ad76c9 Removed crtdbg.h 1999-08-10 20:30:45 +00:00
mcafee%netscape.com 2dde613bf0 Fixing linux bustage, I can't find crtdbg.h in the tree. 1999-08-10 20:11:25 +00:00
warren%netscape.com 6dd8807c5f Added nsSegmentedBuffer.cpp and nsPipe2.cpp to build. 1999-08-10 19:21:17 +00:00
warren%netscape.com 7e2cecfcc6 Added new pipe implementation -- simpler and faster. 1999-08-10 19:18:39 +00:00
warren%netscape.com 2fb04397c8 Made Read return as soon as it's got something, rather than waiting until the buffer is full. 1999-08-10 19:13:48 +00:00
mccabe%netscape.com d6e7410f31 Changes to the xpidl compiler -
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].

This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.

As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout.  As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.
1999-08-10 12:18:01 +00:00
alecf%netscape.com 0cce3d24a3 fix constructor warning 1999-08-07 20:06:38 +00:00
pinkerton%netscape.com a595b44378 remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete. 1999-08-03 04:51:45 +00:00
briano%netscape.com ff69b9b5fa Fix for SCO OpenServer. 1999-07-31 19:33:36 +00:00
dougt%netscape.com a731c6e7b4 Changing nonscriptable to noscript. 1999-07-31 17:37:29 +00:00
duncan%be.com ff731855d1 Fix ResolveSymlink for BeOS (BeOS doesn't have realpath).
BEOS ONLY FIX NEEDED TO UNBREAK THE BUILD!
1999-07-30 12:03:25 +00:00
sspitzer%netscape.com 859fd92e85 make mPath canonical after resolving the symlink. a=mcafee. 1999-07-29 20:14:42 +00:00
dougt%netscape.com ae85056ed9 This fixes a nsDirectoryIterator bug that bliz, seth and I were working on last night.
Approved by cyeh.
1999-07-29 14:24:47 +00:00
sspitzer%netscape.com 47eb34bb8d 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
sspitzer%netscape.com e2dd59c128 change the nsIDirectoryIterator::Init interface to match the nsDirectoryIterator ctor: two paramenters, a file spec and a bool for resolveSymlinks. pass in PR_TRUE in the pref and component manager code. this fixes the problem where prefs wouldn't get loaded on the mac! 1999-07-27 23:33:54 +00:00
sfraser%netscape.com 5e4da3ca9e Change ResolveAlias to ResolveSymlink. dougt should have done this. 1999-07-27 23:05:53 +00:00
dveditz%netscape.com 5c1ff9d297 fixes VC5 link bustage, but I feel dirty 1999-07-27 00:57:50 +00:00
dougt%netscape.com 69178099d5 Fix for bug 10177 and 10041. 1999-07-26 22:09:42 +00:00
waterson%netscape.com 8fc0c7ba73 CID not IID! 1999-07-22 07:33:24 +00:00
scc%netscape.com 12c243677f explicitly define kCharsetConversionManagerCID only in files that need it ... move to canonical scheme for defining and using IIDs and CIDs 1999-07-22 05:25:17 +00:00
briano%netscape.com 44e858a3d6 Fix for NTO, which uses statvfs. 1999-07-22 01:31:43 +00:00
briano%netscape.com 58a714eb9b 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 dd656478bb duh. 1999-07-21 18:18:09 +00:00
dougt%netscape.com 944676615b fix for bug: 10260
removed warning in nsIFileStream.cpp
1999-07-21 17:56:01 +00:00
rods%netscape.com 058ae95f8a Fixed extra ref count problem for blocker bug 10138 1999-07-20 14:29:43 +00:00
warren%netscape.com 7bcb94a320 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
beard%netscape.com a4240fcd41 explicitly include <limits.h> for ULONG_MAX 1999-07-17 02:04:20 +00:00
slamm%netscape.com 5f3384449d Fix build warnings. 1999-07-16 21:47:03 +00:00
kipp%netscape.com f9e23515cd Removed a compiler warning 1999-07-16 17:40:39 +00:00
rods%netscape.com 079dbe461f Added QueryInterface because NS_NewIOFileStream does a cast from (void *) to
(nsISupports *) thus causing a vtable problem on Windows, where we really
didn't have the proper pointer
1999-07-16 12:59:20 +00:00
rods%netscape.com 0b80393b7c Commented out a check to that makes it return when mOutputStream null
instead it creates  an output stream when it is null
1999-07-16 12:57:45 +00:00
sspitzer%netscape.com 22ce1f44e2 add the touch interface to the nsIFileSpec iterface and the appropriate implementations 1999-07-13 19:10:43 +00:00
briano%netscape.com daecd83558 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
warren%netscape.com 68adac575c Removed obsolete Fill methods. Added NonBlocking attribute. 1999-07-10 11:27:11 +00:00
dp%netscape.com c9261cc1b2 Fixed
- Mismatched alloc/free
- Guarded against null pointer and crash bug#8830
1999-07-09 03:41:27 +00:00
rpotts%netscape.com ef421fc66f Added code to initialize amt (in case it is not zeroed out in the failure case) 1999-07-08 23:34:25 +00:00
rpotts%netscape.com 9bc4f969a1 Changed the blocking input and output streams to always call Fill/Flush when a nsIBuffer::Read/Write fails... 1999-07-08 23:26:52 +00:00
ramiro%netscape.com d3cd369285 Another makefile that clobbers DEFINES. 1999-07-07 21:22:55 +00:00
gayatrib%netscape.com 31d5a62283 Added Recursive Copy routine 1999-07-07 01:02:16 +00:00
racham%netscape.com aba8748b4b Removing check for mpath in Recursive copy routine 1999-07-06 22:41:42 +00:00
racham%netscape.com 06f1388283 Adding RecursiveCopy interface 1999-07-05 01:39:42 +00:00
warren%netscape.com a9ae165740 Fixed bug in string stream length. 1999-07-03 06:49:28 +00:00
sspitzer%netscape.com 18588c57f5 bulletproofing changes. check return value and return it if error. 1999-07-02 06:31:31 +00:00
scc%netscape.com 54c96baa72 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
mcafee%netscape.com 4aca8a8246 BeOS changes 1999-06-29 10:27:58 +00:00
mcafee%netscape.com 0569313c71 Changes for OS/2. 1999-06-28 22:41:48 +00:00
alecf%netscape.com 39f1a100e1 add [ptr] version of nsFileSpec 1999-06-26 20:27:28 +00:00
mcafee%netscape.com 28609227a2 BeOS landing; thanks to Duncan Wilcox (duncan@be.com) for these changes. 1999-06-25 10:56:50 +00:00
mcmullen%netscape.com fe6b4941d5 readLine was returning (in its truncation parameter) the exact opposite of the promised boolean. Thanks to kin@netscape.com for pointing this out. 1999-06-22 23:21:00 +00:00
mcmullen%netscape.com edfdbc6470 Changed to reference parameters (to avoid copying of objects onto the stack) 1999-06-22 05:03:30 +00:00
mcmullen%netscape.com 62f7b85e62 Removed two evil exported functions which I added. Well actually, I added them as inlines, but they somehow changed. So since I don't want them as exports, dust to dust, and ashes to ashes. 1999-06-22 03:53:43 +00:00
warren%netscape.com 9484348e12 Fixed problems with GetReadSegment after eof. 1999-06-21 21:05:07 +00:00
warren%netscape.com a3adc6bd4c Making buffers work better. Now out-of-memory is handled properly. 1999-06-19 22:23:18 +00:00
warren%netscape.com 58680447a0 Fixed bug causing Flush to block forever. Changed nsAutoMonitor to nsAutoCMonitor (cached monitors). 1999-06-16 04:15:15 +00:00
dp%netscape.com 55b0233159 Registry location and filename added. 1999-06-16 00:26:43 +00:00
dp%netscape.com 24790557d2 Removing nsIComponentManager.h from nsIFileSpec.h to prevent circular
header dependencies in preparation for component manager using nsIFileSpec.
1999-06-16 00:26:02 +00:00
mcmullen%netscape.com 7da73546db Added a null test 1999-06-15 09:31:49 +00:00
mcmullen%netscape.com 9073e2e35e Made write and read do an implicit open. Added a FileContents attribute to allow simple conversion between an entire file and a string. 1999-06-15 05:17:59 +00:00
warren%netscape.com 8882c50da2 Added PR_LOG stuff. 1999-06-15 04:57:07 +00:00