summary refs log tree commit diff stats
path: root/lib/pure/os.nim
Commit message (Expand)AuthorAgeFilesLines
* Genode fixes (#8501)Emery Hemingway2018-08-161-2/+8
* Haiku support for Nim (#8542)alaviss2018-08-141-1/+12
* addresses issue #8391 show runtime context on some failed operations (#8393)Timothee Cour2018-07-231-4/+4
* add os.absolutePath; fixes #8174 (#8213)Timothee Cour2018-07-101-0/+20
* Add normalizePath and testsFederico Ceratto2018-07-061-2/+43
* Nintendo switch support (#8069)Joey2018-06-271-2/+10
* fixes merge conflictAndreas Rumpf2018-06-111-1/+1
|\
| * Native access to Genode environmentEmery Hemingway2018-06-071-1/+1
* | fixex merge conflictsAraq2018-06-081-12/+20
|\|
| * Use higher time resolution when available in os.nim (#7709)Oscar Nihlgård2018-06-041-12/+20
* | Merge branch 'devel' into araq-big-refactoringAndreas Rumpf2018-05-281-1/+2
|\|
| * Update existsFile documentation (#7888)Federico Ceratto2018-05-271-1/+2
* | Merge branch 'devel' into araq-big-refactoringAndreas Rumpf2018-05-211-1/+3
|\|
| * remove unneeded check on lengthkoranza2018-05-191-1/+1
| * check string lengths to avoid index out of boundkoranza2018-05-181-2/+4
* | os.nim: don't use echo for error reportingAndreas Rumpf2018-05-181-1/+1
|/
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-16/+0
* more fixes for the new string behaviourAndreas Rumpf2018-04-301-11/+9
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-1/+1
* Add `fromWinTime` and deprecate `unixTimeToWinTime`/`winTimeToUnixTime` (#7641)Oscar Nihlgård2018-04-191-8/+6
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-181-1/+1
* os.setLastModificationTime*(file: string, t: times.Time) (#7543)Hendrik2018-04-161-3/+19
* explicit effects for existsOrCreateDirAndreas Rumpf2018-04-141-1/+2
* Sub second time resolution (#6978)Oscar Nihlgård2018-04-131-2/+2
* Allow searching for "rename file" in documentationFederico Ceratto2018-04-071-0/+1
* fixes #6939Andreas Rumpf2018-02-021-5/+10
* Remove additionalInfo in OSError in findNextFileDominik Picheta2018-01-111-2/+2
* correct type for raiseOSErroroskca2018-01-111-3/+3
* raiseOSError to indicate the failling of findNextFile in walkDir[Rec]oskca2018-01-111-2/+8
* check ERROR_NO_MORE_FILES to prevent walkDir[Rec] to quit prematurelyoskca2018-01-111-2/+2
* Modified behavior of walkDirRec (#6952)Dmitry Atamanov2017-12-211-11/+19
* Better times module (#6552)GULPF2017-12-181-17/+18
* os.nim bugfix: system() returns bullshit on Posix-like systems in generalAndreas Rumpf2017-12-011-1/+1
* Clarify paramStr / paramCount use and availability (#6727)Federico Ceratto2017-11-141-9/+11
* breaking change: arrays of char do not convert to cstring; ptr to array of ch...Andreas Rumpf2017-10-101-1/+4
* Merge branch 'stringify-array' of https://github.com/krux02/Nim into krux02-s...Andreas Rumpf2017-10-091-1/+1
|\
| * removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-1/+1
| * arrays can now be printedArne Döring2017-07-241-1/+1
* | os.nim: revert findExe 'improvement' that breaks our buildsAndreas Rumpf2017-09-011-6/+1
* | os.findExe: do not return binaries in the cwdAraq2017-09-011-1/+6
* | refactor os.nim and ospaths.nimAndreas Rumpf2017-09-011-266/+54
* | os.nim: do not include and import ospathsAndreas Rumpf2017-09-011-9/+1
* | allow non-admins to create symlinks on windows (#6287)Charlie Barto2017-08-291-1/+3
|/
* Genode readdir fix (#6080)Emery Hemingway2017-07-141-1/+1
* make os.nim compile on Windows againAndreas Rumpf2017-07-091-1/+1
* minor improvements to os.paramStrAndreas Rumpf2017-07-081-2/+3
* Added moveDir (#6015)Yuriy Glukhov2017-06-271-12/+29
* Posix from detect (#5697)Jacek Sieka2017-04-121-1/+1
* support for the Genode OS framework (#5560)Emery Hemingway2017-03-311-6/+10
* Fix posix version of moveFile between different filesystems (#5580)Anatoly Galiulin2017-03-231-21/+45
ss="n">self.c:receive(pat) return snk(chunk, err) end function metat.__index:send(data) return self.c:send(data) end function metat.__index:receive(pat) return self.c:receive(pat) end function metat.__index:getfd() return self.c:getfd() end function metat.__index:dirty() return self.c:dirty() end function metat.__index:getcontrol() return self.c end function metat.__index:source(source, step) local sink = socket.sink("keep-open", self.c) local ret, err = ltn12.pump.all(source, sink, step or ltn12.pump.step) return ret, err end -- closes the underlying c function metat.__index:close() self.c:close() return 1 end -- connect with server and return c object function _M.connect(host, port, timeout, create) local c, e = (create or socket.tcp)() if not c then return nil, e end c:settimeout(timeout or _M.TIMEOUT) local r, e = c:connect(host, port) if not r then c:close() return nil, e end return setmetatable({c = c}, metat) end return _M