Nim/lib
c-blake 0bc8dd0b00
Add iterator inotify_events which is *almost always* needed logic for (#15152)
client code since Linux `inotify` is much like Linux `getdents64`.

Expanding on "almost always"..The only time that this `iterator` logic
is ***not*** needed on the output of a `read` from inotify fd's is when
one passes a length to `read` *guaranteed* to only pass one event struct
in the buffer.  That unusual circumstance requires (at least!) knowing
the length of the delivered filename before an event occurs, and the
filename itself is optional for some event types.

It is *far* more common to not know lengths in advance which means one
passes a buffer big enough for at least one maximum length directory
entry (256 bytes) which is then also big enough for *many* "typical"
length entries and therefore many events.  In such more common scenarios
this iterator logic is definitely needed.

Further, not using this logic, yet treating the return from read as "the
whole answer" can test ok on "thin" event streams (e.g. 1 event per ms),
hiding a latent bug of processing only the first event.
2020-08-08 07:26:20 +02:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core enable,document,test getImplTransformed, very useful for understanding how nim transforms code (#14924) 2020-07-18 10:49:36 +02:00
deprecated/pure Error -> Defect for defects (#13908) 2020-04-28 19:56:01 +02:00
experimental fix several typos in documentation and comments (#12553) 2019-10-30 09:08:45 +01:00
genode minor update for the genode target 2019-07-14 16:08:15 +02:00
genode_cpp Native access to Genode environment 2018-06-07 07:21:20 +02:00
impure fix sqlgetdata regression in odbc (#15161) 2020-08-07 22:37:54 +02:00
js jsre: try to fix nightlies (#15057) 2020-07-24 21:15:20 +02:00
nintendoswitch Rewrite the memory management code for Nintendo Switch (#8169) 2018-07-05 16:33:15 +02:00
packages/docutils fixes #14830 2020-07-06 13:41:56 +02:00
posix Add iterator inotify_events which is *almost always* needed logic for (#15152) 2020-08-08 07:26:20 +02:00
pure fix #15148 (#15149) 2020-08-08 07:24:54 +02:00
std 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011) 2020-07-20 07:50:19 +02:00
system disable sink inference, only enable it for the stdlib. Reason: better source code compatibility (#15105) 2020-07-28 19:18:46 +02:00
windows net: allow close() to ignore SSL failures due to disconnections (#15120) 2020-08-01 21:27:55 +02:00
wrappers fix sqlgetdata regression in odbc (#15161) 2020-08-07 22:37:54 +02:00
cycle.h
nimbase.h Add thiscall calling convention, mostly for hooking purpose (#14466) 2020-05-27 16:24:47 +02:00
nimhcr.nim testament: generic N-fold batching: windows CI 37mn=>16m (#14823) 2020-06-27 16:51:17 +02:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim testament: generic N-fold batching: windows CI 37mn=>16m (#14823) 2020-06-27 16:51:17 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +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 more renamings 2020-07-27 13:07:09 +02:00
system_overview.rst docs: Make ..<, .. ^ more discoverable (#14835) 2020-06-27 23:42:58 +02:00