Nim/lib
c-blake d59441340d Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512)
* Fix 2 problems.  First, 0 is a valid fd on Unix (easily gotten if user first
closes all fds and then starts using memfiles).  Use -1 instead for an invalid
fd.  Second, it is best practice to conserve open fds on Unix and file handles
on Windows.  These handles are not needed unless the user wants to remap the
memory with ``mapMem`` (or a hypothetical future ``proc resize``).  Adding a
new bool param ``allowRemap=false`` to ``memfiles.open`` solves this cleanly
in a "mostly" backward compatible way.  This is only "mostly" because the
default ``false`` case does not keep unneeded resources allocated, but that
most sensible default means that any ``mapMem`` callers need to fix all their
open calls to have allowRemap=true, as this PR also does for tmemfiles2.nim.
* Include backwards compatibility note.
2017-03-12 20:45:10 +01:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core fixes #5419 2017-02-24 00:32:14 +01:00
deprecated make tests green again 2016-08-23 10:16:52 +02:00
impure fixes #5444 - nre.findIter keeps searching when no match is possible (#5453) 2017-03-02 11:48:41 +01:00
js Implement RFC #4873 improvements to JavaScript FFI (#5213) 2017-01-26 00:07:30 +01:00
packages/docutils Make countLines() the same as len(splitLines(s)) (#5470) 2017-03-03 01:31:17 +01:00
posix Use old approach for Mac OSX which, as of 2016, does not yet support POSIX 2017-02-07 09:39:41 -05:00
pure Fixes incorrect fd==0 test on Unix; Conserves handles by default. (#5512) 2017-03-12 20:45:10 +01:00
system Fixed compilation error (#5462) 2017-03-02 14:58:26 +01:00
upcoming Fix async timers execution. (#5448) 2017-03-01 09:43:24 +01:00
windows Add gethostname to nativesockets (#5443) 2017-03-01 09:44:24 +01:00
wrappers improvements to memtracking 2017-01-26 11:26:02 +01:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
nimbase.h Check if __STDC_VERSION__ is defined (#5488) 2017-03-07 09:56:46 +01:00
nimrtl.nim lib: Trim .nim files trailing whitespace 2015-09-04 23:03:56 +02:00
nimrtl.nim.cfg Rename *.nimrod.cfg to *.nim.cfg 2015-02-03 09:04:24 +01:00
prelude.nim Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim Fix links to manual (#5500) 2017-03-09 22:37:44 +01:00