Commit Graph

99 Commits

Author SHA1 Message Date
Federico Ceratto
6d256ba76e Update posix.nim 2016-04-11 12:07:45 +01:00
Federico Ceratto
8b1faad5a7 Add signal handler
A signal handler to run some code when Unix signals are received
2016-04-10 17:14:38 +01:00
cheatfate
0337bdc821 Add missed library dependencies on Linux and Solaris. 2016-04-03 15:37:45 +03:00
cheatfate
0a5a593682 Patch timer_create and timer_delete to have proper declaration. 2016-04-02 02:17:32 +03:00
Josep Sanjuas
5a582a0d9c Define ports as uint16s to fix #3484 2016-03-27 22:56:44 +02:00
cheatfate
e91e53401e Modified and more reliable kqueue.nim, made according to openbsd/netbsd/freebsd and macosx headers. 2016-03-18 22:19:01 +02:00
def
c398bdc534 Fix KEvent header includes 2016-03-06 22:25:37 +01:00
xyz
2befe48e4d Moved ioctl to posix.nim 2016-01-17 15:12:48 -05:00
Aman Gupta
2f7802bea3 fix rawsockets test
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.
2015-10-02 16:00:33 -07:00
Adam Strzelecki
900ea81030 lib/posix: OS X & Free/Open/NetBSD kqueue API 2015-09-29 19:27:10 +02:00
Bruce Doan
2ffb385611 wait's input is nullable, and it is discardable 2015-09-16 17:39:14 +07:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
Yuriy Glukhov
c42b05adb4 Fixed --debugger:on option. Removed c_line from termios. 2015-08-12 12:04:26 +03:00
Reimer Behrends
b3455d281b Add popen()/pclose() support to posix.nim 2015-07-01 02:39:45 +02:00
Andrew Yourtchenko
61336b2404 Expose INET6_ADDRSTRLEN. 2015-06-24 01:36:09 +02:00
Andrew Yourtchenko
ec33471aee Update posix.Sockaddr_in6 and posix.Sockaddr_storage, deprecate old T* types. 2015-06-24 01:23:09 +02:00
pdw
1c426c613c lib/posix - Dropped 'T' from types 2015-06-04 13:17:11 +02:00
def
e5a186a419 Fix Termios wrapper 2015-04-24 19:41:12 +02:00
Araq
c2d79a6383 fixes #2466 2015-04-24 12:40:59 +02:00
yglukhov
c2a52a9849 Fixed SIGPIPE on MacOS 2015-04-08 11:24:53 +03:00
Jakob Oesterling
ff75cf5c2c fixes https://github.com/Araq/Nim/issues/2116 2015-04-01 00:12:55 +02:00
Reimer Behrends
f5f89f388d Fixed Tdirent definition for OS X and BSD.
Entries d_type etc. were disabled on architectures other than Linux,
but also used for OS X and BSD in os.nim.
2015-03-22 03:54:19 +01:00
Araq
1681800d3c fixes #2116 2015-03-22 01:38:13 +01:00
def
18dd5e1965 Add some posix dirent documentation 2015-02-24 16:52:01 +01:00
def
1adebdc767 Speed up walkDir significantly
We only know that this works on Linux and Mac OS X, so other systems use
the POSIX conforming version still. This removed the lstat call, which
is especially expensive on NFS filesystems for me.
2015-02-24 16:37:54 +01:00
def
c62b204960 Always use 0x40 for POSIX_SPAWN_USEVFORK 2015-02-17 02:33:54 +01:00
Araq
6eb8867f1a fixes #2116 2015-02-13 01:40:29 +01:00
def
5b26c1360b Rename termios template CCEQ to cceq 2015-02-04 19:18:09 +01:00
def
8f18c936c3 Change termios proc capitalization 2015-02-04 11:25:58 +01:00
def
4712c69512 Fix typo 2015-02-04 11:18:24 +01:00
def
3b68d9e93c Add copyright header 2015-02-03 17:51:15 +01:00
def
b594c332ca Add termios wrapper 2015-02-03 17:27:29 +01:00
modk
601b262a8d Fixes parallel build on FreeBSD 2015-01-26 00:06:43 +01:00
def
9a36c17c05 Add workaround for TCC to make POSIX_SPAWN_USEVFORK available 2015-01-06 03:53:21 +01:00
Andre
85c22f3348 ignore signal SIGPIPE on Darwin 2014-12-30 23:39:43 +01:00
def
f52fd8785f Fix some deprecation warnings caused by renames 2014-11-13 21:34:46 +01:00
Araq
adad2d5f4a Merge branch 'devel' into bigbreak
Conflicts:
	lib/impure/db_postgres.nim
	lib/pure/json.nim
	lib/pure/math.nim
	lib/system/atomics.nim
2014-11-03 11:42:36 +01:00
Andreas Rumpf
a0ecfd19be Merge pull request #1448 from def-/posix-math
Add -lm for fesetround and fegetround
2014-11-03 01:58:50 +01:00
Erik O'Leary
aac8de6b4c Fixed FD_SET casing 2014-10-10 22:36:15 -05:00
Araq
7333237be6 'nimfix' improvements; FdSet is TFdSet again 2014-09-08 08:46:35 +02:00
Araq
d7d059a686 more tests green 2014-08-31 17:23:35 +02:00
Araq
fb688d1360 fixed posix.nim 2014-08-30 16:28:34 +02:00
Araq
a68f17a9f7 posix.nim compiles again 2014-08-29 01:28:48 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
dcffbb052a big rename 2014-08-28 01:17:21 +02:00
Araq
df172806ea big rename 2014-08-28 00:24:52 +02:00
Andreas Rumpf
bba644fbd1 Merge pull request #1405 from boydgreenfield/add_mmap_map_populate
Add mmap map populate
2014-08-12 19:50:14 +02:00
def
c0422ae8af Move floating point rounding and exceptions handling to math
(it's C99 as well, not just POSIX)
2014-08-06 02:31:19 +02:00
def
2476ee0cd7 Add -lm for fesetround and fegetround 2014-08-05 20:34:07 +02:00
def
7b9e2881d8 Add "struct" to POSIX flock 2014-07-31 11:28:26 +02:00