Changeset 5107 in vbox
- Timestamp:
- Sep 28, 2007 7:02:15 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r4797 r5107 50 50 #include <iprt/dir.h> 51 51 #include <iprt/file.h> 52 #include <iprt/env.h> 52 53 #include <VBox/err.h> 53 54 #include <VBox/version.h> … … 5041 5042 /* make sure the VM process will start on the same display as VBoxManage */ 5042 5043 { 5043 const char *display = getenv("DISPLAY");5044 const char *display = RTEnvGet ("DISPLAY"); 5044 5045 if (display) 5045 5046 env = Utf8StrFmt ("DISPLAY=%s", display); -
trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp
r4637 r5107 25 25 26 26 #include <iprt/stream.h> 27 #include <iprt/env.h> 27 28 28 29 #ifdef RT_OS_OS2 … … 37 38 #include <VBox/err.h> 38 39 #include <VBox/log.h> 39 #include <stdlib.h>40 40 #include <signal.h> 41 41 … … 122 122 #ifdef RT_OS_WINDOWS 123 123 /* default to DirectX if nothing else set */ 124 if (! getenv("SDL_VIDEODRIVER"))124 if (!RTEnvGet("SDL_VIDEODRIVER")) 125 125 { 126 126 _putenv("SDL_VIDEODRIVER=directx"); … … 184 184 videoInfo->video_mem, 185 185 videoInfo->vfmt->BitsPerPixel, 186 getenv("SDL_VIDEODRIVER"));186 RTEnvGet("SDL_VIDEODRIVER")); 187 187 } 188 188 -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDLTest.cpp
r4071 r5107 23 23 24 24 #include <iprt/assert.h> 25 #include <iprt/env.h> 25 26 #include <iprt/stream.h> 26 27 #include <iprt/string.h> 27 28 #include <iprt/time.h> 28 29 29 #include <stdlib.h>30 30 #include <signal.h> 31 31 … … 90 90 #ifdef RT_OS_WINDOWS 91 91 /* Default to DirectX if nothing else set. "windib" would be possible. */ 92 if (! getenv("SDL_VIDEODRIVER"))92 if (!RTEnvGet("SDL_VIDEODRIVER")) 93 93 { 94 94 _putenv("SDL_VIDEODRIVER=directx"); … … 131 131 RTPrintf(" Optimal bpp mode: %d\n", videoInfo->vfmt->BitsPerPixel); 132 132 char buf[256]; 133 RTPrintf("Video driver SDL_VIDEODRIVER / active: %s/%s\n", getenv("SDL_VIDEODRIVER"),133 RTPrintf("Video driver SDL_VIDEODRIVER / active: %s/%s\n", RTEnvGet("SDL_VIDEODRIVER"), 134 134 SDL_VideoDriverName(buf, sizeof(buf))); 135 135 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r5094 r5107 74 74 #include <iprt/param.h> 75 75 #include <iprt/path.h> 76 #include <iprt/env.h> 76 77 77 78 #if defined (VBOX_GUI_DEBUG) … … 2805 2806 { 2806 2807 #ifdef Q_OS_UNIX 2807 const char *s = getenv("LC_ALL");2808 const char *s = RTEnvGet ("LC_ALL"); 2808 2809 if (s == 0) 2809 s = getenv("LC_MESSAGES");2810 s = RTEnvGet ("LC_MESSAGES"); 2810 2811 if (s == 0) 2811 s = getenv("LANG");2812 s = RTEnvGet ("LANG"); 2812 2813 if (s != 0) 2813 2814 return QLocale (s).name(); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r5078 r5107 43 43 #include <qlayout.h> 44 44 #include <qvbox.h> 45 46 #ifdef Q_WS_X11 47 #include <iprt/env.h> 48 #endif 45 49 46 50 … … 864 868 /* make sure the VM process will start on the same display as the Selector */ 865 869 { 866 const char *display = getenv("DISPLAY");870 const char *display = RTEnvGet ("DISPLAY"); 867 871 if (display) 868 872 env.sprintf ("DISPLAY=%s", display); -
trunk/src/VBox/Main/HostImpl.cpp
r4395 r5107 51 51 52 52 53 54 53 #include "HostImpl.h" 55 54 #include "HostDVDDriveImpl.h" … … 77 76 #include <iprt/time.h> 78 77 #include <iprt/param.h> 78 #include <iprt/env.h> 79 79 80 80 #include <stdio.h> … … 208 208 209 209 { 210 if ( getenv("VBOX_CDROM"))211 { 212 char *cdromEnv = strdupa( getenv("VBOX_CDROM"));210 if (RTEnvGet("VBOX_CDROM")) 211 { 212 char *cdromEnv = strdupa(RTEnvGet("VBOX_CDROM")); 213 213 char *cdromDrive; 214 214 cdromDrive = strtok(cdromEnv, ":"); … … 314 314 315 315 { 316 if ( getenv("VBOX_FLOPPY"))317 { 318 char *floppyEnv = getenv("VBOX_FLOPPY");316 if (RTEnvGet("VBOX_FLOPPY")) 317 { 318 char *floppyEnv = strdupa(RTEnvGet("VBOX_FLOPPY")); 319 319 char *floppyDrive; 320 320 floppyDrive = strtok(floppyEnv, ":");
Note:
See TracChangeset
for help on using the changeset viewer.