Changeset 101944 in vbox for trunk/src/libs/xpcom18a4/xpcom/io
- Timestamp:
- Nov 7, 2023 2:37:39 PM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 160041
- Location:
- trunk/src/libs/xpcom18a4/xpcom/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/io/nsILocalFile.idl
r1 r101944 43 43 %{C++ 44 44 #include "prio.h" 45 #include "prlink.h"46 45 #include <stdio.h> 46 47 #include <iprt/ldr.h> 47 48 %} 48 49 49 50 [ptr] native PRFileDescStar(PRFileDesc); 50 [ptr] native PRLibraryStar(PRLibrary);51 [ptr] native RTLDRMOD(RTLDRMODINTERNAL); 51 52 [ptr] native FILE(FILE); 52 53 … … 105 106 [noscript] FILE openANSIFileDesc(in string mode); 106 107 107 [noscript] PRLibraryStarload();108 [noscript] RTLDRMOD load(); 108 109 109 110 readonly attribute PRInt64 diskSpaceAvailable; -
trunk/src/libs/xpcom18a4/xpcom/io/nsLocalFileUnix.cpp
r101803 r101944 58 58 #include <ctype.h> 59 59 #include <locale.h> 60 #ifdef XP_BEOS61 #include <Path.h>62 #include <Entry.h>63 #include <Roster.h>64 #endif65 #if defined(VMS)66 #include <fabdef.h>67 #endif68 60 69 61 #include "nsDirectoryServiceDefs.h" … … 82 74 #include "nsNativeCharsetUtils.h" 83 75 84 // On some platforms file/directory name comparisons need to 85 // be case-blind. 86 #if defined(VMS) 87 #define FILE_STRCMP strcasecmp 88 #define FILE_STRNCMP strncasecmp 89 #else 90 #define FILE_STRCMP strcmp 91 #define FILE_STRNCMP strncmp 92 #endif 76 #include <iprt/errcore.h> 77 78 #define FILE_STRCMP strcmp 79 #define FILE_STRNCMP strncmp 93 80 94 81 #define VALIDATE_STAT_CACHE() \ … … 1532 1519 1533 1520 NS_IMETHODIMP 1534 nsLocalFile::Load( PRLibrary **_retval)1535 { 1536 CHECK_mPath(); 1537 NS_ENSURE_ARG_POINTER( _retval);1538 1539 *_retval = PR_LoadLibrary(mPath.get());1540 1541 if ( !*_retval)1521 nsLocalFile::Load(RTLDRMOD *phMod) 1522 { 1523 CHECK_mPath(); 1524 NS_ENSURE_ARG_POINTER(phMod); 1525 1526 RTLDRMOD hMod = NIL_RTLDRMOD; 1527 int vrc = RTLdrLoad(mPath.get(), &hMod); 1528 if (RT_FAILURE(vrc)) 1542 1529 return NS_ERROR_FAILURE; 1530 1531 *phMod = hMod; 1543 1532 return NS_OK; 1544 1533 }
Note:
See TracChangeset
for help on using the changeset viewer.