33 Commits (8f11d0b532bd0203c875ad9e3e4efd8a7014ca15)

Author SHA1 Message Date
Paul Sokolovsky 0cd9ab7755 py/objstringio: Fix regression with handling SEEK_SET. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Alexander Steffen 299bc62586 all: Unify header guard usage. 7 years ago
Damien George 304cfda8c4 py/stream: Move ad-hoc ioctl constants to stream.h and rename them. 8 years ago
Paul Sokolovsky 59a1201da9 all: Remove readall() method, which is equivalent to read() w/o args. 8 years ago
Damien George 4ebdb1f2b2 py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros. 8 years ago
Paul Sokolovsky 61e77a4e88 py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting. 8 years ago
Paul Sokolovsky 4f1b0292db py/stream: Add adapter methods with POSIX-compatible signatures. 8 years ago
Paul Sokolovsky a60b0263ba py/stream: Implement generic flush() method, in terms of C-level ioctl. 8 years ago
Paul Sokolovsky f2f761c0c3 py/stream: Stream module works with errno's, so should include mperrno.h. 8 years ago
Paul Sokolovsky 16f324641f py/stream.h: Remove dated comment of POSIX-specificity of EAGAIN. 8 years ago
Paul Sokolovsky 1a7e28d8b7 py/stream.h: Move mp_stream_write_adaptor() inside ifdef block. 8 years ago
Paul Sokolovsky 497660fcda py/stream: Add mp_stream_close() helper function. 9 years ago
Paul Sokolovsky 7f7c84b10a py/stream: Support both "exact size" and "one underlying call" operations. 9 years ago
Paul Sokolovsky 0c97e4c414 py/stream: Add Python-level ioctl() method. 9 years ago
Paul Sokolovsky a45e280c58 py/stream.h: Add bigger inventory of stream ioctl's. 9 years ago
Paul Sokolovsky e6a4d4e23c py: Move stream-related declarations from obj.h to stream.h. 9 years ago
Paul Sokolovsky d4c8e626f2 py/stream: Add mp_stream_writeall() helper function. 9 years ago
Damien George e84325bd1d py: Add mp_get_stream_raise to factor out check for stream methods. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 4e7107a572 py: Change mp_print_strn_t func type to use size_t for the str length. 9 years ago
Paul Sokolovsky 7799410950 py/stream: Allow to reuse is_nonblocking_error(). 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky 838eb1fa2d stream: Implement seek operation support via ioctl, wrapped in generic method. 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Paul Sokolovsky ac736f15c9 stream: Factor out mp_stream_write() method to write a memstring to stream. 10 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d5f5b2f766 py, stream: Implement readlines for a stream. 11 years ago
Paul Sokolovsky d54bef7692 stream: Add generic unbuffered iternext method. 11 years ago
Paul Sokolovsky 9953ca432b Add unbuffered readline() implementation for Raw I/O files. 11 years ago
Paul Sokolovsky 5225450b9f Add generic impl of stream .readall() method. Use one for unix io.FileIO. 11 years ago
Paul Sokolovsky e98cf40c34 Add generic implementations of Python read()/write methods for streams. 11 years ago