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

1434 Коммитов

Автор SHA1 Сообщение Дата
dougt%netscape.com 4ebce97a3b checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.
2000-04-25 01:48:02 +00:00
dougt%netscape.com fc2a69ba00 Adding xpcom.currentProcess 2000-04-24 22:54:04 +00:00
dougt%netscape.com c0b55af16c Fix for bug 35751. Caching type and creator information for nsLocalFileMac. This is so that files can be created with a given type/creator tag after the initialization of the ifile.. r=warren and sfraser. 2000-04-24 03:24:49 +00:00
scc%netscape.com 391f0960dd making string conversions explicit 2000-04-22 08:43:34 +00:00
ftang%netscape.com 238c2b8d57 fix nsFileSpec unicode interface . 2000-04-21 21:44:23 +00:00
cls%seawood.org 53bfb0c4a5 BeOS uses the Unix local file implementation. 2000-04-21 21:04:35 +00:00
cls%seawood.org 8921a25a1b Removed extra & as suggested by Matthew Z. on m.beos. 2000-04-21 21:03:56 +00:00
scc%netscape.com a10aa8dde5 making string conversions explicit 2000-04-21 07:09:51 +00:00
dbragg%netscape.com 365e935ebf typo in Manifest file 2000-04-20 23:06:00 +00:00
dbragg%netscape.com 19a96b0ebe Oops, forgot nsFileSpec.h 2000-04-20 22:59:30 +00:00
ftang%netscape.com c1c131590f 1. small fix on nsLocalFileCommon.cpp to fix unix warrning
2. add unicode methods to nsIFile/nsILocalFile idl
3. add nsLocalFileCommon.cpp to the unix and window makefile
2000-04-20 22:53:29 +00:00
dbragg%netscape.com 28c8f393d4 Fully implemented the DirectoryService and fixed the Mac nsFileSpecToIFile 2000-04-20 22:49:18 +00:00
ftang%netscape.com bcc3796e45 first add for nsILocalFile unicode interface wrapper code
not part of the build system yet.
2000-04-20 05:44:03 +00:00
ftang%netscape.com aacdd70d44 fix 22116. Check in patch from m_kato@ga2.so-net.ne.jp
Perform IsDBCSLeadByte before 0x5c escaping
2000-04-20 05:08:02 +00:00
dougt%netscape.com 93b356c61b fix for 36266. submitting by koehler@mythrium.com. 2000-04-20 01:08:53 +00:00
beard%netscape.com 3f1ed5ff9c Compatibility with Universal Headers 3.3 or later. a=leaf 2000-04-19 22:13:51 +00:00
jdunn%netscape.com ad2f705153 adding newline - hp bustage 2000-04-19 14:57:43 +00:00
davidm%netscape.com f11037bc6d 28412 metaDataLength is wrong in nsCachedNetData::Deserialize. Add routines to build stream from char* and length 2000-04-19 04:54:53 +00:00
andreas.otte%primus-online.de 8dd89cbb2d fix bug 20891 [Assertion when displaying message], don't try to find a drive in an empty path, r=putterman@netscape.com 2000-04-16 07:33:25 +00:00
scc%netscape.com 8a57729d06 making string conversions explicit 2000-04-15 05:23:09 +00:00
warren%netscape.com ea1163636a Fixed AddRef/Release to use NS_ADDREF/NS_RELEASE. 2000-04-13 09:20:58 +00:00
waqar%netscape.com d2db4ac8e0 nsIByteArrayInputStream.h files does not exist any more. r=pollmann,a=leaf 2000-04-10 22:48:27 +00:00
ruslan%netscape.com 903e0777dd Fix nsBinaryStream::ReadStringZ which used to add extra '\0' thus causing
tje string lenth to be off by 1 and all these nasty nsString warnings;
a=leaf,r=smfr
2000-04-06 21:28:09 +00:00
jim_nance%yahoo.com 5c44f0195a Fix for bug 34543. Compile problem under Tru64 Unix.
a=leaf.  This is #ifdefed for Tru64 Unix, but if it causes
bustage and I am not on IRC, you can get me at 919.859.3885
2000-04-05 22:37:01 +00:00
cls%seawood.org 4a53bf302d Changes to get the BeOS build running. Patch provided by Yannick Koehler <koehler@mythrium.com> . 2000-04-05 02:12:26 +00:00
waterson%netscape.com 10cdd2de87 Making string conversions explicit. 2000-04-04 09:35:51 +00:00
bruce%cybersight.com 1d051086ef Fixing nsByteArrayInputStream's QueryInterface() to be correct. Need this for a leak fix coming up shortly. r=scc 2000-04-04 04:16:07 +00:00
mkaply%us.ibm.com 7e138ea359 # 33860
r= mkaply@us.ibm.com
OS/2 bringup
2000-04-04 00:07:04 +00:00
davidm%netscape.com c465e3b30e 27857 nsIFile - MAC not completely implemented 2000-04-03 01:54:22 +00:00
davidm%netscape.com d248b3c4a8 First Checked In. 2000-04-03 01:50:18 +00:00
scc%netscape.com f5dbd84938 not sure if this is the _best_ way to solve the problem, but I added a c-string version of |NS_NewStringInputStream|, which can't use overloading since it's |extern "C"|, so I named it |NS_NewCStringInputStream|. 2000-04-01 22:27:03 +00:00
blizzard%redhat.com 71f21f226a checkin patches to implement nsILocalFile::GetDiskSpaceAvailable from Jason Eager and nsIFile::GetParent from pavlov. r=pavlov,blizzard,dougt. a=dougt 2000-04-01 20:07:14 +00:00
scc%netscape.com c05019b2a8 making string conversions explicit 2000-04-01 00:39:02 +00:00
warren%netscape.com 727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
jband%netscape.com 0d24a185b9 if people are going to insert four space tabs then let's set the Mode line's tab-width correctly 2000-03-28 05:01:05 +00:00
sgehani%netscape.com 68e885af71 Fixing nsIFile::SetLastModificationDate on Win32.
b = 12368
r = dbragg
2000-03-28 03:39:02 +00:00
sgehani%netscape.com e1cf8e1d13 Implemented nsIFile::SetLastModificationDate on the Mac. b = 12368 r = dbragg 2000-03-27 22:05:54 +00:00
sgehani%netscape.com c9399c7cc7 Fixing nsIFile::SetLastModificationDate for Unix.
b = 12368
r = ssu
2000-03-27 22:04:46 +00:00
dougt%netscape.com ae30ecbdf8 Fix for 33098. MoveTo and CopyTo do not rename if the |in| parent is null.
I renamed the in parameter, and created a new stack var which I assign the
in parameter.  If the var is null, I initial it with the |this| parent. I
also made sure that if null was passed, we would tree the action as a move.
2000-03-24 05:47:39 +00:00
sfraser%netscape.com 618cdfb0d8 Fixing nsLocalFileMac so that Contains() works with file aliases, and is much faster. Also fix an issue with cacheing data, so that cacheing actually works. r=pinkerton. 2000-03-23 23:33:23 +00:00
ruslan%netscape.com a9f53247b0 Fix MAC build bustage - forgot to remove nsIByteArrayInputStream.h from the
MANIFEST as well
2000-03-22 04:14:26 +00:00
ruslan%netscape.com 85f1f3bf70 Fix Unix build bustage - makefiles on unix and windows seems to actually
behave differently in this case
2000-03-22 03:02:34 +00:00
ruslan%netscape.com 6ebbc29aa6 Enabling ByteArrayInputStream. Needed to fix 32600, r=warren 2000-03-22 02:50:56 +00:00
dougt%netscape.com bd7b539d07 Fixing SetModificationTime based on MS documentation. It is still failing, but
this is documented to work:

http://support.microsoft.com/support/kb/articles/Q167/2/96.ASP
2000-03-22 01:37:52 +00:00
ruslan%netscape.com fd43b9b63d Add ByteArrayInoutStream. Not part of the build yet 2000-03-22 00:48:48 +00:00
sspitzer%netscape.com 2f566d968a fix for #32245. r=bienvenu. 2000-03-17 21:53:49 +00:00
sspitzer%netscape.com f9c35a1ee1 add Delete() to the nsIFileSpec interface. 2000-03-15 07:07:56 +00:00
blizzard%redhat.com 804ec67bf8 fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson 2000-03-15 03:08:28 +00:00
nhotta%netscape.com 4c9cfca6b5 Changed to use do_GetService instead of CreateInstance, bug 30205, r=cata. 2000-03-15 01:33:43 +00:00
jefft%netscape.com 9cdfa6fef7 fix bug 30784 - save messages / attachment with bogus path name failed sliently; this is bad if user think save was successful then followed by a delete and compact; we will have a data loss here 2000-03-14 13:54:42 +00:00
dougt%netscape.com b107082d5a fix for 28942 nsILocalFile::Exists() returns a FILE_NOT_FOUND error.
r=pete@alphanumerica.com
2000-03-14 05:11:02 +00:00
rickg%netscape.com ffe78e83e5 removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
pavlov%netscape.com ce094b4cfc changes to let us build on MacOS X 2000-03-11 03:08:04 +00:00
sfraser%netscape.com 41c5ae6811 Fix for 29572 (launching PSM on Mac). Implement GetParent() for an nsILocalFileMac that was initialized with an FSSpec. r=davidm, a=jar 2000-03-09 00:35:11 +00:00
waterson%netscape.com 27394cb877 Bug 29250. PR_GetFileInfo64() expects a 'root' path on Win32 to have a trailing slash; e.g., it will accept 'c:\\', but not 'c:'. Ensure that, if we ever see a naked drive letter, we'll append a trailing backslash to make something that NSPR understands. r=dveditz, a=jevering 2000-03-08 02:53:04 +00:00
warren%netscape.com c0497e31be Bug 21556: Making linux be thread-safe. Making tons of classes implement threadsafe AddRef/Release. a=jar 2000-03-05 21:26:01 +00:00
sfraser%netscape.com 19fa57d1f9 Followon from a checkin I did yesterday to fix bugs 29521 and 29827 (a=jar); this part fixes an assertion that happened with empty form fields. r=kin 2000-03-02 19:36:15 +00:00
mkaply%us.ibm.com 299c268c24 # 25555
r= dougt@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef
2000-02-29 21:27:02 +00:00
davidm%netscape.com 9819271015 22244 Can not load local file on the mac r warren/sfraser a - jar 2000-02-27 16:19:59 +00:00
rjc%netscape.com 14065c7824 Fix PDT+ bug # 6770: be able to get filenames from the file system in the platform native charset. Patch from m_kato@ga2.so-net.ne.jp Review: ftang, dougt, and myself. Approval: jar 2000-02-26 02:19:34 +00:00
cls%seawood.org 59b9bb0e4a Explicitly cast mPath to const char* as some compilers can't automatically cast from nxXPIDLCString to char * . 2000-02-26 00:13:30 +00:00
cls%seawood.org 341d658c62 Implement the equivalent of Unix's realpath() for BeOS. Build blocker. a=leaf 2000-02-24 00:48:30 +00:00
sfraser%netscape.com 83963a825c Fixes for bug 28271 -- add methods to nsILocalFileMac to launch applications and document. Also fix bogus include in nsNativeComponentLoader. r=davidm,dougt. a=jar 2000-02-23 23:09:02 +00:00
dougt%netscape.com 2851ebfb56 Caused a regression in the nsLocalFile. If ResolveAndStat fails, we want
to return the NS_ERROR_FILE_NOT_FOUND value, not the NS_ERROR_FAILURE value.
a=jar.
2000-02-22 06:16:08 +00:00
dougt%netscape.com 6e4324a177 Added a .get() to a comptr to make it compile on linux. 2000-02-21 22:09:24 +00:00
dougt%netscape.com 8c83662e4d Fixes for 28257, 21628, 27076, 18186, 25584
1) Implement nsDirectoryService.  This makes the service extensible so that
components can do delayed registration.

2) Fixes windows Append meathod which did not work with . prepended files.

3) Fixes memory leaks in nsDirectoryService

4) Fixes SetPermissions() on Win32.  This was in my tree for a while.  It basically
calls through to chmod just like on unix.

5) Fixes GetModificationDate. Win32 now return PRTime for dates.

r = scc, valeski, warren, wtc (suggestions)
a = jevering
2000-02-21 21:51:47 +00:00
cls%seawood.org 5975077af0 More tweaks needed to get BeOS to compile for M14. For now, we use the Unix local file implementation. a,r=leaf 2000-02-17 20:24:24 +00:00
blizzard%redhat.com 893726aa30 fix windows build bustage 2000-02-17 16:08:53 +00:00
blizzard%redhat.com 33ad4046c8 change nsIFile::Spawn to take an array of arguments instead of just a single flat string. bug #27843. r=dougt, a=chofmann. also, implement nsIFile::Normalize for unix. bug #17948. r=shaver, a=chofmann 2000-02-17 15:35:54 +00:00
dougt%netscape.com d8011b81b2 Optimization for shortcut resolution. r=dveditz. 2000-02-15 21:28:13 +00:00
mkaply%us.ibm.com bf5f8196bc # 25555
r= jdunn@netscape.com
OS/2 changes for Mozilla
2000-02-15 15:32:46 +00:00
dougt%netscape.com be8b07f605 checking in makefile to build the interface nsIDirectoryService 2000-02-11 05:12:20 +00:00
dougt%netscape.com ec95c74bd3 removing unneed file. r=smfr. 2000-02-11 05:09:18 +00:00
dougt%netscape.com c971d059e6 first checking 2000-02-11 05:04:53 +00:00
dougt%netscape.com 786d739d67 Fix from warren to check for the return val of Clone.
Also adding extra ('s around a arguably confusing if statement
r=warren
2000-02-11 04:50:23 +00:00
rhp%netscape.com 58322257df Fix to escape quotes along with the other special characters - Bug #: 27039 - r: bienvenu 2000-02-11 01:32:20 +00:00
nhotta%netscape.com ff36f4f489 Added a function to return path name in unicode, contributed by m_kato@ga2.so-net.ne.jp, edited by nhotta, bug 22863, r=ftang. 2000-02-11 01:08:56 +00:00
colin%theblakes.com b7dc0ab46a Only a read of 0 means EOF. r=dougt 2000-02-11 00:50:58 +00:00
colin%theblakes.com 990f93bd5d Make filespec comparisons case-blind for OpenVMS. Fix build problem for OpenVMS. r=dougt 2000-02-10 10:54:55 +00:00
dp%netscape.com 11c836772b Fixing build bustage. 2000-02-09 08:47:51 +00:00
dougt%netscape.com 344d3e79cc Making unix act like the rest of the platforms. It now return zero for the
size if the nsIFile is really a directory.
2000-02-09 08:09:35 +00:00
dougt%netscape.com aa9a6b79c3 Fix for bug 26816. submitted by bns_robson@hotmail.com. windows only.
memory leak fix.
2000-02-08 04:25:00 +00:00
dveditz%netscape.com 2f965c4c8d added quoting so we can execute windows files with spaces in their names -- such as anything in a subdir of 'Program Files' 2000-02-06 10:09:16 +00:00
sdagley%netscape.com 8bb810068e Added comment warning that the file size attribute only deals with the data fork on the Mac and point to Mac specific interface for dealing with the size of the combined forks. r=none as this is just cleanup. 2000-02-04 23:06:56 +00:00
dougt%netscape.com b6f0b9e262 Empowering the world. Bug. 25374, basically we create a directory without
the correct permission.
r=racham&&mozbot.
2000-02-04 22:57:37 +00:00
mscott%netscape.com 83547ed348 Back out the changes to the pipe code to fix regression bugs: 26533 and one i forgot the number of. =)
r=warren
a=leaf
2000-02-04 21:45:46 +00:00
warren%netscape.com cd6e6d6513 Fix for bug 24996 - moving file creation from nsStreamXferOp into nsFileTransport where it belongs. r=mscott 2000-02-04 08:33:17 +00:00
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
shaver%netscape.com 90e6e9f4e7 add IsChildOf, and dougt's relative-path-handling diff 1999-09-03 23:44:59 +00:00
duncan%be.com 01abb3a4a1 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 48971bb399 more changes from conversations with brendan@mozilla.org 1999-09-01 23:51:11 +00:00
cata%netscape.com 0f0d23b266 Fixing build warnings. Step 2: switch to use new method from the interface. 1999-09-01 22:50:50 +00:00
mscott%netscape.com 4f0839f8cc 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 9577b5cefa Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 00:54:34 +00:00
warren%netscape.com efb0c1cd5d 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 d982990ad0 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 14736d27f9 Fix build bustage. Thanks waterson! Sorry about that. 1999-08-30 01:06:54 +00:00
bruce%cybersight.com b1400e0dad Fix warning from my last checkin. 1999-08-30 00:51:56 +00:00
bruce%cybersight.com dc30d7bfda 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 073e97ad3b 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 07a5b957af 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 5db8e5c734 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 01f1e066fb plugged a memory leak in GetCString(). 1999-08-27 03:47:43 +00:00
warren%netscape.com 14a7d6b930 Reset cursors on Empty. 1999-08-26 00:25:43 +00:00
warren%netscape.com dc3ba6ab81 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 ce7a03de0f more changes based on feedback. 1999-08-25 06:11:14 +00:00
brendan%mozilla.org defeffaabd 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 f12b07d23a more changes as suggested by warren@netscape.com 1999-08-24 21:51:32 +00:00
dougt%netscape.com af3251ade3 renaming nsIDirectoryIterator.idl to nsIDirectoryEnumerator.idl 1999-08-24 20:22:21 +00:00
pavlov%netscape.com 4e458bc8f5 isHidden was returning backwards results 1999-08-24 18:32:06 +00:00
warren%netscape.com 8e8c466e58 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 ecd21a0336 Added -- supercedes nsIBuffer.h 1999-08-24 04:54:56 +00:00
dougt%netscape.com 325e6127c6 a real iid. 1999-08-24 03:59:07 +00:00
dougt%netscape.com 7df36efe6f First cut of an IDL for a replace of the nsDirectoryIterator class. 1999-08-24 00:47:41 +00:00
dougt%netscape.com 58c8f1c12b Adding Append() and ResolveSymlink() 1999-08-24 00:47:02 +00:00
scc%netscape.com 68340a37ef 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 7981dba18d Added |GetIID| 1999-08-22 20:54:08 +00:00
mccabe%netscape.com 381fb81c4f Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO. 1999-08-22 11:25:50 +00:00
dougt%netscape.com 0fb6e99473 first cut of a new file class. 1999-08-21 07:38:26 +00:00
dougt%netscape.com 792e1f744a 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 1b0d4c2a85 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 a85217672a Fix for bug 9007 submitted by david.gardiner@unisa.edu.au. 1999-08-10 23:00:53 +00:00
warren%netscape.com 563d8e59a5 Removed crtdbg.h 1999-08-10 20:30:45 +00:00
mcafee%netscape.com 9af30238a1 Fixing linux bustage, I can't find crtdbg.h in the tree. 1999-08-10 20:11:25 +00:00
warren%netscape.com d843a8f952 Added nsSegmentedBuffer.cpp and nsPipe2.cpp to build. 1999-08-10 19:21:17 +00:00
warren%netscape.com a56c79fa7d Added new pipe implementation -- simpler and faster. 1999-08-10 19:18:39 +00:00
warren%netscape.com 8f99a6da43 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 2a403483de 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 27b6432552 fix constructor warning 1999-08-07 20:06:38 +00:00
pinkerton%netscape.com 7a45f9e75f remove interface and impl of nsFileSpec::ResolveAlias() because it is obsolete. 1999-08-03 04:51:45 +00:00
briano%netscape.com 9ce9036be3 Fix for SCO OpenServer. 1999-07-31 19:33:36 +00:00
dougt%netscape.com c7f4c61668 Changing nonscriptable to noscript. 1999-07-31 17:37:29 +00:00
duncan%be.com 6b45701716 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 b1cecd9cfd make mPath canonical after resolving the symlink. a=mcafee. 1999-07-29 20:14:42 +00:00
dougt%netscape.com d1f9df9cb9 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 131a753df2 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 17a4c1fb71 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 e45ae9e281 Change ResolveAlias to ResolveSymlink. dougt should have done this. 1999-07-27 23:05:53 +00:00
dveditz%netscape.com 0a3b32f604 fixes VC5 link bustage, but I feel dirty 1999-07-27 00:57:50 +00:00
dougt%netscape.com 5adb63dcaf Fix for bug 10177 and 10041. 1999-07-26 22:09:42 +00:00
waterson%netscape.com 967b12bf6f CID not IID! 1999-07-22 07:33:24 +00:00
scc%netscape.com 16e2ba6a23 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 564cbd2dcf Fix for NTO, which uses statvfs. 1999-07-22 01:31:43 +00:00
briano%netscape.com f31e122fa0 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 42645abb4e duh. 1999-07-21 18:18:09 +00:00
dougt%netscape.com 1a1d8aed32 fix for bug: 10260
removed warning in nsIFileStream.cpp
1999-07-21 17:56:01 +00:00
rods%netscape.com b34b269d43 Fixed extra ref count problem for blocker bug 10138 1999-07-20 14:29:43 +00:00
warren%netscape.com bf8423a769 Changed around load group insertion/removal to happen on mozilla thread. 1999-07-20 08:46:33 +00:00
beard%netscape.com a59b3b2577 explicitly include <limits.h> for ULONG_MAX 1999-07-17 02:04:20 +00:00
slamm%netscape.com e0e88a7374 Fix build warnings. 1999-07-16 21:47:03 +00:00
kipp%netscape.com dd6cf0e923 Removed a compiler warning 1999-07-16 17:40:39 +00:00
rods%netscape.com 806aa0f5c0 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 59b497a52e 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 026c5516bc add the touch interface to the nsIFileSpec iterface and the appropriate implementations 1999-07-13 19:10:43 +00:00
briano%netscape.com 999cc9155b 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 0117937f12 Removed obsolete Fill methods. Added NonBlocking attribute. 1999-07-10 11:27:11 +00:00
dp%netscape.com e52a749a8e Fixed
- Mismatched alloc/free
- Guarded against null pointer and crash bug#8830
1999-07-09 03:41:27 +00:00
rpotts%netscape.com 9fa065c901 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 605efa0d0d 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 311c81e3b5 Another makefile that clobbers DEFINES. 1999-07-07 21:22:55 +00:00
gayatrib%netscape.com 397cc25c70 Added Recursive Copy routine 1999-07-07 01:02:16 +00:00
racham%netscape.com f8b608df1f Removing check for mpath in Recursive copy routine 1999-07-06 22:41:42 +00:00
racham%netscape.com 4268c36ec5 Adding RecursiveCopy interface 1999-07-05 01:39:42 +00:00
warren%netscape.com edf100b695 Fixed bug in string stream length. 1999-07-03 06:49:28 +00:00
sspitzer%netscape.com 1e09f57346 bulletproofing changes. check return value and return it if error. 1999-07-02 06:31:31 +00:00
scc%netscape.com f79508bc68 |nsISupports::GetIID()| --> |nsCOMTypeInfo<nsISupports>::GetIID()| 1999-06-29 21:01:31 +00:00
mcafee%netscape.com 7f42e390e5 BeOS changes 1999-06-29 10:27:58 +00:00
mcafee%netscape.com e78449776b Changes for OS/2. 1999-06-28 22:41:48 +00:00
alecf%netscape.com 3530f56bdb add [ptr] version of nsFileSpec 1999-06-26 20:27:28 +00:00
mcafee%netscape.com 0ac72153ad BeOS landing; thanks to Duncan Wilcox (duncan@be.com) for these changes. 1999-06-25 10:56:50 +00:00
mcmullen%netscape.com 0a212c8078 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 b080114c02 Changed to reference parameters (to avoid copying of objects onto the stack) 1999-06-22 05:03:30 +00:00
mcmullen%netscape.com 105f232c9a 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 97f562cfc2 Fixed problems with GetReadSegment after eof. 1999-06-21 21:05:07 +00:00
warren%netscape.com f6e890721b Making buffers work better. Now out-of-memory is handled properly. 1999-06-19 22:23:18 +00:00
warren%netscape.com 158480b852 Fixed bug causing Flush to block forever. Changed nsAutoMonitor to nsAutoCMonitor (cached monitors). 1999-06-16 04:15:15 +00:00
dp%netscape.com dac3ef10b8 Registry location and filename added. 1999-06-16 00:26:43 +00:00
dp%netscape.com 68f9d31d22 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 835181d19d Added a null test 1999-06-15 09:31:49 +00:00
mcmullen%netscape.com 1305107e9a 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 d1a7f6e578 Added PR_LOG stuff. 1999-06-15 04:57:07 +00:00
ducarroz%netscape.com c2d00a4de9 fix for bug 8029. ResolveAlias should not set the nsFileSpe's internal error mError if the file doesn't exist which is a legal state during the creation of an nsFileSpec object. 1999-06-15 02:19:23 +00:00
mcmullen%netscape.com 41bafe8c4e Fix casting problem 1999-06-14 22:55:24 +00:00
mcmullen%netscape.com 1c381a5f09 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-14 22:05:41 +00:00
mcmullen%netscape.com a7567e39b2 Added constructors from new nsIFileSpec 1999-06-14 22:04:27 +00:00
dp%netscape.com d9f0f1c296 Removing obsolete files from xpcom. 1999-06-12 15:54:46 +00:00
rpotts%netscape.com 6b42522ecc Added a new stream return code - NS_BASE_STREAM_FULL. This is returned when a stream is full and must be read before more data can be added... 1999-06-12 08:50:24 +00:00
rpotts%netscape.com 40e0f4af98 if no more data is available when reading a non-blocking input stream then return either WOULD_BLOCK or NS_OK... But exit the loop to prevent spinning! 1999-06-11 08:25:57 +00:00
mcmullen%netscape.com 3569a7afa5 Added bulletproofing for null buffer parameters 1999-06-10 19:51:36 +00:00
mcmullen%netscape.com 2a3a60880a Don't try to call strlen() on a null string. 1999-06-10 02:24:21 +00:00
mscott%netscape.com c6dc4056a4 Remove warning introduced by an unused variabled into NS_NewFileSpecWithSpec. 1999-06-09 21:09:55 +00:00
mscott%netscape.com dd0e6fd5c5 Adding NS_NewFileSpecWithSpec for C++ code which allows you to create a nsIFileSpec given a nsFileSpec. 1999-06-09 20:49:39 +00:00
dp%netscape.com 18bd0d6a6f Cleaning up silliness. 1999-06-09 19:17:50 +00:00
ramiro%netscape.com f7a6ed8848 Port to KCC. 1999-06-09 10:20:12 +00:00
warren%netscape.com 0b2245488a Cleaned up the nsIBuffer interface, added comments, etc. 1999-06-09 06:41:32 +00:00
warren%netscape.com 47becf5b56 Added nscore.h to nsrootidl.idl for PRUnichar. 1999-06-09 03:19:10 +00:00
warren%netscape.com b113f2332f Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams. 1999-06-08 20:57:32 +00:00
warren%netscape.com c427020eb4 Added nsIBuffer::Search and cleaned up nsIBufferInputStream interface to just return the buffer. 1999-06-05 01:15:00 +00:00
warren%netscape.com 12e737f1f8 Added 1999-06-04 23:58:05 +00:00
warren%netscape.com 7eb0f39a0f Removed stream files from manifest. 1999-06-03 23:52:13 +00:00
warren%netscape.com 5270a7ae47 Removed obsolete files for mac. 1999-06-03 23:35:18 +00:00
warren%netscape.com e0e31bb3e6 Added nsIBufferInputStream.idl 1999-06-03 23:10:11 +00:00
pinkerton%netscape.com c82bb88906 adding new stream idl files. 1999-06-03 23:03:53 +00:00
warren%netscape.com 00a8591812 IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom). Added nsIBufferInputStream for peek capability. 1999-06-03 21:51:09 +00:00
warren%netscape.com cbbfa208f8 IDLized stream interfaces. Required rename of overloaded Write method (now WriteFrom). 1999-06-03 21:50:47 +00:00
waterson%netscape.com bd60dc35e4 Fix XPIDL_MODULE typos. 1999-06-03 20:06:49 +00:00
mcmullen%netscape.com 11577f187c Fix to #6398 using patch provided by jim_nance@yahoo.com (who does, apparently, yahoo). 1999-06-03 01:40:47 +00:00
mcmullen%netscape.com a0a9c730ae Alias resolution now happens almost any time a spec is created from a non-spec. Needed to make things work properly. 1999-06-03 01:28:52 +00:00
rjc%netscape.com 4331961643 Add ability to find "Internet Search Sites" folder on Mac. 1999-06-02 00:12:10 +00:00
ducarroz%netscape.com 785984e4b5 fix for bug 7329. MAC ONLY: if a file doesn't exist while doing an open and the flag PR_CREATE_FILE is set shouldn't abort. 1999-05-29 21:27:18 +00:00
ducarroz%netscape.com 211b73619b fix for bug 7329. Deleteting a file that doesn't exist should not invalidate the nsFileSpec. 1999-05-29 21:27:16 +00:00
mcmullen%netscape.com c15d25fd24 Return value 1999-05-29 01:51:02 +00:00
mcmullen%netscape.com 3548811759 Use NS_COM (not NS_BASE) 1999-05-29 01:29:28 +00:00
mcmullen%netscape.com 4d64e4b62d Moved widgetry out. 1999-05-29 01:28:25 +00:00
mcmullen%netscape.com 5a9665a03c Moved widgetry out of xpcom 1999-05-29 01:26:53 +00:00
mcmullen%netscape.com 1db81de2ad Moving widgetry out of xpcom 1999-05-29 01:08:22 +00:00
dp%netscape.com a3511369fa Fixed crasher bug# 7311 by removing aggregation. Both constructors need to take an additional parameter that will initialize the outer need to happen. Doing the bigger change of introducing aggregation later 1999-05-28 22:09:32 +00:00
dp%netscape.com ce1b8d07bd Added aggregation. Implemented Create() so that the GenericFactory can create IFileSpec
Objects if registered.
1999-05-28 00:50:42 +00:00
dp%netscape.com 87abaa38bd Adding progid and classname 1999-05-27 22:47:27 +00:00
dougt%netscape.com 76fecde661 removing an evil and unneeded delete []. 1999-05-27 22:02:17 +00:00
mcmullen%netscape.com 49b21daf26 First Checked In. 1999-05-27 17:59:00 +00:00
sspitzer%netscape.com c6e0e5e2df cvs ignorage for xpcom2 landing 1999-05-26 17:51:05 +00:00
dp%netscape.com 94344009c8 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
warren%netscape.com 0142cb7a14 Added 1999-05-18 21:43:13 +00:00
dp%netscape.com 34b30431ba Initial version 1999-05-18 09:11:01 +00:00
sspitzer%netscape.com ed6326405e make the destructor virtual 1999-05-13 00:48:42 +00:00
mcmullen%netscape.com bb815af574 Fix badness when nsFilePath is initialized with a nil or empty string. 1999-05-12 22:56:24 +00:00
mcmullen%netscape.com 6da6f2e50d Assert when nsFileSpec gets a unix path 1999-05-12 00:17:53 +00:00
mcafee%netscape.com de36a26dbc Class nsprPath has been renamed to nsNSPRPath; straggler references were being converted with a typedef, this was confusing Solaris, so I'm converting all nsprPath references to the new name, hope that's Ok. 1999-05-10 05:34:26 +00:00
briano%netscape.com 227c87aa79 Fix for AIX, Solaris, OSF/1, and probably others. 1999-05-08 06:24:27 +00:00
mcmullen%netscape.com ff58eed078 Fix nsFileSpec to take native paths in constructors and assignment operators. Fix += to work with relative paths on Macintosh. Remove dependency of nsFileSpec on streams (so that dp can move nsFileSpec). 1999-05-08 01:18:23 +00:00
mcmullen%netscape.com 9ece6fc6eb These staged checkins can be tricky. 1999-05-08 00:57:57 +00:00
mcmullen%netscape.com fc15f532fe Updated a comment. 1999-05-08 00:21:46 +00:00
mcmullen%netscape.com 137bc375dd First Checked In. 1999-05-07 22:03:31 +00:00
alecf%netscape.com 0b0bb227b9 fix possible uninitialized variable 1999-05-04 20:49:20 +00:00
mcmullen%netscape.com f84f3b56d8 So much for that last touchup between building and committing... 1999-05-04 19:39:15 +00:00
mcmullen%netscape.com 6513d12e94 Fix double-escaping problem (#4184) 1999-05-04 19:11:31 +00:00
mcmullen%netscape.com b81996e890 Fix an error in the previous checkin. 1999-05-03 23:14:28 +00:00
mcmullen%netscape.com 9caf9d55f4 Check for a null path before calling stat() and friends (bug #5576). a=chofmann. 1999-05-03 20:29:01 +00:00
warren%netscape.com 88d6a3a41a Added page manager, buffer, buffer streams and pipes stuff. 1999-04-30 22:55:12 +00:00
mcmullen%netscape.com 22000d46f3 Use CRLF on windows for nsEndl() 1999-04-27 21:26:15 +00:00
mcmullen%netscape.com f973c46a0f Fixed two small problems in Macintosh-only parts of the code. 1999-04-27 02:12:22 +00:00
mcmullen%netscape.com 6d0c689cd2 Checkin based on patches submitted by Michael Lowe - #5473. Adds support for a large number of special windows directories. 1999-04-26 22:20:23 +00:00
mcmullen%netscape.com 6145ac6cde Patch from Michael Lowe (part of #5473) replace true by PR_TRUE 1999-04-26 19:34:39 +00:00
mcmullen%netscape.com 64f5c7dbe1 Leakage and mismatch of allocate/free methods (patches submitted by Bruce Mitchener). Bug #5140. 1999-04-26 19:05:00 +00:00
bruce%cybersight.com 0026fb64c2 Fix for a comment. 1999-04-25 13:31:05 +00:00
bruce%cybersight.com 0d9976da76 Old patches for non-virtual vs virtual destructors (approved by Troy) 1999-04-25 04:57:38 +00:00
scc%netscape.com b7e35a36a2 removed the non-|const| version of |nsAutoCString::operator const char*| since the const version serves in both |const| and non-|const| situations, and will be ambiguous to many compilers. 1999-04-24 18:40:36 +00:00
mcmullen%netscape.com 560d9107f8 Bug #4184. Before unescaping a path, call ReAllocData. 1999-04-23 21:32:57 +00:00
mcmullen%netscape.com 5cb578f764 Corrected spelling in some comments. 1999-04-23 20:27:38 +00:00
mcmullen%netscape.com 5dfc810099 Made GetCatInfo method public (XP_MAC only) 1999-04-23 17:18:24 +00:00
dougt%netscape.com 0fc496898a Fixes Bug 5300 http://bugzilla.mozilla.org/show_bug.cgi?id=5300 1999-04-23 06:32:40 +00:00
warren%netscape.com c289c670cd Added Write(nsIInputStream) and Flush to nsIOutputStream. 1999-04-22 07:31:03 +00:00
sfraser%netscape.com 385eb491ab Look for types.h in the system headers. 1999-04-22 04:34:59 +00:00
mcmullen%netscape.com 0c1a07d566 Oops. 1999-04-20 19:31:11 +00:00
mcmullen%netscape.com 71ef3f328e Correct a problem my last change to GetParent() introduced. 1999-04-20 19:09:22 +00:00
mcmullen%netscape.com 7910e844e2 Fixed GetParent() on windows and unix (was incorrect for directories whose paths end in a separator). 1999-04-19 22:07:42 +00:00
mcmullen%netscape.com 9cf74711ef Added unix home directory 1999-04-15 22:45:41 +00:00
dougt%netscape.com 8ae3e61271 Now using PL_* functions in nsprPath()
ifdef'ing the deallocation of nsprPath()
1999-04-15 19:39:23 +00:00
mcmullen%netscape.com 485041bf40 An "oops" correction in the previous checkin. 1999-04-15 02:17:41 +00:00
mcmullen%netscape.com fff6074880 Fixed two warnings and added a method with a shorter name because of bug in VC++ compiler 1999-04-15 01:11:42 +00:00
mcmullen%netscape.com 913495ef87 Fixed compiler warning. 1999-04-15 01:07:20 +00:00
mcmullen%netscape.com 9d7f18bdf8 Support unix paths .. and . in the path conversion routine. 1999-04-15 01:06:55 +00:00
mcmullen%netscape.com 17fe680b62 Fix backwards failure logic 1999-04-15 01:06:03 +00:00
warren%netscape.com bcdbab63da Fixed comment. 1999-04-13 18:26:53 +00:00
warren%netscape.com 142b615dba Added NS_NewPipe and cleaned up ByteBufferInputStreams. 1999-04-13 18:17:29 +00:00
warren%netscape.com f84a7f15ec Added header. 1999-04-13 18:15:49 +00:00
warren%netscape.com cfc02faedf Fixed EOF condition. 1999-04-13 18:15:41 +00:00
bruce%cybersight.com 5b0e694071 Adding blank lines for native compilers. 1999-04-13 06:35:42 +00:00
rhp%netscape.com b8a91a8b42 Added nsEscapeHTML() function 1999-04-12 20:23:21 +00:00
briano%netscape.com 7cd74587cd Cleaned up the statfs mess at the beginning to make use of configure's power. 1999-04-10 01:13:02 +00:00
dougt%netscape.com 76fb8170a9 Make the windows specific code use nsprPath. 1999-04-10 00:30:23 +00:00
dougt%netscape.com ddc1a6b6ba Adding nsprPath class.
Removing existing check when creating subdirectories.
1999-04-10 00:29:20 +00:00
dougt%netscape.com a33cbfa6ce Adding nsprPath class.
Changing comments to reflect the real world.
1999-04-10 00:27:09 +00:00
mcmullen%netscape.com da1f481b1e Bug #4619. When at eof, get() was returning undefined character. Now returning 0. 1999-04-08 17:31:00 +00:00
mcmullen%netscape.com 2c21cb44b2 memset a buffer to 0, to avoid Solaris UMR diagnostics. 1999-04-06 20:10:50 +00:00
warren%netscape.com 2d2d0d48be Added nsIByteBufferInputStream. 1999-04-06 01:43:52 +00:00
warren%netscape.com 52ed9a5cae Added copyright. 1999-04-05 21:01:33 +00:00
rickg%netscape.com 9719abb145 API cleanup for nsString 1999-04-05 08:06:54 +00:00
dp%netscape.com e6a86ec777 Added Current Working Directory 1999-04-03 17:17:49 +00:00
mcmullen%netscape.com 21744e4f8d Just added a divider comment. 1999-04-01 20:07:52 +00:00
mcmullen%netscape.com ae221e38a6 Fixed an illegal preprocessor directive. 1999-04-01 20:06:46 +00:00
mcafee%netscape.com 2487b0b4a8 Simplifying SCO case. 1999-04-01 05:16:32 +00:00
mcafee%netscape.com 2351aa3b9a Adding support for NTO. 1999-04-01 05:06:34 +00:00
mcafee%netscape.com 291d034bd2 Simplifying ifdef logic in preparation for jump to hyperspace (autoconf) 1999-04-01 05:02:32 +00:00
dougt%netscape.com 694908155a Fixes off by one error. 1999-03-31 05:04:28 +00:00
sspitzer%netscape.com 1797b45114 removed aErrorCode from the comment.
aErrorCode is no longer a parameter to Read()
1999-03-25 03:00:04 +00:00
bienvenu%netscape.com 46d901db87 fix problem with SetLeafName r+a=mcmullen 1999-03-22 19:15:30 +00:00
pavlov%pavlov.net 422db61565 add a cast to fix build problems on the ports tinderboxes. 1999-03-21 15:42:44 +00:00
dougt%netscape.com 8929a4a930 Fixing unix breakage. 1999-03-21 06:57:56 +00:00
dougt%netscape.com aae2baf3ab 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 5ad7970d08 oops, back out my old patch - caused more harm than good 1999-03-20 02:41:27 +00:00
alecf%netscape.com 8f120bbb86 fix newline and end of file problem 1999-03-20 02:34:54 +00:00
alecf%netscape.com c9eb80041f there is no header file on unix that actually includes this path. wierd. 1999-03-20 02:34:31 +00:00
mcmullen%netscape.com 1e294da835 FIxing another unix problem. 1999-03-20 01:13:35 +00:00
mcmullen%netscape.com 7e8e0f5edf Fix unix bustage. 1999-03-20 00:13:08 +00:00
mcmullen%netscape.com fb1366b389 Bugs #3997, 3934 1999-03-19 23:09:39 +00:00
mcafee%netscape.com a162c08245 Solaris needs prototype for PR_GetEnv(). 1999-03-18 22:41:24 +00:00
mcafee%netscape.com 45222c3ee8 Switch to PR_GetEnv(), warn once if MOZILLA_FIVE_HOME is not set. 1999-03-18 22:38:25 +00:00
mcmullen%netscape.com 40c246f552 Fixes for bugs #3779,#2784. Member initialization of nsFileURL for windows compiler, escaping of url when made from path or spec, add file:// on macintosh when making a url from a spec. [bugs introduced when, for dp, I changed nsFilePath not to escape]. a=chofmann. 1999-03-16 19:12:51 +00:00
mcmullen%netscape.com e4f00591a3 Fix a parameter type. 1999-03-13 07:07:33 +00:00
mcmullen%netscape.com 6fcc5b6293 Upgrades, bugfixes (including nsFilePath no longer hex escaped). Features (including DiskSpaceAvailable) 1999-03-13 06:38:57 +00:00
mcmullen%netscape.com 981da23e83 Fixed crashing bug on solaris. Added support for mac documents directory. 1999-03-12 22:15:02 +00:00
mcmullen%netscape.com c9be804cc0 Added mac documents directory. 1999-03-12 22:14:08 +00:00
dp%netscape.com 72ea641bee Unix: Adding MOZILLA_FIVE_HOME 1999-03-11 21:31:16 +00:00
mcmullen%netscape.com 80f1f01149 Fixed bustage with typo. 1999-03-10 21:41:43 +00:00
mcmullen%netscape.com 0e3fcaece6 Added GetModDate and GetFileSize. Fixed a crash with a strcmp of null. 1999-03-10 21:02:58 +00:00
mcmullen%netscape.com 21ca81038c Added output streamers for int and unsigned int. 1999-03-10 20:56:38 +00:00
dougt%netscape.com 3d1e8b68ac No longer shifting windows nsFileSpec's mPath to uppercase.
Now comparing without regard to case instead on windows.
Windows nsSpecialSystemDirectory will have all uppercase mPaths.
1999-03-10 20:07:10 +00:00
mcafee%netscape.com 2fffe8836f Solaris needs newline at EOF. 1999-03-10 10:57:05 +00:00
waterson%netscape.com 0bf57d8673 Change PATH_MAX to MAXPATHLEN to compile on Solaris. 1999-03-10 07:21:09 +00:00
waterson%netscape.com 1eaee30e85 Added OS_CurrentProcessDirectory implementation. Thanks to RJC for Mac. Unix is still bogus: uses getcwd(). 1999-03-10 06:07:21 +00:00
mcmullen%netscape.com a8038ec488 Change assignment operator not to create dirs. 1999-03-10 02:50:16 +00:00
mcmullen%netscape.com 734ffedf47 Turning on dougt's special system directory stuff, and adding it to the Macintosh build. Fixed spurious leading slash on getting leaf name (win and unix). Adding dougt's equality test operator, too. Adding dougt's test code for all the above. 1999-03-09 22:33:36 +00:00
warren%netscape.com 4b2d56fbaa nsRepository -> nsIComponentManager changes. 1999-03-09 09:44:27 +00:00
brendan%netscape.com ec67fd947d Must use defined XP_UNIX, not XP_UNIX, as #elif condition. 1999-03-09 02:46:23 +00:00
mcmullen%netscape.com 9001472b4c Fix a unix warning 1999-03-05 23:00:57 +00:00
mcmullen%netscape.com 9798175c73 Removed the offset parameter from the base stream interfaces. Implemented string streams. 1999-03-05 22:53:56 +00:00
ramiro%netscape.com dac043b760 Filename was misspelled. Broke unix. Blessed by cyeh. 1999-03-05 21:29:26 +00:00
mcmullen%netscape.com da9bbfc238 First Checked In. 1999-03-05 20:55:10 +00:00
dougt%netscape.com 060b968818 adding nsSpecialSystemDirectory.cpp to windows makefile.
Fixed MakeAllDirectory bug in nsFileSpec.cpp
1999-03-05 20:20:22 +00:00
dougt%netscape.com a435f91e27 Initial Checkin 1999-03-05 20:17:47 +00:00
mcafee%netscape.com 6374afae38 Uninitialized variables 1999-03-05 04:20:54 +00:00
scc%netscape.com 2ec0a397ea rename |IID()| --> |GetIID()| 1999-03-03 19:48:57 +00:00
alecf%netscape.com cb61663ab3 fix HPUX bustage - confused by too many similar constructors 1999-03-02 19:23:06 +00:00
alecf%netscape.com 88fe8762de fix linux -pedantic build - compiler confused by too much casting 1999-03-02 01:41:45 +00:00
mcmullen%netscape.com 27844bd641 Fix Windows build errors 1999-02-28 02:51:53 +00:00
mcmullen%netscape.com 290b78c91a Fix unix build errors 1999-02-28 02:17:55 +00:00
mcmullen%netscape.com bb050ec460 Fix const problem. 1999-02-28 01:55:23 +00:00
mcmullen%netscape.com f672d26a46 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 a51a1d23cc Switching false/true over to PR_FALSE/PR_TRUE 1999-02-26 19:47:48 +00:00
mcafee%netscape.com 3d6f3bbe9f Switching one last bool to PRBool. a=mcmullen 1999-02-26 19:22:43 +00:00
alecf%netscape.com 51d9e33467 fix -pedantic bustage - Delete isn't const, so re-cast "this" 1999-02-26 17:56:44 +00:00
dougt%netscape.com ec7d3e520a Remove #ifdef DEBUG 1999-02-26 00:14:57 +00:00
dougt%netscape.com d66208f9ae Another fix to the build bustage. 1999-02-25 22:17:25 +00:00
dougt%netscape.com 52eff30465 This should make the tree go green. It, however, makes nsPersistentFileDescriptor broken if you pass an fsspec. 1999-02-25 22:04:50 +00:00
dougt%netscape.com 9aef7730c4 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
mscott%netscape.com 04019f6070 Implement operator= for nsFilePath when given an nsFilePath. a=mcmullen... 1999-02-23 03:10:29 +00:00
brade%netscape.com b553b3670f add prototype to reduce warnings on Macintosh compiler 1999-02-19 16:13:47 +00:00
mcmullen%netscape.com 0064c92613 Backing out previous change from the trunk, because it was supposed to have gone in on a branch. 1999-02-18 00:45:07 +00:00
mcmullen%netscape.com 36703ad10e Updated to match the header changes I've been making. Also, added the declaration of the persistent filespec class. 1999-02-18 00:35:39 +00:00
warren%netscape.com 78c67590e0 Added missing definition of nsFilePath::nsFilePath(const nsFilePath&) 1999-02-17 18:20:27 +00:00
beard%netscape.com 3758bddef4 Fixed += operator, which would only work if you had a file or folder called "G'day" in the input directory. 1999-02-12 00:48:35 +00:00
mcmullen%netscape.com 83b7cdb328 Improved the readline() comment, as it was not quite clear. 1999-02-04 19:25:59 +00:00
cata%netscape.com c277c4a8e9 Hacky Unicode converters implementation replaced with the real xpcom thing. 1999-02-03 18:55:10 +00:00
mscott%netscape.com 742d43db9c Use NS_BASE when defining the nsEscape functions. 1999-01-28 00:32:34 +00:00
mscott%netscape.com cee8b969b7 use NS_BASE when declaring the nsEscape functions so they get exported. 1999-01-28 00:30:57 +00:00
waterson%netscape.com 2b77c74973 Got Win32-specific stuff up and running. This caused a bit of code-juggling in the Unix and Mac implementations. a=mcmullen. 1999-01-26 23:49:33 +00:00
ftang%netscape.com 3759b987f5 change nsCharSetID into nsString type 1999-01-25 16:05:04 +00:00
donm%netscape.com fbc3fa0929 fixing includes for solaris. -donm 1999-01-07 21:03:42 +00:00
mcmullen%netscape.com 3a010aa9ec Fix unused parameter warning. 1999-01-07 02:11:24 +00:00
kipp%netscape.com 51674f84ac Make it compile on windows 1999-01-07 01:46:22 +00:00
mcmullen%netscape.com c8b50d42a1 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 4d29219473 Simplify the console case, so that Windows does not think it has to compile with exception handling. 1998-12-29 00:24:32 +00:00
mcmullen%netscape.com 6d0e6f09d0 Allow partial paths. 1998-12-24 00:01:32 +00:00
law%netscape.com a7d859328e Add nsFile* to Windows build 1998-12-22 20:01:41 +00:00
mcmullen%netscape.com d1599a66e6 Added an NS_BASE for windows. 1998-12-18 23:30:44 +00:00
mcmullen%netscape.com 7a7045d044 Rewrote the stream stuff to be simple, since Unix build environment cannot even handle ostream and istream. This builds and runs correctly on Linux and Macintosh now. 1998-12-18 23:06:54 +00:00
mcmullen%netscape.com 4b6f7b6aa9 First Checked In. 1998-12-18 22:38:28 +00:00
warren%netscape.com 0580a8e5c4 Networking changes: Reworked nsIURL, adding setters, factoring Open. Unsigned arguments for nsIStreamListener. 1998-12-16 05:40:20 +00:00
mcmullen%netscape.com c3df6e83ac Made all this build on Unix, using Macros up the wazoo 1998-12-15 22:45:09 +00:00
mcmullen%netscape.com da55cc69e0 Deal with the case of a null string. 1998-12-12 02:07:11 +00:00
law%netscape.com 6ea423fbaa Minor fix in operator= 1998-12-12 01:28:28 +00:00
law%netscape.com 72b3ae3e68 Add NS_BASE to cause export from dll on Windows 1998-12-12 01:25:32 +00:00
mcmullen%netscape.com 237f90f8df More windows stuff. 1998-12-11 23:52:31 +00:00
mcmullen%netscape.com c35cd6f254 More windows tweaks 1998-12-11 23:05:24 +00:00
mcmullen%netscape.com e24443adb9 And again. 1998-12-11 18:17:22 +00:00
mcmullen%netscape.com 5ed1d35068 More tweaks. 1998-12-11 03:17:47 +00:00
mcmullen%netscape.com 0b5d962ae9 Some more tweaks to suit various compilers and platforms. 1998-12-11 01:42:04 +00:00
mcmullen%netscape.com 2d4c67ae2c Trying to make this build on unix gcc compilers, I have removed all references to std::string, using char* instead. This almost made me cry (not just because of all the work I had to do over again). 1998-12-09 08:47:30 +00:00
mcmullen%netscape.com 64ac3c15be Tried to make this a little more gcc friendly - created some NS_USING_NAMESPACE/ NS_NAMESPACE ugliness. Sigh. 1998-12-09 05:09:28 +00:00
pinkerton%netscape.com c415f8beaf fix for new universal headers. Don't use PLstringfuncs and add an inline helper to the helper namespace which does the same things. 1998-12-09 01:56:36 +00:00
law%netscape.com e89799a864 Added Windoze support 1998-12-09 01:04:53 +00:00
mcmullen%netscape.com 0fe2983dc3 Polished the interfaces, added long comments in the headers. The next step is checking by Bill Law and Steve Lamm for Win and Unix. Then it's open season. 1998-12-08 22:45:42 +00:00
mcmullen%netscape.com 4e091b7bcf First Checked In. 1998-12-08 22:43:57 +00:00
mcmullen%netscape.com 4e1f4f4572 First Checked In. 1998-12-08 02:22:54 +00:00
mcmullen%netscape.com 0fd0d405c3 First Checked In. 1998-12-08 02:15:50 +00:00
michaelp%netscape.com 837d1a9ae0 added APIs to viewmanager to enable and disable all rendering.
made Refresh() APIs of viewmanager implementation private.
1998-07-24 21:05:50 +00:00
michaelp%netscape.com cde556f1a4 modified streaming APIs to be what the OJI guys want. 1998-07-23 20:34:01 +00:00
kipp 528d80ff81 Init refcnt properly 1998-05-28 18:38:32 +00:00
thom a2729a12bc Mac checkin 1998-05-18 22:47:24 +00:00
rpotts 5d23d41cdf Changed to use the nsIBaseStream as a base class... 1998-05-15 09:40:43 +00:00
rpotts 491d63949d Interface for Output Streams... 1998-05-15 09:40:02 +00:00
rpotts 228e94c619 New interface that all stream interfaces can derive from... 1998-05-15 09:39:37 +00:00
kipp 098bef52b4 moved to pub 1998-04-13 20:24:54 +00:00