Commit Graph

300 Commits

Author SHA1 Message Date
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