Rainer Schuetze
3ed25d61ae
use CRuntime_DigitalMars/CRuntime_Microsoft instead of Win32/Win64 where appropriate
2014-08-23 16:14:18 +02:00
Denis Shelomovskij
ff144b0ae0
Replace most toStringz
/toUTF16z
/toUTFz
usages with tempCString*
ones.
...
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Михаил Страшун
091f2eb4fc
Merge pull request #2413 from kyllingstad/deprecate-windows-execv
...
Deprecate std.process.execv function family on Windows
2014-08-14 14:32:46 +02:00
Lars T. Kyllingstad
b12a39ff18
Added deprecation message details to execv*()
2014-08-14 10:14:37 +02:00
Lars T. Kyllingstad
f22cd86578
Fixed std.process.system() deprecation message
...
wait(spawnProcess(command)) is a closer match to system(command).
2014-08-13 08:45:47 +02:00
Lars T. Kyllingstad
b2d1f4e30a
Deprecate execv function family on Windows
...
For the discussions that led to the decision of deprecating these
functions on Windows, but not POSIX, see:
http://forum.dlang.org/thread/l4nav4$q9r$1@digitalmars.com
http://lists.puremagic.com/pipermail/phobos/2014-August/008827.html
2014-08-10 23:04:19 +02:00
Lars T. Kyllingstad
e4bc25ebe4
Remove unused test in std.process
...
This seems like a remnant from when the first version of std.process was
being developed. It does not appear to be in use today, so there is no
reason to keep it around.
2014-08-10 22:36:03 +02:00
Lars T. Kyllingstad
8ce300ac97
Deprecated most of the old std.process functions
...
I have purposefully omitted doing anything about the exec* function
family here, as their fate is still under discussion.
2014-08-07 21:21:19 +02:00
H. S. Teoh
5ec57d16a6
Merge pull request #2400 from CyberShadow/std-process-close
...
fix Issue 13258 - std.process file closing logic is incorrect
2014-08-05 10:58:43 -07:00
Vladimir Panteleev
9ba4f81ece
fix Issue 13258 - std.process file closing logic is incorrect
2014-08-05 06:57:50 +00:00
Joakim
a5f2d0f684
Tweaks to get the tests running inside an Android apk
2014-08-04 23:33:31 -05:00
Daniel Murphy
e3cdb418ea
Merge pull request #1873 from lionello/bug4483
...
Preparation for issue 4483, specifying foreach char iteration type
2014-07-16 21:59:26 +10:00
Joakim
dc67efc3c4
Deprecate std.c.string and move its contents to druntime
2014-07-13 12:47:26 -05:00
Михаил Страшун
3ee34072a6
Merge pull request #2150 from joakim-noah/android
...
Get tests passing on Android/x86
2014-07-12 04:05:07 +03:00
Lars T. Kyllingstad
b7af42bafa
Fix issue #13100 - std.process.setCLOEXEC() throws
...
There are two cases in which the fcntl() calls may fail:
1) the file descriptor is invalid, in which case errno == EBADF,
2) they receive invalid arguments, in which case errno == EINVAL.
We just want to ignore the error in the former case, as evidenced by
the bug report, and the latter means that we have an error in
std.process, which is best handled by an assertion. (Note that it was
never possible to catch the exception anyway, since it was thrown in
the child process.)
2014-07-11 21:09:49 +02:00
Joakim
11de397dd7
Start getting tests passing on Android/x86
2014-07-09 17:52:15 -05:00
Denis Shelomovskij
176f1246f3
Issue 12898 - std.process.browse
expects URL to be encoded in CP_ACP on Windows instead of UTF-8
...
Use Unicode version of `ShellExecute` in `std.process.browse`.
Also remove needless `ShellExecuteA` declaration.
2014-06-12 17:42:09 +04:00
Martin Krejcirik
0812ecd1f6
Fix missing program name in std.process.spawnProcessImpl exception message.
2014-06-10 01:45:33 +02:00
monarch dodra
f07abda274
Fix Issue 11308 - Don't use Voldemort types for std.process output
...
So that the return type of `execute` and `executeShell` are compatible.
2014-04-18 08:10:35 +02:00
Lars T. Kyllingstad
46d8bdf779
Merge pull request #1928 from CyberShadow/std-process-cwd
...
std.process: Add workDir parameter
2014-03-04 23:00:40 +01:00
Rainer Schuetze
40c14681f3
std.digest.sha: disable SSSE3 for SHA because it has unsupported calling convention
...
std.format, std.math: workarounds for different behaviour of sprintf
std.conv: workarounds for different behaviour of strtold
std.math: disable unittests for exp2f and exp2l
std.math: fix lrint(real), disable tmpfile test
std.process: seek to end of file before trying to append to it from another process
std.process: do not try to terminate an invalid process handle
win64.mak: disable COMDAT folding for release build
2014-02-27 22:16:29 +01:00
Vladimir Panteleev
5fbaa8b5cb
std.process: Add workDir parameter
2014-02-12 20:44:48 +00:00
Vladimir Panteleev
b593b30ce1
std.stdio: Add File.windowsHandle, fdopen and windowsHandleOpen
...
This moves existing code from std.process to std.stdio for public use.
2014-02-12 02:39:36 +00:00
k-hara
b391b2ec9f
Convert to new alias syntax
2014-02-11 15:27:05 +09:00
Vladimir Panteleev
e354f65e93
std.process: Improve shell escaping on Windows (issue 10863)
2014-02-09 02:22:07 +00:00
Lionello Lunesu
eca3a10dd2
Fix Issue 4483 - foreach over string or wstring, where element type not specified
...
std.process does not support Unicode and assume it's iterating over
ASCII.
2014-01-17 17:33:25 +08:00
Andrei Alexandrescu
21b3ee3b1c
Better unittests in process.d
2013-12-22 23:04:16 -08:00
Andrei Alexandrescu
4093af87a9
Removed spurious messages, fixed unittest errors
2013-12-19 18:58:33 -08:00
Nikhil Padmanabhan
cbe9a79d08
Fix completely trivial typo in std.process.execute documentation
2013-12-10 14:58:35 -05:00
Daniel Murphy
13f343334c
Remove cases where an array is used in a boolean context
2013-11-27 18:23:07 +11:00
Martin Nowak
17e5cc91a7
fix Issue 11112 - Unable to execute shell commands in different threads
...
- the environPtr initializer was only called for the main thread
2013-11-17 02:29:00 +01:00
arpie42
9f0db455b1
Corrected execute() example in ddoc comments
2013-10-15 17:58:19 +02:00
Andrei Alexandrescu
e69f4dc793
Merge pull request #1618 from CyberShadow/std-process-gui-spawnprocess
...
std.process: Fix spawnProcess in Windows GUI programs (issue #11180 )
2013-10-08 21:45:55 -07:00
Vladimir Panteleev
24255bd0b7
std.process: Fix spawnProcess in Windows GUI programs (issue #11180 )
2013-10-06 06:35:32 +00:00
Vladimir Panteleev
41ca4e882d
Reintroduce missing test-cases for escapeShellCommand.
2013-09-18 00:41:08 +02:00
Lionello Lunesu
b4074054ba
Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236)
2013-08-31 15:36:29 +08:00
Jonathan M Davis
8df771ca53
Merge pull request #1451 from kyllingstad/std-process-all-strings
...
Allow non-immutable input strings in std.process
2013-08-06 15:17:15 -07:00
monarch dodra
3d7e9b5d21
Merge pull request #1394 from 9rnsr/enforceProp
...
Supplemental change for dmd/pull/2305
2013-08-05 10:41:17 -07:00
Lars T. Kyllingstad
d0c56dfe38
Allow non-immutable input strings in std.process
...
`string` has been replaced by `in char[]` or similar where possible.
2013-08-04 14:23:13 +02:00
Lars T. Kyllingstad
690bb868ed
Fix Issue 10216 - Bad warning in std.process.kill
2013-07-28 17:28:04 +02:00
Vladimir Panteleev
b30c347f50
std.process: Remove incorrect usage of file RangeError ctor parameter
...
The code attempted to construct a RangeError object with a
"Command line is empty" string as the first parameter. However,
the first parameter specifies the source file (and defaults to
__FILE__), not the reason (which is always "Range violation").
2013-07-26 23:46:15 +00:00
k-hara
30356d606f
Fix @property annotations and incorrect parenthesis
2013-07-16 00:31:26 +09:00
Daniel Murphy
4e7cb93c44
Merge pull request #1371 from AndrejMitrovic/Fix10469
...
Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-24 22:56:53 -07:00
k-hara
03a32d6fa4
Fix issue 313 & 314
2013-06-25 08:38:30 +09:00
Andrej Mitrovic
f7b36b9124
Fixes Issue 10469 - Remove WinAPI prototypes and enums from std.process.
2013-06-25 00:32:52 +02:00
Lars T. Kyllingstad
07466cde53
std.process redesigned
...
This is a complete redesign of std.process. It has passed the community
review and is now ready for inclusion in Phobos master.
Review and vote:
http://forum.dlang.org/thread/gclsbrghhjitnfderoos@forum.dlang.org
http://forum.dlang.org/thread/mgstnugckomjpvdgpudz@forum.dlang.org
2013-05-01 10:22:19 +02:00
Vladimir Panteleev
128f1e4f3a
std.process: Add an additional unit test for escapeShellCommand (issue 9310)
2013-02-25 01:45:54 +02:00
Ferdinand Majerech
d8097b046d
DDoc clarification: std.process.shell throws ErrnoException.
2013-02-23 11:13:23 +01:00
Andrej Mitrovic
2844f0ef3b
Fixes Issue 9444 - Exception must be thrown on Posix when shell() call fails.
2013-02-12 23:42:42 +01:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00