Changeset 101962 in vbox for trunk/src/libs/xpcom18a4/nsprpub
- Timestamp:
- Nov 8, 2023 12:01:00 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160059
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/pr/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prfdcach.c
r1 r101962 254 254 void _PR_InitFdCache(void) 255 255 { 256 /*257 ** The fd caching is enabled by default for DEBUG builds,258 ** disabled by default for OPT builds. That default can259 ** be overridden at runtime using environment variables260 ** or a super-wiz-bang API.261 */262 const char *low = PR_GetEnv("NSPR_FD_CACHE_SIZE_LOW");263 const char *high = PR_GetEnv("NSPR_FD_CACHE_SIZE_HIGH");264 265 256 /* 266 257 ** _low is allowed to be zero, _high is not. … … 275 266 #endif /* defined(DEBUG) */ 276 267 277 if (NULL != low) _pr_fd_cache.limit_low = atoi(low);278 if (NULL != high) _pr_fd_cache.limit_high = atoi(high);279 280 268 if (_pr_fd_cache.limit_high < _pr_fd_cache.limit_low) 281 269 _pr_fd_cache.limit_high = _pr_fd_cache.limit_low; -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c
r101869 r101962 55 55 #endif 56 56 #ifdef VBOX_USE_IPRT_IN_NSPR 57 # include <iprt/env.h> 57 58 # include <iprt/string.h> 58 59 #endif … … 146 147 _pr_logLock = PR_NewLock(); 147 148 148 ev = PR_GetEnv("NSPR_LOG_MODULES");149 ev = RTEnvGet("NSPR_LOG_MODULES"); 149 150 if (ev && ev[0]) { 150 151 char module[64]; /* Security-Critical: If you change this … … 193 194 PR_SetLogBuffering(isSync ? bufSize : 0); 194 195 195 ev = PR_GetEnv("NSPR_LOG_FILE");196 ev = RTEnvGet("NSPR_LOG_FILE"); 196 197 if (ev && ev[0]) { 197 198 if (!PR_SetLogFile(ev)) { … … 255 256 char *ev; 256 257 257 ev = PR_GetEnv("NSPR_LOG_MODULES");258 ev = RTEnvGet("NSPR_LOG_MODULES"); 258 259 if (ev && ev[0]) { 259 260 char module[64]; /* Security-Critical: If you change this -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c
r101961 r101962 295 295 PRIntn fileType; 296 296 297 envVar = PR_GetEnv("NSPR_INHERIT_FDS");297 envVar = RTEnvGet("NSPR_INHERIT_FDS"); 298 298 if (NULL == envVar || '\0' == envVar[0]) { 299 299 PR_SetError(PR_UNKNOWN_ERROR, 0);
Note:
See TracChangeset
for help on using the changeset viewer.