summary refs log tree commit diff stats
path: root/lib/posix
Commit message (Collapse)AuthorAgeFilesLines
* Fix mode_t posix definitions (fixes #12119) (#12132)pgkos2019-09-065-6/+17
| | | | | * fixes #12119
* styleCheck fixes [bugfix]Araq2019-07-151-3/+3
|
* styleCheck fixes [bugfix]Araq2019-07-151-2/+2
|
* styleCheck fixes [bugfix]Araq2019-07-151-2/+2
|
* there is only one style -- my styleAraq2019-07-101-0/+6
|
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-104-26/+26
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-104-30/+54
| | | | --styleCheck:error
* dynlib: use posix module (#11623)Jacek Sieka2019-07-082-2/+8
|
* ABI fixes for OSX/BSD; fixes #6860 (#11666)Andreas Rumpf2019-07-062-0/+598
|
* Corrected example shown in documentation (#11654) [ci skip]Akito132019-07-041-1/+1
| | | Used template within example was added to imports.
* Additional platform definitions for sparc64 (#11387)John Paul Adrian Glaubitz2019-06-031-1/+1
| | | | | | * lib/posix: Define SO_REUSEPORT for sparc64 as 0x0200 from kernel ABI * lib/system: Add platform support for sparc64
* Make range checks in semConv (#7164)Oscar Nihlgård2019-05-101-1/+1
| | | | | | | | | | | * Remove NaN/Inf/NegInf magic * Make range checks in semConv * fix the failing line * fix `firstOrd` and `lastOrd` * fix `localError` * remove debug comment * Cleanup, fix failing test * make tests green
* Improved posix module, added new posix_utils module (#10723)Federico Ceratto2019-02-282-4/+128
|
* Add a standard Rusage type definition and wait4, getrusage declarations (#10484)c-blake2019-01-291-0/+20
|
* Fix getAddrInfo, add IPPROTO_ICMPV6 Closes #10198Federico Ceratto2019-01-063-0/+3
|
* Merge pull request #9862 from zevv/posix-cmsgAndreas Rumpf2018-12-051-0/+6
|\ | | | | Added CMSG_SPACE and CMSG_LEN macros to posix.nim
| * Added CMSG_SPACE and CMSG_LEN macros to posix.nimIco Doornekamp2018-12-041-0/+6
| |
* | removes deprecated T/P typesAraq2018-11-165-71/+1
|/
* inject `sig` from anonymous proc instead of for loopSebastian Schmidt2018-09-241-4/+5
|
* fix `posix.onSignal` example, inject current signal as `s`Vindaar2018-09-241-5/+11
|
* Convert *_family fields to cushortLemonBoy2018-09-195-15/+14
| | | | 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.
* Constant folding for integer casts (#8095)LemonBoy2018-08-311-1/+1
|
* 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
* Add extended baud rates to posix/termios (#8322)Jeff Ciesielski2018-07-161-0/+15
| | | | 115200 is really common. I'd like to get support in nimserial, but I'm guessing it would help to have support in the stdlib first.
* Deprecate 'c', 'C' prefix for octal literals, fixes #8082 (#8178)Vindaar2018-07-031-20/+20
| | | | | | | | | | | | | | | * deprecate `0c`, `0C` prefix for octal literals Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for octal literals to bring the literals in line with the behavior of `parseOct` from parseutils. * add `msgKind` arg to `lexMessageLitNum` for deprecation messages * change literal tests to check all valid integer literals Also adds the `tinvaligintegerlit3` test to test for the (still) invalid `0O` prefix.
* Nintendo switch support (#8069)Joey2018-06-273-32/+1128
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add config section for Nintendo Switch * Add compiler configuration for Nintendo Switch and it's CPU * Add specific lib code for Nintendo Switch * Add GC support for Nintendo Switch * Update changelog for Nintendo Switch * Update changelog with more info about fixed paths * Cleaned up GC memory management a bit * Relocate docs for Switch * Rename aarch64NoneElfGcc to nintendoSwitchGCC * Remove armv8a57 * Fix installer.ini * Reuse code in linux and amd64 * Add posix defs for nintendo switch * Add more defined sections for nintendo switch * Remove old comment * Add what's not supported for Nintendo Switch docs * Make nintendoswitch == posix * Remove DEVKITPRO references from nim.cfg * Make PR extccomp changes * Remove Result type alias * Add separate switch consts file * Update docs for nintendo switch * Fix travis errors with undefined consts and add correct wait.h procs
* Use higher time resolution when available in os.nim (#7709)Oscar Nihlgård2018-06-042-7/+25
|
* remove dead code elimination option (#7669)Jacek Sieka2018-04-237-14/+12
|
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-182-4/+4
|
* Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD ↵aguspiza2018-04-122-1/+17
| | | | allocation (#7564)
* RLIMIT_NOFILE as posix constJacek Sieka2018-04-012-0/+6
|
* Fixes `times` module compilation on cpp backend. (#7004)Dominik Picheta2018-01-031-1/+1
|
* Better times module (#6552)GULPF2017-12-183-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Async upcoming (#6585)Dominik Picheta2017-11-221-12/+7
| | | | | | | | | | | | | * 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.
* Fix #6553 (#6580)Stefan Rakel2017-10-241-0/+2
|
* 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-062-2/+2
|
* Add mips64 and mips64el CPU platforms (#5866)James Cowgill2017-08-031-1/+2
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* Genode readdir fix (#6080)Emery Hemingway2017-07-141-1/+1
| | | The Genode readdir is inherited from then FreeBSD libc.
* add back SIG_IGN, SIG_DFL and friends to posix.nim (#5820)Jacek Sieka2017-05-164-1/+17
| | | | | | | | * add back SIG_IGN, SIG_DFL and friends to posix.nim accidentally wiped by ce86b4ad78aae11f62c50e4f46e8ab2a124356b4 * move deprecated sig_hold after consts include
* WIFSIGNALED means process has exited too (with a bang!) (#5678)Jacek Sieka2017-04-273-9/+24
|
* Posix from detect (#5697)Jacek Sieka2017-04-125-1760/+2661
| | | | | | | | | | * 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
* Linux abi take 3 (#5692)Jacek Sieka2017-04-122-9/+23
| | | | | * avoid generating object fields for imported types * fix some abi/type issues for linux_amd64
* Proper fix for osproc.nim on Android (#5646)Eugene Kabanov2017-04-021-3/+7
|
* Fix wrong value range of ntohs ... (#5390)wt2017-03-311-4/+4
|
* Fix posix.nim `dirent` structure to be more compatible with OSes. (#5623)Eugene Kabanov2017-03-291-2/+7
|