Charles Blake
740c5b13ea
Let handles be seen outside of memfiles module so that "updating"
...
operations (like eg., resizing a file and re-mapping) do not need
to worry about race conditions of re-opened paths, renamed parent
directories and that sort of thing. Operating directly on already
open handles is both safer and more efficient than relying upon the
stability of filesystem paths.
2018-12-10 11:40:08 -05:00
Timothee Cour
f3ecc15a94
refs #9880 show index and bound in lots of index out of bounds errors
2018-12-09 16:50:45 -08:00
Ico Doornekamp
71e9fff364
Added basic AF_UNIX support to asyncnet.
...
Unfortunately this required some code duplication because the
doConnect() from asynccommon.nim only works with addrInfo which does not
make sense for AF_UNIX.
makeUnixAddr() was moved to nativesocket.nim and exported
2018-12-09 20:53:05 +01:00
Andreas Rumpf
981dcc6b9a
Merge pull request #9890 from nim-lang/remove-asynccommon
...
Merge async common into asyncdispatch.
2018-12-09 13:00:10 +01:00
Neelesh Chandola
abdfbd07a5
Fixes #9907
2018-12-09 10:35:30 +05:30
Oscar Nihlgård
0a749f1a37
Make options.UnpackError inherit from system.Defect
2018-12-08 10:04:53 +01:00
Dominik Picheta
775bfb3e8d
Merge async common into asyncdispatch.
2018-12-07 22:47:10 +00:00
data-man
a38f353597
Add the parameter isSorted for the sequtils.deduplicate
2018-12-07 02:17:40 +05:00
Andreas Rumpf
160a034643
Merge pull request #9803 from GULPF/walkdirrec-relative
...
Add `relative` parameter to walkDirRec
2018-12-06 09:29:35 +01:00
Timothee Cour
14223c4b7f
Update parseutils.nim
2018-12-05 11:27:22 -08:00
Andreas Rumpf
d215296497
Merge pull request #9846 from timotheecour/pr_getpid
...
add os.getCurrentProcessId()
2018-12-05 08:12:17 +01:00
Araq
633832d0de
times.nim: Minor formatting change in the example code
2018-12-04 22:41:06 +01:00
Timothee Cour
e4850b7f1c
address comments
2018-12-04 02:51:27 -08:00
Timothee Cour
c0a91970f2
fixup
2018-12-04 00:45:58 -08:00
Timothee Cour
53147cc546
fixup
2018-12-03 14:25:04 -08:00
Timothee Cour
af7d758cfc
address comments
2018-12-03 14:03:06 -08:00
Timothee Cour
0caab530fb
fixup
2018-12-03 12:51:28 -08:00
Timothee Cour
e7ab4817e2
fixup
2018-12-03 12:46:32 -08:00
Timothee Cour
b93fbcf09a
add osproc.processID()
2018-12-03 12:04:46 -08:00
pacien
4e483bb01a
add SinglyLinkedList.append procs
2018-11-27 10:34:34 +01:00
Oscar Nihlgård
e5aae93bfe
Add relative parameter to walkDirRec
2018-11-26 22:08:45 +01:00
pgkos
518c72e57a
fixes #9800 ( #9804 ) [backport]
...
* fixes #9800
* add tests for #9800
2018-11-26 18:59:24 +01:00
Emery Hemingway
ed8b4befbf
times: use clock_gettime for cpuTime with POSIX ( #9793 )
...
The POSIX 'clock()' procedure returns process CPU time in an
implementation specific unit, which for historical reasons can be as
large as ~7ms in the case of FreeBSD. Use 'clock_gettime' for higher
accuracy.
2018-11-26 17:00:17 +01:00
Tomohiro
3a3ff76526
Add workingDir parameter to execProcess and test ( #9549 )
...
* Add workingDir parameter to execProcess
* Fix tests/stdlib/tosproc.nim compile error
* Suppress output from tosproc.nim
2018-11-26 10:28:44 +01:00
Yuriy Glukhov
410fd1deae
Fixes 9716 [backport] ( #9790 )
...
* reuse temporary variable
* fixes #9716 [backport]
* Declare local vars in safer place
2018-11-24 10:50:48 +01:00
Dominik Picheta
47d0582ebf
Merge pull request #9548 from tonygparsehub/put-delete
...
fix #8777 add missing http methods in httpClient
2018-11-23 22:45:28 +00:00
Arne Döring
9c2365d5c2
activated more tests, allow input in test spec
2018-11-23 11:58:28 +01:00
Arne Döring
e012eb1001
updated tests to be executed
2018-11-23 11:58:28 +01:00
Timothee Cour
02351d02e7
universal toSeq: works with UFCS; works with inline & closure iterators, and with iterables ( #8711 )
...
* universal toSeq: works with UFCS; works with inline, closure, and proc
iterators, and also non-iterators
* support all iterables with toSeq
* workaround for #9130
2018-11-22 11:47:14 +01:00
Oscar Nihlgård
b4a42386d9
Times module cosmetic changes ( #9770 )
2018-11-20 22:56:25 +01:00
Yuriy Glukhov
d146516008
Fixed wording ( #9761 )
2018-11-20 12:50:08 +01:00
Randy Smith
6c7abe6e5b
Fixes #9671 ( #9750 )
2018-11-19 09:22:21 +01:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Araq
4929f74023
fixes #9728
2018-11-16 11:30:34 +01:00
pgkos
4efbde84ee
Make getEnv case insensitive on Windows ( #9722 )
2018-11-16 08:45:50 +01:00
Dominik Picheta
679a52f53c
Merge pull request #9687 from narimiran/fix-7192
...
export `asyncdispatch.callSoon` (fixes #7192 )
2018-11-13 21:12:19 +00:00
narimiran
c2b16b46ec
export asyncdispatch.callSoon ( fixes #7192 )
2018-11-12 15:40:33 +01:00
narimiran
c0b5479e6b
coro: minor documentation fix [backport] [ci skip]
2018-11-11 10:16:32 +01:00
Miran
964b5dac7c
complete future only once in or ( fixes #8982 ) ( #9632 )
...
* complete future only once in `or`
Analogous to `and`.
Credits to @k0zmo for proposing the solution.
* add test
2018-11-09 22:45:17 +00:00
Andreas Rumpf
8d850f7a69
deprecated ospaths ( #9665 )
2018-11-09 16:36:49 +01:00
Andreas Rumpf
130c218ff9
parseopt: remove confusing dead code
2018-11-09 09:03:28 +01:00
Andreas Rumpf
c0fc2f5726
fixes #9619
2018-11-09 09:03:28 +01:00
Araq
84ca9d2903
add new stdlib modules to the changelog
2018-11-08 20:52:22 +01:00
Araq
56f76c5b08
better implementation for wrapWords
2018-11-08 20:52:22 +01:00
Arne Döring
795d7e3217
WIP
2018-11-08 20:52:22 +01:00
narimiran
15c66a06f9
keep the order of the callbacks
2018-11-07 15:22:02 +01:00
Konstantin Molchanov
d5e113c3a6
Add readData proc that accepts a string.
2018-11-07 11:26:51 +01:00
Arne Döring
c2c05f5e72
fix #9639 ( #9640 )
2018-11-07 10:58:48 +01:00
pgkos
b9cdad7497
times - remove unneeded negative sign when parsing formats z and zz ( #9631 )
...
* fix wrong utcoffset sign for formats z and zz
* add tests for the timezone offset formats
2018-11-06 22:29:23 +01:00
Araq
1c7fbad378
make tests green again
2018-11-06 13:55:03 +01:00