Changeset 101962 in vbox for trunk/src/libs/xpcom18a4/xpcom/io
- Timestamp:
- Nov 8, 2023 12:01:00 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160059
- Location:
- trunk/src/libs/xpcom18a4/xpcom/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/io/SpecialSystemDirectory.cpp
r101866 r101962 49 49 #include <stdlib.h> 50 50 #include <sys/param.h> 51 #include "prenv.h"52 51 # if defined(XP_MACOSX) && defined(VBOX_WITH_NEWER_OSX_SDK) 53 52 # include <Folders.h> … … 55 54 56 55 #endif 56 57 #include <iprt/env.h> 57 58 58 59 NS_COM void StartupSpecialSystemDirectory() … … 85 86 static const char *tPath = nsnull; 86 87 if (!tPath) { 87 tPath = PR_GetEnv("TMPDIR");88 tPath = RTEnvGet("TMPDIR"); 88 89 if (!tPath || !*tPath) { 89 tPath = PR_GetEnv("TMP");90 tPath = RTEnvGet("TMP"); 90 91 if (!tPath || !*tPath) { 91 tPath = PR_GetEnv("TEMP");92 tPath = RTEnvGet("TEMP"); 92 93 if (!tPath || !*tPath) { 93 94 tPath = "/tmp/"; … … 115 116 116 117 case Unix_HomeDirectory: 117 return NS_NewNativeLocalFile(nsDependentCString( PR_GetEnv("HOME")),118 return NS_NewNativeLocalFile(nsDependentCString(RTEnvGet("HOME")), 118 119 PR_TRUE, 119 120 aFile); -
trunk/src/libs/xpcom18a4/xpcom/io/nsAppFileLocationProvider.cpp
r87254 r101962 46 46 #include "nsXPIDLString.h" 47 47 #include "nsISimpleEnumerator.h" 48 #include "prenv.h"49 48 #include "nsCRT.h" 50 49 … … 72 71 #endif 73 72 73 #include <iprt/env.h> 74 74 75 75 // WARNING: These hard coded names need to go away. They need to … … 251 251 NS_ERROR("Don't use nsAppFileLocationProvider::GetFile(NS_ENV_PLUGINS_DIR, ...). " 252 252 "Use nsAppFileLocationProvider::GetFiles(...)."); 253 const char *pathVar = PR_GetEnv("VBOX_XPCOM_PLUGIN_PATH");253 const char *pathVar = RTEnvGet("VBOX_XPCOM_PLUGIN_PATH"); 254 254 if (pathVar) 255 255 rv = NS_NewNativeLocalFile(nsDependentCString(pathVar), PR_TRUE, getter_AddRefs(localFile)); … … 380 380 if (NS_FAILED(rv)) return rv; 381 381 #elif defined(XP_UNIX) 382 rv = NS_NewNativeLocalFile(nsDependentCString( PR_GetEnv("HOME")), PR_TRUE, getter_AddRefs(localDir));382 rv = NS_NewNativeLocalFile(nsDependentCString(RTEnvGet("HOME")), PR_TRUE, getter_AddRefs(localDir)); 383 383 if (NS_FAILED(rv)) return rv; 384 384 #elif defined(XP_BEOS) … … 596 596 #else 597 597 static const char* keys[] = { nsnull, NS_APP_PLUGINS_DIR, nsnull }; 598 if (!keys[0] && !(keys[0] = PR_GetEnv("VBOX_XPCOM_PLUGIN_PATH"))) {598 if (!keys[0] && !(keys[0] = RTEnvGet("VBOX_XPCOM_PLUGIN_PATH"))) { 599 599 static const char nullstr = 0; 600 600 keys[0] = &nullstr; -
trunk/src/libs/xpcom18a4/xpcom/io/nsDirectoryService.cpp
r101866 r101962 49 49 #include <sys/param.h> 50 50 #include <dlfcn.h> 51 #include "prenv.h"52 51 #ifdef XP_MACOSX 53 52 #include <CoreServices/CoreServices.h> … … 63 62 #endif 64 63 #endif 64 65 #include <iprt/env.h> 65 66 66 67 #include "SpecialSystemDirectory.h" … … 173 174 // we only do this if it is not already set. 174 175 #ifdef MOZ_DEFAULT_VBOX_XPCOM_HOME 175 if ( PR_GetEnv("VBOX_XPCOM_HOME") == nsnull)176 PR_SetEnv("VBOX_XPCOM_HOME=" MOZ_DEFAULT_VBOX_XPCOM_HOME);176 if (RTEnvGet("VBOX_XPCOM_HOME") == nsnull) 177 RTEnvPut("VBOX_XPCOM_HOME=" MOZ_DEFAULT_VBOX_XPCOM_HOME); 177 178 #endif 178 179 179 c har *moz5 = PR_GetEnv("VBOX_XPCOM_HOME");180 const char *moz5 = RTEnvGet("VBOX_XPCOM_HOME"); 180 181 181 182 if (moz5)
Note:
See TracChangeset
for help on using the changeset viewer.