Commit graph

67 commits

Author SHA1 Message Date
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
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
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
Nick Greenfield
a0df72fcdc Only try to import MAP_POPULATE on Linux, define flag as 0 otherwise. 2014-07-23 12:06:13 -07:00
Nick Greenfield
272fd42c97 Add automatic MAP_POPULATE flag for opening read_only (MAP_PRIVATE) and shared (MAP_SHARED) mmap files. 2014-07-23 11:25:21 -07:00
Dominik Picheta
e01c1f1ab3 Fixes missing MSG_NOSIGNAL on Mac OS X. 2014-07-14 19:53:11 +01:00
Charlie Barto
3070264525 Added define check for openBSD around fmtmsg.h stuff, OpenBSD does not actually include this header 2014-05-04 23:48:38 -04:00
Araq
3b69a8d27a New concurrency model: next steps 2014-04-19 22:24:43 +02:00
Andreas Rumpf
835926e174 Merge pull request #927 from gradha/pr_adds_posix_timegm
Adds posix.timegm(), brother of posix.mktime().
2014-03-03 01:00:44 +01:00
Andreas Rumpf
46967f921a Merge pull request #917 from zielmicha/vfork
osproc: Raise exception if execv fails in child process
2014-02-23 19:49:19 +01:00
Dominik Picheta
3b5825e9bc Implemented selector support for asyncio2. 2014-02-22 17:22:19 +00:00
Grzegorz Adam Hankiewicz
c2b50c0e38 Adds posix.timegm(), brother of posix.mktime(). 2014-02-15 17:50:40 +01:00
Michał Zieliński
4c09fc110f osproc: make failed execv an exception (when using fork or clone)
startProcessAuxFork creates a pipe, which is used by a child to pass
an error code if execv fails.
2014-02-15 15:09:06 +01:00
Grzegorz Adam Hankiewicz
52d4e07146 Adds utimes() importc to posix module. 2014-02-02 23:28:17 +01:00
Michał Zieliński
ad1a0c51e2 Merge branch 'osproc' into devel
Conflicts:
	lib/posix/posix.nim
	lib/pure/osproc.nim
2014-01-20 13:32:20 +01:00
Araq
286f166304 case consistency for linux 2013-12-29 03:32:46 +01:00
Michał Zieliński
bdb5c4ad35 Introduce poEvalCommand, poUsePath, fix remaining quoting issues.
- poUsePath is now an alias for poUseShell.
- poEvalCommand should be used when shell evaluation is really needed.
It passes `command` directly to shell/winapi. Requires `args` parameter
to be empty.
2013-12-21 18:46:51 +01:00
Dominik Picheta
8231deffd0 Made TSocketHandle distinct and fixed problems it caused for SSL. 2013-10-23 18:07:00 +01:00
Clay Sweetser
229d83f6c6 Added a TSocketHandle type to winlean.nim and posix.nim
Edited sockets.nim and asyncio.nim to use the new TSocketHandle type.
2013-10-15 13:53:44 -04:00
Araq
a95c0608b9 some fixes for Haiku 2013-09-01 17:29:29 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Dominik Picheta
5310a3044f Many fixes for asynchronous sockets. Asyncio should now work well with buffered and unbuffered plain and ssl sockets. Added asyncio
test to the test suite.
2012-07-22 23:32:49 +01:00
Araq
2900ceae35 changed integer promotion rules; added math.fmod 2012-06-28 08:33:25 +02:00
Zahary Karadjov
2f4ae65917 produce errors on proc types with implicit empty param lists. 2012-04-20 22:32:36 +03:00
Araq
8aa4e46707 implemented incompleteStruct pragma; embedded debugger works with posix module 2012-01-05 00:46:51 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
c8dda8cc6f attempt to fix tunidecode test; GC cares for seq->openArray conversions 2011-11-21 01:33:18 +01:00
Araq
c9b67f724d new osproc implementation may work with mac os x 2011-11-18 19:08:07 +01:00