Araq
de538deb7a
should compile on netbsd
2014-01-23 20:43:56 +01:00
Michał Zieliński
ad1a0c51e2
Merge branch 'osproc' into devel
...
Conflicts:
lib/posix/posix.nim
lib/pure/osproc.nim
2014-01-20 13:32:20 +01:00
Erik O'Leary
5d8d1ed8bc
Corrected prunesocketset and pruneprocessset
...
fd sets passed to select() were pruning ready FDs rather than pruning
UN-ready FDs.
2014-01-19 10:51:21 -06:00
Araq
73c6efdf66
'nil' as a statement is deprecated, use an empty 'discard' instead
2014-01-19 16:54:59 +01:00
Araq
286f166304
case consistency for linux
2013-12-29 03:32:46 +01:00
Araq
b731e6ef1c
case consistency: cs:partial bootstraps on windows
2013-12-29 03:19:10 +01:00
Araq
438703f59e
case consistency: next steps
2013-12-29 01:13:51 +01:00
Araq
92b8fac94a
case consistency part 4
2013-12-27 23:10:36 +01:00
Araq
a427648c48
case consistency part 2
2013-12-27 16:35:21 +01:00
Araq
2df9b442c6
case consistency part 1
2013-12-27 15:48:53 +01:00
Michał Zieliński
bdb5c4ad35
Introduce poEvalCommand, poUsePath, fix remaining quoting issues.
...
- poUsePath is now an alias for poUseShell.
- poEvalCommand should be used when shell evaluation is really needed.
It passes `command` directly to shell/winapi. Requires `args` parameter
to be empty.
2013-12-21 18:46:51 +01:00
Michał Zieliński
3503f1ca33
Normalize whitespace in osproc.nim.
2013-12-21 18:05:19 +01:00
Michał Zieliński
39cabcdd27
Use quoteShell in stdlib, where appropriate.
2013-12-11 22:27:39 +01:00
Michał Zieliński
b8072bd22e
add quoteShell to osproc.nim
2013-12-10 22:56:29 +01:00
Grzegorz Adam Hankiewicz
0eb0a887d8
Fixes execProcesses wait order. Refs #379 .
...
Closing the stream of the process might terminate it too early for
waitForExit to gather any useful results.
2013-10-27 18:15:42 +01:00
Reimer Behrends
f103cb4538
Exposed process file handles in osproc module.
...
The file handles of a PProcess instance can now be accessed through
the inputHandle(), outputHandle(), and errorHandle() methods.
Also tidied up documentation for stream accessor procs a bit.
2013-10-12 14:03:29 +02:00
Dominik Picheta
9686d92bfc
Fixed OSError deprecation warnings.
2013-06-26 00:00:07 +01:00
Dominik Picheta
bacb20a379
Deprecated OSError, and modified it to require an explicit OS error code.
...
The deprecated functions include the OSError and OSErrorMsg, the name did not change however the signature of the new functions did. They now require a TOSErrorCode value be passed to them. This value can be retrieved using OSLastError. The reason this was done is because on Windows any win api call can reset the last error code to 0, this change allows the user to immediately grab the error code and worry about the string representation later if needs be.
2013-06-25 20:10:28 +01:00
Araq
baf89e3d66
GC'ed wide strings for windows
2013-05-20 02:17:24 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28
Removes executable bit for text files.
2013-03-16 23:53:07 +01:00
Dominik Picheta
d9d98512e0
Fixed osproc.execCmdEx; tester should now succeed.
2013-01-28 00:32:36 +00:00
Dominik Picheta
0087828e12
Fixes #317
2013-01-27 23:58:38 +00:00
Araq
3af5c99336
fixes #293
2013-01-08 20:03:02 +01:00
Araq
ec9b1f78e1
annotated effects of modules: os, sockets, times
2012-11-18 13:34:48 +01:00
Araq
3c0a6a8962
'assert' hides EAssertionFailsure; stdlib makes use of 'tags'
2012-11-18 01:36:20 +01:00
Dominik Picheta
76c4b0516a
Many doc improvements. Changed Threads.joinThreads' param's type to varargs.
2012-11-04 22:30:19 +00:00
Araq
4966212141
more fixes for new integer promotion rules; fixes #152 ; fixes #157 ; fixes #156 ; fixes #155
2012-07-09 21:11:11 +02:00
Araq
4fbba0a65a
changed integer promotion rules; breaks bootstrapping and lots of code
2012-07-08 21:03:47 +02:00
Zahary Karadjov
4105a91c48
fix compilation errors when bootstrapping with C++
2012-06-04 01:56:42 +03:00
Araq
ff4a69b624
win64 is a supported target; bugfix: nimrod c -r on windows; stdlib uses wide char versions of the WinAPI
2012-03-04 21:44:56 +01:00
dom96
b298b07567
Added asyncio module; irc, scgi and the ftpclient modules work with it. Added (de)allocCStringArray. Many async sockets fixes.
2012-01-22 16:21:05 +00:00
Araq
4f1b89c30c
year 2012 for most copyright headers
2012-01-02 23:07:35 +01:00
Amrykid
f0f904ac70
Documentation comments + slight code modifications to zipfiles.nim.
...
Changes made to osproc.nim so it will compile.
2011-12-27 09:49:47 -06:00
Amrykid
e978272d3c
Allowed waitForExit to have a specified timeout. (osproc.nim)
2011-12-27 09:06:06 -06:00
Araq
e261a88d07
further steps to get rid of deprecated endOfFile and readLine
2011-11-29 01:24:58 +01:00
Dominik Picheta
9e06495261
Fixed test suite on windows
2011-11-19 22:44:02 +00:00
Araq
a497b4d1cf
bugfix: fixed memory leaks in osproc module
2011-11-18 22:14:32 +01:00
Araq
c9b67f724d
new osproc implementation may work with mac os x
2011-11-18 19:08:07 +01:00
Araq
ecd3c80e7e
tester compiles in taint mode again
2011-11-18 00:40:30 +01:00
Araq
61792dc7d6
cgen: no type canon for integral types; osproc use posix_spawn instead of fork&exec
2011-11-18 00:29:56 +01:00
Araq
40fa4bb52d
better streams implemenation; fixes #63
2011-11-12 02:10:07 +01:00
Araq
8c03d96c6a
bugfixes for the testsuite
2011-11-08 01:57:23 +01:00
Araq
25e813b5d0
bugfixes for the tester; the tester now supports running of single tests
2011-11-08 01:29:29 +01:00
Araq
0b4d5e45b9
tester checks exitcode; osproc additions; DLL fixes; taint mode fixes
2011-11-07 23:25:34 +01:00
Araq
0f37d0e1f2
sockets.recv optimizations; stdlib now supports taint mode
2011-09-24 20:22:53 +02:00
dom96
3e660efeb4
Fixed osproc.terminate for posix and improved some other osproc posix functions.
2011-08-03 22:38:21 +01:00
Araq
ef039a1325
doc improvements; added lazarus example
2011-07-24 23:07:40 +02:00
Araq
569c1ce5ec
bugfix: proper cache for generic instantiations
2011-07-21 00:57:39 +02:00
Araq
5b96eaa953
preparations for 0.8.12
2011-07-10 15:48:13 +02:00
Araq
99bcc233cd
bugfix: 'set' overloadable; further steps for multi threading support
2011-07-08 01:29:15 +02:00