summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* unix: Use common RAISE_ERRNO macro from mphalport.h.Damien George2016-10-07
|
* unix: Use mp_raise_OSError helper function.Damien George2016-10-07
|
* py/py.mk: Add support for building modussl_mbedtls.Paul Sokolovsky2016-09-23
|
* unix: Enable btree module for coverage build.Damien George2016-09-22
|
* all: Remove 'name' member from mp_obj_module_t struct.Damien George2016-09-22
| | | | One can instead lookup __name__ in the modules dict to get the value.
* unix/modjni: array(): Support creation of object arrays.Paul Sokolovsky2016-09-18
|
* unix/modjni: Add array() top-level function to create Java array.Paul Sokolovsky2016-09-17
| | | | | Takes element primitive type encoded as a char per standard JNI encoding, and array size. TODO: Support object arrays.
* unix/modjni: Implement subscription for object arrays.Paul Sokolovsky2016-09-16
|
* unix: Fix build for when MICROPY_PY_SOCKET=0.Renato Aguiar2016-09-12
|
* unix,stmhal,esp8266: When find'ing frozen files follow symbolic links.Damien George2016-09-05
| | | | | It's useful to be able to use symbolic links to add files and directories to the set of scripts to be frozen.
* py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.Delio Brignoli2016-09-05
| | | | | | | | This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves.
* tests/extmod: Add a test for framebuf module, tested by coverage build.Damien George2016-09-04
|
* tests/unix/extra_coverage: Add test for str/bytes with invalid hash.Damien George2016-09-02
|
* py/mpprint: Fail an assertion with unsupported format specifiers.Delio Brignoli2016-09-01
| | | | | | Arguments of an unknown type cannot be skipped and continuing to parse a format string after encountering an unknown format specifier leads to undefined behaviour. This patch helps to find use of unsupported formats.
* unix,stmhal,esp8266: When find'ing frozen files don't use extra slash.Damien George2016-08-31
| | | | | | | | This extra forward slash for the starting-point directory is unnecessary and leads to additional slashes on Max OS X which mean that the frozen files cannot be imported. Fixes #2374.
* extmod/modubinascii: Make crc32() support configurable.Paul Sokolovsky2016-08-24
| | | | Disable by default, enable in unix port.
* ports: Remove typedef of machine_ptr_t, it's no longer needed.Damien George2016-08-15
| | | | | | This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
* unix/mpconfigport.h: Don't include stdio.h on MacOS.ilovezfs2016-08-10
| | | | | Fixes build errors such as "../lib/utils/printf.c:43:5: error: expected parameter declarator"
* py/objstr: Make .partition()/.rpartition() methods configurable.Paul Sokolovsky2016-08-07
| | | | Default is disabled, enabled for unix port. Saves 600 bytes on x86.
* unix/moduselect: Allow poll.register(), etc. accept fd-like objects.Paul Sokolovsky2016-08-07
| | | | | | | This includes file and socket objects, backed by Unix file descriptor. This improves compatibility with stmhal's uselect (and convenience of use), though not completely: return value from poll.poll() is still raw file descriptor.
* unix: Enable websocket module.Paul Sokolovsky2016-08-06
|
* unix/Makefile: And note why btree module is disabled for coverage build.Paul Sokolovsky2016-07-31
|
* py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting.Paul Sokolovsky2016-07-30
| | | | | | To filter out even prototypes of mp_stream_posix_*() functions, which require POSIX types like ssize_t & off_t, which may be not available in some ports.
* unix/file: Use generic stream flush() method.Paul Sokolovsky2016-07-28
|
* unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open().Paul Sokolovsky2016-07-27
|
* unix/file: ioctl(): Check that file is open before operations.Paul Sokolovsky2016-07-27
|
* unix/file: Implement MP_STREAM_FLUSH ioctl.Paul Sokolovsky2016-07-27
|
* unix/mpconfigport.h: Include stdio.h by default.Paul Sokolovsky2016-07-26
| | | | | This allows to use printf() in a any source file with unix port, for quick debugging.
* unix: Enable MICROPY_PY_STR_BYTES_CMP_WARN.Paul Sokolovsky2016-07-22
| | | | Also, fix a warning text (remove "duplicate" BytesWarning).
* unix: Disable MICROPY_GC_ALLOC_THRESHOLD for minimal build.Paul Sokolovsky2016-07-21
|
* unix: Cache libaxtls.a in local build dir.Paul Sokolovsky2016-07-16
| | | | Allows to build the library variant for other ports in parallel.
* extmod/modussl_axtls: Further changes to allow alternative SSL modules.Paul Sokolovsky2016-07-13
| | | | | Make variable MICROPY_SSL_AXTLS=1 should be defined to activate modussl_axtls and link with -laxtls.
* unix/mpthreadport: Adjust minimum thread stack, and stack limit check.Damien George2016-07-11
| | | | | | The minimum thread stack size is set by pthreads (16k bytes) so we must use that value for our minimum. The stack limit check is also adjusted to work correctly for 32-bit builds.
* unix: Disable the GIL to improve performance of non-thread code.Damien George2016-07-09
| | | | | | | | | | | | | Threading support is still very new so stay conservative at this point and enable threading without the GIL. This requires users to protect concurrent access of mutatable Python objects (eg lists) with locks at the Python level (something you should probably do anyway). The advantage is that there is less of a performance hit for non-threaded code, because the VM does not need to constantly release/acquire the GIL. In the future the GIL will be made more efficient. There is also room to improve the efficiency of non-GIL code by not using mutex's if there is only one thread active.
* unix/main: When preparing sys.path, allocate exact strings on uPy heap.Paul Sokolovsky2016-07-09
| | | | | | | Due to the way modern compilers work (allocating space for stack vars once at tha start of function, and deallocating once on exit from), using intermediate stack buffer of big size caused blockage of 4K (PATH_MAX) on stack for the entire duration of MicroPython execution.
* unix/main: Improve help for -X options a bit.Paul Sokolovsky2016-07-08
|
* unix/main: Error out on unknown value of suffix in -X heapsize= option.Paul Sokolovsky2016-07-08
| | | | E.g. -X heapsize=16Kfoo, -X heapsize=1G will lead to error.
* unix/mpconfigport_minimal.h: Allow to print a string within 1KB of heap.Paul Sokolovsky2016-07-03
| | | | By adjusting parser allocation policy.
* unix/Makefile: Make "minimal" build be minimal again.Paul Sokolovsky2016-07-03
|
* unix: Enable btree module.Paul Sokolovsky2016-07-02
| | | | | But disable it for coverage build, as its extra warninsg aren't compatible with K&R C BerkeleyDB uses.
* py/modthread: Allow to properly set the stack limit of a thread.Damien George2016-06-28
| | | | | We rely on the port setting and adjusting the stack size so there is enough room to recover from hitting the stack limit.
* unix/modtime: Release the GIL when sleeping.Damien George2016-06-28
|
* unix/mpthreadport: Suppress compiler warning about unused arguments.Damien George2016-06-28
|
* unix/gccollect: Provide declaration of exported function.Damien George2016-06-28
|
* unix/mpthreadport: Use SA_SIGINFO for GC signal handler.Damien George2016-06-28
| | | | | | SA_SIGINFO allows the signal handler to access more information about the signal, especially useful in a threaded environment. The extra information is not currently used but it may prove useful in the future.
* unix: Implement garbage collection with threading.Damien George2016-06-28
| | | | | This patch allows any given thread to do a proper garbage collection and scan all the pointers of all active threads.
* unix/file: If write syscall returns because of EINTR then try again.Damien George2016-06-28
| | | | As per PEP-475.
* py/modthread: Implement lock object, for creating a mutex.Damien George2016-06-28
|
* py/modthread: Add stack_size() function.Damien George2016-06-28
|
* unix: Add basic thread support using pthreads.Damien George2016-06-28
| | | | Has the ability to create new threads.