summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
Commit message (Collapse)AuthorAgeFilesLines
* Correction as I hadn't realised setvbuf had been renamed.A. S. Budden2016-06-131-3/+3
|
* Merged upstream/devel into this branch to resolve conflicts and ensure an ↵A. S. Budden2016-06-131-69/+84
|\ | | | | | | easy merge back into upstream/devel
| * fixes sysio/readChar regressionAndreas Rumpf2016-06-131-1/+1
| |
| * fix fgets typeJacek Sieka2016-06-081-1/+1
| |
| * prefer consts to importing #defines from headersJacek Sieka2016-06-061-7/+23
| | | | | | | | | | to be completed - better would be to have a libc wrapper that deals with all pesky C ABI details
| * fix types of ansi_c/sysio to more closely match C ABIJacek Sieka2016-06-051-62/+61
| | | | | | | | | | also fixes some instances of using C library functions when there are nim alternatives available
* | Corrected setStdIoUnbuffered for systems without stdout, stderr or stdin ↵A. S. Budden2016-06-131-3/+6
| | | | | | | | declared.
* | Added setStdIoUnbuffered for unbuffered stdio (fixes #2146).A. S. Budden2016-06-121-0/+5
|/
* widestrs are always available for better interopAndreas Rumpf2016-05-281-2/+1
|
* Fixes #3752.Dominik Picheta2016-04-041-0/+2
|
* Explicitly return falsedef2016-03-181-1/+1
|
* Comment to explain not opening directories in open()def2016-03-171-0/+3
|
* Don't check opened file for directory in nimscriptdef2016-03-161-2/+2
|
* Don't open directories as filesdef2016-03-141-0/+18
|
* Support IOFBF and IONBF on all systemsdef2016-03-061-3/+2
|
* further progress on --gc:v2Andreas Rumpf2016-02-171-51/+59
|
* Fix readLine handling of long lines.Reimer Behrends2015-08-281-1/+10
|
* Merge pull request #3239 from xyz32/develAndreas Rumpf2015-08-251-4/+15
|\ | | | | When reading files, check if the eof flag is set before throwing.
| * remove fileErrorxyz2015-08-251-4/+1
| |
| * Append the readAllBuffer to what was read alreadyxyz2015-08-231-1/+1
| |
| * Use seLen as sugested, and fix typosxyz2015-08-231-3/+2
| |
| * When reading files, check if the eof flag is set before throwing.xyz2015-08-221-4/+19
| |
* | fixes sysio regression for nimscript supportAraq2015-08-241-1/+4
|/
* Merge pull request #3143 from def-/readline-fasterAndreas Rumpf2015-08-211-54/+30
|\ | | | | Improve performance of readLine by using fgets
| * Improve readLine to work with strings containing \0 again.def2015-07-251-5/+15
| | | | | | | | This decreases performance slightly.
| * No need to set trailing \0def2015-07-241-7/+4
| |
| * Improve performance of readLine by using fgetsdef2015-07-241-54/+23
| | | | | | | | This drops compatibility with pure CR line endings of old Mac systems
* | implements experimental new config system based on NimScriptAraq2015-08-161-4/+7
|/
* reworked deprecation to retain old procspatrick dw2015-06-191-1/+5
|
* Renamed writeln procs to writeLinepatrick dw2015-06-181-1/+2
|
* fixes bootstrapping on windowsAraq2015-04-101-2/+3
|
* Merge pull request #2329 from def-/readlineAndreas Rumpf2015-04-101-16/+52
|\ | | | | Speed up readLine by using getc_unlocked
| * Speed up readLine by using getc_unlockeddef2015-03-121-16/+52
| | | | | | | | | | | | - Only on POSIX and Windows (_fgetc_nolock here) systems - File is locked to our thread before and unlocked after readLine - About 3 times faster in some simple tests
* | Use more Natural and Positive numbers in proc parametersdef2015-04-061-18/+18
| | | | | | | | | | - Didn't go through all modules, only the main ones I thought of - Building the compiler and tests still work
* | Make readFile work with FIFO filesdef2015-03-121-1/+1
|/
* Fix for readAll(stdin) problem on OS X and better anyway.Hans Raaf2015-03-011-2/+2
|
* fixes #2199, fixes #2197Araq2015-02-241-1/+1
|
* Make readBytes and writeBytes work with uint8def2015-02-181-2/+2
| | | | | | So far only openarray[int8] worked. Now it's openarray[int8|uint8]. This should make sense, since uint8 is comfortable to represent a byte (0-255) and there is already type byte* = uint8 in system.
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* lots of C++ codegen improvementsAraq2015-02-071-5/+11
|
* fixed 'system.open' bugAraq2014-09-141-7/+7
|
* system files use new identifiersAraq2014-08-231-61/+61
|
* Fixed readAllBuffer() to avoid adding garbage bytes at end.Reimer Behrends2014-05-261-4/+8
| | | | | | | The function readAllBuffer() always returned a string that was a multiple of the BufSize in length, regardless of how many bytes were actually read, padding the result with garbage bytes on the last chunk. This fix properly trims the last chunk to its actual size.
* doc generation for asyncdispatch worksAraq2014-04-061-2/+3
|
* case consistency: next stepsAraq2013-12-291-5/+5
|
* improvements for 'pretty'Araq2013-12-281-9/+9
|
* case consistency part 4Araq2013-12-271-6/+6
|
* templates can access hidden fieldsAraq2013-12-251-4/+4
|
* bootstraps with new template symbol binding rulesAraq2013-12-241-1/+1
|
* NoFakeVars progressAraq2013-12-241-0/+4
|