summary refs log tree commit diff stats
path: root/lib/pure/osproc.nim
Commit message (Expand)AuthorAgeFilesLines
* Add warning to `osproc.close`Dominik Picheta2016-07-211-1/+5
* Fix environment handling in startProcessDmitry Polienko2016-07-191-6/+9
* Revert changes in osproc.nimDmitry Polienko2016-07-191-43/+6
* Fix passing environment in startProcess (win)Dmitry Polienko2016-07-181-6/+43
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-1/+1
* installer fixes and improvementsAndreas Rumpf2016-06-071-3/+3
* Resolve bugscheatfate2016-05-241-2/+2
* Resolve #4200cheatfate2016-05-241-12/+165
* Revert raiseOSError changedef2016-02-061-2/+1
* Fix a few deprecation warningsdef2016-01-251-2/+3
* Only use execvpe on linux, execvp elsewhere (fixes #3759)def2016-01-241-8/+7
* osproc fix for AndroidYuriy Glukhov2016-01-041-2/+2
* Fix osproc compilation on NetBSD, use workaround for missing execvpedef2015-12-231-2/+2
* Fix osproc.closewt2015-11-101-3/+4
* Merge pull request #3454 from jlp765/osprocAndreas Rumpf2015-10-231-0/+14
|\
| * add simple example for execProcess, exeCmd, execCmdExJamesP2015-10-161-0/+14
* | added poDemon flag for process managementAraq2015-10-191-4/+6
|/
* osproc: fixes a long standing buffering bug on WindowsAraq2015-10-071-1/+1
* add afterRunEvent callback to execProcessesAman Gupta2015-09-301-1/+6
* osproc: free resources properly for the new poInteractive flagAraq2015-09-291-0/+1
* added osproc.poInteractive and osproc.hasData; both experimentalAraq2015-09-291-25/+105
* osproc: Define and select spawn/fork same wayAdam Strzelecki2015-09-031-38/+39
* Improves osproc.startProcess error message on POSIX. Ref #2183.Dominik Picheta2015-08-231-1/+2
* Improves osproc.startProcess error message. Fixes #2183.Dominik Picheta2015-08-231-1/+8
* much better error message if an exe cannot be foundAraq2015-06-291-1/+1
* stdlib: don't use deprecated symbolsAraq2015-06-041-7/+7
* lib/pure/e-o - Dropped 'T' from typespdw2015-06-041-25/+27
* Fixed 'milliseconds' spelling in code and docspdw2015-05-151-1/+1
* Fix osproc documentationJochen Van de Velde2015-05-131-12/+12
* Make peekExitCode on Posix use WIFEXITED to determine exitdef2015-04-141-7/+7
* Doc fix: TProcessOption -> ProcessOptionyglukhov2015-04-031-1/+1
* Fix a few more warningsdef2015-02-171-8/+8
* Fix typosFederico Ceratto2015-02-151-1/+1
* FreeBSD-specific codemodk2015-01-291-4/+8
* Set status to something else than 0modk2015-01-271-1/+1
* Fixes parallel build on FreeBSDmodk2015-01-261-1/+4
* Happy new year!Guillaume Gelin2015-01-061-1/+1
* Uses execve() in osproc on OpenWrt and uClibc-based platforms.Elie Zedeck2014-11-161-1/+5
* fixes #1181Araq2014-11-131-3/+3
* Merge branch 'devel' into bigbreakAraq2014-11-031-10/+22
|\
| * Fix terminate() and add kill()Simon Krauter2014-11-021-7/+15
* | Merge pull request #1569 from idlewan/prettyCCAndreas Rumpf2014-11-031-3/+13
|\ \
| * | Forgot to keep extern pragma for execProcessesErwan Ameil2014-11-021-1/+2
| * | Use defaut nil callback for execProcessesErwan Ameil2014-11-021-11/+1
| * | Change empty callback into nilErwan Ameil2014-11-021-9/+12
| * | Tidy up the prettification of the default verbosity c compilation outputErwan Ameil2014-10-131-19/+19
| * | Prettify compiler output for verbosity=1Erwan Ameil2014-10-121-3/+19
* | | patched fdset call in osprocErik O'Leary2014-10-101-1/+1
|/ /
* | 'nimfix' improvements; FdSet is TFdSet againAraq2014-09-081-3/+3
* | Fixes osproc on Windows.Dominik Picheta2014-09-061-2/+3
# . . push args 68/push "F - test-compare-equal-strings"/imm32 68/push 1/imm32/true 50/push-EAX # . . call e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP c3/return test-compare-inequal-strings-equal-lengths: # EAX = string-equal?("Abc", "Adc") # . . push args 68/push "Adc"/imm32 68/push "Abc"/imm32 # . . call e8/call string-equal?/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # check-ints-equal(EAX, 0, msg) # . . push args 68/push "F - test-compare-inequal-strings-equal-lengths"/imm32 68/push 0/imm32/false 50/push-EAX # . . call e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP c3/return # helper for later tests check-string-equal: # s : (address string), expected : (address string), msg : (address string) # . prolog 55/push-EBP 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP # . save registers 50/push-EAX # EAX = string-equal?(s, expected) # . . push args ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 0xc/disp8 . # push *(EBP+12) ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 8/disp8 . # push *(EBP+8) # . . call e8/call string-equal?/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # check-ints-equal(EAX, 1, msg) # . . push args ff 6/subop/push 1/mod/*+disp8 5/rm32/EBP . . . . 0x10/disp8 . # push *(EBP+16) 68/push 1/imm32 50/push-EAX # . . call e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP $check-string-equal:end: # . restore registers 58/pop-to-EAX # . epilog 89/copy 3/mod/direct 4/rm32/ESP . . . 5/r32/EBP . . # copy EBP to ESP 5d/pop-to-EBP c3/return # test the helper test-check-string-equal: # check-string-equal?("Abc", "Abc") # . . push args 68/push "Abc"/imm32 68/push "Abc"/imm32 # . . call e8/call check-string-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # check-ints-equal(EAX, 1, msg) # . . push args 68/push "F - test-check-string-equal"/imm32 68/push 0/imm32/false 50/push-EAX # . . call e8/call check-ints-equal/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 0xc/imm32 # add to ESP c3/return # . . vim:nowrap:textwidth=0