summary refs log tree commit diff stats
path: root/lib/posix/posix_other.nim
Commit message (Collapse)AuthorAgeFilesLines
* removes deprecated T/P typesAraq2018-11-161-35/+1
|
* Convert *_family fields to cushortLemonBoy2018-09-191-1/+1
| | | | Fixes #9008
* Fix regression due to type changeLemonBoy2018-09-161-1/+1
| | | | | The change is technically correct but requires too much type juggling and the effort outweighs the gains.
* Fix connectUnix/bindUnix with abstract socket pathsLemonBoy2018-09-151-1/+1
| | | | | | | The only way to make this work for both abstract and non-abstract sockets is to send the kernel an incomplete structure. Reported by Epictek on the forum.
* Haiku support for Nim (#8542)alaviss2018-08-141-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
* Use higher time resolution when available in os.nim (#7709)Oscar Nihlgård2018-06-041-5/+5
|
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-1/+1
|
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-181-2/+2
|
* Fixes `times` module compilation on cpp backend. (#7004)Dominik Picheta2018-01-031-1/+1
|
* Better times module (#6552)GULPF2017-12-181-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* fixes #6496Andreas Rumpf2017-10-151-1/+1
|
* Android support: put Termux specific dependencies behind a -d:termux switchAndreas Rumpf2017-08-301-2/+2
|
* Introduce first class support for Android (#5772)Fredrik Høisæther Rasch2017-08-061-1/+1
|
* Add mips64 and mips64el CPU platforms (#5866)James Cowgill2017-08-031-1/+2
|
* Genode readdir fix (#6080)Emery Hemingway2017-07-141-1/+1
| | | The Genode readdir is inherited from then FreeBSD libc.
* WIFSIGNALED means process has exited too (with a bang!) (#5678)Jacek Sieka2017-04-271-0/+15
|
* Posix from detect (#5697)Jacek Sieka2017-04-121-0/+613
* refactor posix.nim * types move to separate files for platform-specifc and generic ("other') * consts move to separate files that get autogenerated by detect.nim * proc's stay where they are for now, though in a second stage might move as well * fix missing when