We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getEnvironPtr
1 parent 955c6e3 commit 63fdb28Copy full SHA for 63fdb28
std/process.d
@@ -146,23 +146,7 @@ private
146
// POSIX API declarations.
147
version (Posix)
148
{
149
- version (Darwin)
150
- {
151
- extern(C) char*** _NSGetEnviron() nothrow;
152
- const(char**) getEnvironPtr() @trusted
153
154
- return *_NSGetEnviron;
155
- }
156
157
- else
158
159
- // Made available by the C runtime:
160
- extern(C) extern __gshared const char** environ;
161
162
163
- return environ;
164
165
+ import core.sys.posix.unistd : getEnvironPtr = environ;
166
167
@system unittest
168
0 commit comments