summary refs log tree commit diff stats
path: root/lib/pure/ioselects
Commit message (Collapse)AuthorAgeFilesLines
* Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD ↵aguspiza2018-04-122-17/+1
| | | | allocation (#7564)
* RLIMIT_NOFILE as posix constJacek Sieka2018-04-012-8/+4
|
* Merge branch 'devel' into async-improvementsDominik Picheta2018-01-172-5/+6
|\
| * Better times module (#6552)GULPF2017-12-182-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time
* | Merge branch 'devel' into async-improvementsAndreas Rumpf2017-12-111-13/+15
|\|
| * favor 'select' over 'poll' on Genode (#6821)Emery Hemingway2017-12-011-13/+15
| | | | | | The 'poll' of the Genode C runtime is a wrapper over 'select'.
* | Multiple improvements to selectors.Dominik Picheta2017-11-244-13/+45
|/ | | | | | | | * Added ``getFd`` procedure for retrieving the underlying selector's FD. * Selectors module's procedures now accept an ``int`` as well as a ``SocketHandle``. * ReadyKey now contains the error code for Event.Error events.
* Async upcoming (#6585)Dominik Picheta2017-11-224-89/+80
| | | | | | | | | | | | | * Merge upcoming async with current. * Various improvements to selectors (mostly docs). Two changes to highlight: * Renamed ``setEvent`` to ``trigger`` * Reused setBlocking from nativesockets. * Various changes/fixes to asyncdispatch after upcoming merge. * Make some attempts to be compatible with older selectors. * Reuse epoll module in ioselectors_epoll.
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-1/+1
| | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling.
* Fixes for upcoming asyncdispatch and ioselectors. (#5309)Eugene Kabanov2017-02-014-30/+34
|
* One more fix for #5290.cheatfate2017-01-281-8/+11
|
* Fix mistakecheatfate2017-01-271-2/+2
|
* Fix #5290.cheatfate2017-01-274-53/+58
| | | | Some cosmetic changes.
* oops.cheatfate2017-01-261-0/+1
|
* Fix changes table must be SharedArray when hasThreadSupport.cheatfate2017-01-261-13/+50
|
* Fix #5128, #5184. (#5214)Eugene Kabanov2017-01-164-347/+507
| | | | | | | | | | | | * Fix #5128, #5184. Removed flush() procedure from ioselectors.nim Changed methods of work with application-driven data * Make cache switch for kqueue, update test for it. * Fix registerProcess bug returns wrong id. Fix tupcoming_async test to compile with upcoming again. Change socket() as unique identifier to dup(socket) as unique identifier.
* Support android compilation of ioselectors.cheatfate2016-12-051-135/+185
|
* Fix #4928cheatfate2016-10-221-5/+5
|
* Add support for kqueue's EVFILT_VNODE (filesystem monitoring), and add test ↵cheatfate2016-09-241-0/+41
| | | | for it.
* Fix 32bit architecture problems with SelectEvent.cheatfate2016-08-313-5/+5
|
* Resolve #4606cheatfate2016-08-121-0/+4
| | | | Resolve some new deprecated warnings for test.
* Simplify SharedArray.cheatfate2016-07-051-1/+1
|
* Patch one more path problemcheatfate2016-07-054-0/+1611