summary refs log tree commit diff stats
path: root/lib/posix
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Fix #5550 (#5553)Ryan Gonzalez2017-03-181-1/+1
|
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-3/+9
| | | | | | | | | * 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.
* Use old approach for Mac OSX which, as of 2016, does not yet support POSIXCharles Blake2017-02-071-12/+18
| | | | high-resolution file times.
* Move Timespec up, use in Stat for st_?tim and define accessors for the secondsCharles Blake2017-02-071-7/+18
| | | | portion of the Timespec.
* posix.nim: make new sigaction wrapper compatible with C++Andreas Rumpf2017-01-201-1/+1
|
* posix.nim add 'sigaction' with 3rd nil parameterAndreas Rumpf2017-01-191-0/+4
|
* Use imported symbols & remove non-POSIX stuffJohn Novak2016-12-011-160/+111
| | | | | | | * All symbols were hardcoded using Linux specific values, using imports now (because of this, the module was broken on OS X, for example) * There were many non-POSIX (Linux specific) symbols and functions included, these have been removed
* Fix few typosFederico Ceratto2016-10-171-1/+1
|
* posix: add INADDR_LOOPBACKSimon Ruderich2016-09-171-0/+2
|
* posix: add mkstempSimon Ruderich2016-09-171-0/+6
|
* Evidently Travis build termios.h does not pull in sys/ioctl.hCharles Blake2016-09-011-1/+1
| | | | but my initial test system did.
* Change type name to be more NEP-1-ish as per Araq request.Charles Blake2016-09-011-2/+2
|
* Add terminal.terminalWidth and supporting types/calls.Charles Blake2016-09-011-0/+10
|
* expr and stmt are now deprecatedAndreas Rumpf2016-07-301-1/+1
|
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-6/+6
|
* Added 'android4' define support that declares a different gethostbyaddr. ↵Ruslan Mustakov2016-06-221-2/+6
| | | | Fixes #4376
* Fix android compile time errortormund2016-06-071-1/+7
|
* Merge branch 'unix-sockets' of https://github.com/girvo/Nim into ↵Dominik Picheta2016-05-301-0/+13
|\ | | | | | | girvo-unix-sockets
| * net.nim: add support for Unix socketsMichał Zieliński2015-10-281-0/+13
| |
* | make SO_REUSEPORT independent of Linux headerAndreas Rumpf2016-05-291-14/+22
| |
* | Merge pull request #4235 from cheatfate/nosignalAndreas Rumpf2016-05-291-0/+4
|\ \ | | | | | | Solaris dont have MSG_NOSIGNAL
| * | Solaris dont have MSG_NOSIGNALcheatfate2016-05-291-0/+4
| | |
* | | Merge pull request #3648 from FedericoCeratto/reuse_portAndreas Rumpf2016-05-291-0/+2
|\ \ \ | |/ / |/| | Add SO_REUSEPORT support
| * | Add SO_REUSEPORT supportFederico Ceratto2015-12-161-0/+2
| |/
* | Update posix.nimFederico Ceratto2016-04-111-2/+2
| |
* | Add signal handlerFederico Ceratto2016-04-101-0/+14
| | | | | | A signal handler to run some code when Unix signals are received
* | Add missed library dependencies on Linux and Solaris.cheatfate2016-04-031-0/+9
| |
* | Patch timer_create and timer_delete to have proper declaration.cheatfate2016-04-021-2/+2
| |
* | Define ports as uint16s to fix #3484Josep Sanjuas2016-03-271-3/+3
| |
* | Modified and more reliable kqueue.nim, made according to ↵cheatfate2016-03-181-25/+110
| | | | | | | | openbsd/netbsd/freebsd and macosx headers.
* | Fix KEvent header includesdef2016-03-061-2/+3
| |
* | Moved ioctl to posix.nimxyz2016-01-171-0/+4
|/
* fix rawsockets testAman Gupta2015-10-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL: trawsockets.nim Test "tests/cpp/trawsockets.nim" in category "cpp" Failure: reNimcCrash Expected: Gotten: Hint: system [Processing] Hint: trawsockets [Processing] Hint: rawsockets [Processing] Hint: unsigned [Processing] lib/pure/rawsockets.nim(15, 8) Warning: unsigned is deprecated [Deprecated] Hint: os [Processing] Hint: strutils [Processing] Hint: parseutils [Processing] Hint: times [Processing] Hint: posix [Processing] CC: compiler_trawsockets CC: stdlib_system CC: stdlib_rawsockets CC: stdlib_unsigned CC: stdlib_os CC: stdlib_strutils Error: execution of an external compiler program 'clang++ -c -w -I/Users/tmm1/code/nim/lib -o tests/cpp/nimcache/stdlib_rawsockets.o tests/cpp/nimcache/stdlib_rawsockets.cpp' failed with exit code: 256 tests/cpp/nimcache/stdlib_rawsockets.cpp:355:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC6 = gai_strerror(gairesult); ^ ~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:499:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC5 = hstrerror(h_errno); ^ ~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:650:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC9 = inet_ntop(AF_INET6, ((void*) (addr6)), result->data, ((NI32)chckRange((result ? result->len : 0), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:771:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:859:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 errors generated.
* lib/posix: OS X & Free/Open/NetBSD kqueue APIAdam Strzelecki2015-09-291-0/+71
|
* wait's input is nullable, and it is discardableBruce Doan2015-09-161-1/+1
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-043-66/+66
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Fixed --debugger:on option. Removed c_line from termios.Yuriy Glukhov2015-08-121-1/+0
|
* Add popen()/pclose() support to posix.nimReimer Behrends2015-07-011-0/+2
|
* Expose INET6_ADDRSTRLEN.Andrew Yourtchenko2015-06-241-0/+2
|
* Update posix.Sockaddr_in6 and posix.Sockaddr_storage, deprecate old T* types.Andrew Yourtchenko2015-06-241-2/+3
|
* lib/posix - Dropped 'T' from typespdw2015-06-044-467/+495
|
* Fix Termios wrapperdef2015-04-241-9/+6
|
* fixes #2466Araq2015-04-241-52/+52
|