12 Commits (b56caaf104a196902efb23f324f7e290c6f3d291)

Author SHA1 Message Date
David Lechner 9418611c8a unix: Implement PEP 475 to retry syscalls failing with EINTR. 5 years ago
David Lechner 58d9a4815d extmod/vfs_posix_file: Include unistd.h to get STD{IN,OUT,ERR}_FILENO. 5 years ago
Damien George 2cdf1d25f5 unix: Remove custom file implementation to use extmod's VFS POSIX one. 5 years ago
Damien George 68b1bc2042 extmod/vfs_posix_file: Lock GIL when writing and allow stdio flush. 5 years ago
Damien George ad9a0ec8ab all: Convert exceptions to use mp_raise_XXX helpers in remaining places. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
David Lechner 35f66d38b8 extmod/vfs_posix: Release GIL during system calls. 5 years ago
Damien George 09376f0e47 py: Introduce MP_ROM_NONE macro for ROM to refer to None object. 5 years ago
Damien George c13f9f209d all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x). 5 years ago
Damien George 0cc8910bc5 extmod: Give vars/funcs unique names so STATIC can be set to nothing. 5 years ago
Damien George f03601779e extmod: Convert legacy uppercase macro names to lowercase. 6 years ago
Damien George 8d82b0edbd extmod: Add VfsPosix filesystem component. 7 years ago
Damien George cf31d384f1 py/stream: Switch stream close operation from method to ioctl. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Damien George 01dd7804b8 ports: Make new ports/ sub-directory and move all ports there. 7 years ago
Javier Candeira 35a1fea90b all: Raise exceptions via mp_raise_XXX 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Paul Sokolovsky 59a1201da9 all: Remove readall() method, which is equivalent to read() w/o args. 8 years ago
Damien George 503089ea9d unix: Use mp_raise_OSError helper function. 8 years ago
Paul Sokolovsky a4aaf82421 unix/moduselect: Allow poll.register(), etc. accept fd-like objects. 8 years ago
Paul Sokolovsky 64da62ec2e unix/file: Use generic stream flush() method. 8 years ago
Paul Sokolovsky 01816068c8 unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open(). 8 years ago
Paul Sokolovsky ade36806c8 unix/file: ioctl(): Check that file is open before operations. 8 years ago
Paul Sokolovsky 8fac939889 unix/file: Implement MP_STREAM_FLUSH ioctl. 8 years ago
Damien George f1b6db2218 unix/file: If write syscall returns because of EINTR then try again. 9 years ago
Paul Sokolovsky 07209f8592 all: Rename mp_obj_type_t::stream_p to protocol. 9 years ago
Paul Sokolovsky a5d2af7949 unix/file: "encoding" arg to open() isn't kw-only. 9 years ago
Paul Sokolovsky e5fa163a4c unix/file: Parse "buffering" argument of open() builtin. 9 years ago
Paul Sokolovsky a63a4761cd unix/file: Stop assuming that O_RDWR == O_RDONLY | O_WRONLY. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Paul Sokolovsky 2c1620ce1f unix: Implement uos.dupterm(). Conditional on MICROPY_PY_OS_DUPTERM. 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 cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Ari Suutari 63b9e598a3 unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a"). 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 3926c72dd2 unix: Add target to build "minimal" uPy interpreter. 10 years ago
Damien George cd34207409 py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. 10 years ago
Damien George 6d7e47087f unix: Prefix includes with py/; remove need for -I../py. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George 5694cc5490 py: Make stream seek correctly check for ioctl fn; add seek for textio. 10 years ago
Paul Sokolovsky 838eb1fa2d stream: Implement seek operation support via ioctl, wrapped in generic method. 10 years ago
stijn 2fe4cf7761 Implement kwargs for builtin open() and _io.FileIO 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago