summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* unix/modjni: Support for subscripting of Java lists (r/o so far).Paul Sokolovsky2015-09-21
|
* unix/modjni: jvalue2py: Handle boolean.Paul Sokolovsky2015-09-20
|
* unix: Use MICROPY_HAL_H macro for header inclusion.Alex March2015-09-19
| | | | | Follow the same format as other ports using the macro to include the HAL header.
* unix/modjni: py2jvalue: Pass jobject's down to Java.Paul Sokolovsky2015-09-19
| | | | So far, no signature check is done (TODO).
* unix/modjni: py2jvalue: Handle both int and long java types (with TODO for ↵Paul Sokolovsky2015-09-18
| | | | long).
* unix/modjni: jvalue2py: Handle class-containing jvalues.Paul Sokolovsky2015-09-17
|
* unix/modjni: Add env() module function.Paul Sokolovsky2015-09-16
| | | | | Useful to load native method libraries not loaded by VM (as happens on Android).
* py/objslice: Make slice attributes (start/stop/step) readable.Tom Soulanille2015-09-15
| | | | Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
* unix/modjni: Return any object type value as a jobject.Paul Sokolovsky2015-09-15
|
* unix/modjni: Return Java null as Python None.Paul Sokolovsky2015-09-14
|
* unix/modjni: Support static methods.Paul Sokolovsky2015-09-14
|
* unix/modjni: Factor out new_jobject(), jvalue2py() functions.Paul Sokolovsky2015-09-13
|
* unix: Enable REPL auto-indent.Damien George2015-09-12
|
* unix/modjni: Factor out py2jvalue() function.Paul Sokolovsky2015-09-12
|
* unix/modjni: "jni" module to interface to JNI-compliant JavaVM.Paul Sokolovsky2015-09-11
| | | | | | | | | | This includes Android Dalvik VM for example. Example usage: import jni System = jni.cls("java/lang/System") System.out.println("Hello, Java!")
* tests: Add tests to improve coverage of objstr.c.Damien George2015-09-03
|
* modffi: dlsym() doesn't set errno, so use ENOENT for OSError.Paul Sokolovsky2015-08-31
| | | | | This may be a bit confusing, as ENOENT is often rendered as "No such file or directory", but any other code would be only more confusing.
* unix: Allow to build libffi from source and link against it.Paul Sokolovsky2015-08-30
| | | | | | Linking against local libffi (and other libs in future) is triggered by "make MICROPY_STANDALONE=1". Before that, dependent libs should be built with "make deplibs".
* py: Treat -m32 flag as part of CC, LD, etc.Paul Sokolovsky2015-08-29
| | | | | | Indeed, this flag efectively selects architecture target, and must consistently apply to all compiles and links, including 3rd-party libraries, unlike CFLAGS, which have MicroPython-specific setting.
* unix: Bump default heap size to 1MB (2MB on 64-bit systems).Paul Sokolovsky2015-08-22
|
* py: Add MICROPY_PY_BUILTINS_FILTER, disable for minimal ports.Paul Sokolovsky2015-08-20
| | | | Saves 320 bytes on x86.
* py: Add stream_tell method, and use for unix and stmhal file tell.blmorris2015-08-13
|
* unix/mpconfigport.h: set MICROPY_PY_SYS_PLATFORM to "darwin" if compiled on OSXblmorris2015-08-05
| | | | This change allows micropython to return the same value as CPython for sys.platform
* lib/mp-readline: Add emacs-style control characters for cursor movement.Tom Soulanille2015-07-26
| | | | Disabled by default. Adds 108 bytes to Thumb2 arch when enabled.
* unix: modsocket: Implement inet_pton() in preference of inet_aton().Paul Sokolovsky2015-07-15
| | | | | | | | inet_pton supports both ipv4 and ipv6 addresses. Interface is also extensible for other address families, but underlying libc inet_pton() function isn't really extensible (e.g., it doesn't return length of binary address, i.e. it's really hardcoded to AF_INET and AF_INET6). But anyway, on Python side, we could extend it to support other addresses.
* unix: modsocket: Implement recvfrom().Paul Sokolovsky2015-07-14
| | | | Required to implement UDP servers.
* unix: modsocket: Implement sendto().Paul Sokolovsky2015-07-12
| | | | | | | | | sendto() turns out to be mandatory function to work with UDP. It may seem that connect(addr) + send() would achieve the same effect, but what connect() appears to do is to set source address filter on a socket to its argument. Then everything falls apart: socket sends to a broad-/multi-cast address, but reply is sent from real peer address, which doesn't match filter set by connect(), so local socket never sees a reply.
* unix: socket.getaddrinfo: Port is unsigned value.Paul Sokolovsky2015-07-11
| | | | Treating it as signed lead to buffer overflow for ports >= 32768.
* unix: socket.getaddrinfo: Accept family & socktype arguments.Paul Sokolovsky2015-07-10
| | | | This usually allows to get just a single address entry.
* modmachine: Implement physical memory access using /dev/mem (Linux, etc).Paul Sokolovsky2015-07-08
| | | | | | | | | | This requires root access. And on recent Linux kernels, with CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in /proc/iomem can be accessed. The above compiled-time option can be however overriden with boot-time option "iomem=relaxed". This also removed separate read/write paths - there unlikely would be a case when they're different.
* unix: Add O_WRONLY | O_CREAT to open call when opening file for append ("a").Ari Suutari2015-06-21
| | | | To comply with Python semantics.
* py: Use a wrapper to explicitly check self argument of builtin methods.Damien George2015-06-20
| | | | | | | | | | | | | | | Previous to this patch a call such as list.append(1, 2) would lead to a seg fault. This is because list.append is a builtin method and the first argument to such methods is always assumed to have the correct type. Now, when a builtin method is extracted like this it is wrapped in a checker object which checks the the type of the first argument before calling the builtin function. This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and is enabled by default. See issue #1216.
* unix: Allow to cat a script into stdin from the command line.Damien George2015-06-04
| | | | See issue #1306.
* unix: Update .gitignore; now ignores coverage build.Damien George2015-06-03
|
* unix: Prepare upip frozen modules under build/.Paul Sokolovsky2015-06-03
|
* unix: Uncompress upip tarball to build directory.Paul Sokolovsky2015-06-03
|
* unix: Include upip as fronzen modules inside the standard interpreter.Paul Sokolovsky2015-06-02
| | | | | | | | | MicroPython doesn't come with standard library included, so it is important to be able to easily install needed package in a seamless manner. Bundling package manager (upip) inside an executable solves this issue. upip is bundled only with standard executable, not "minimal" or "fast" builds.
* unix: Print an extra newline to the output on ctrl-Dstijn2015-05-30
| | | | | This assures the terminal prints it's prompt on a fresh line instead of appending it to the uPy prompt after exit.
* unix: minimal: Don't use readline support.Paul Sokolovsky2015-05-30
| | | | | After switching to builtin readline support, "minimal" no longer builds, and minimal doesn't really need readline support.
* unix: Allow to override default sys.path value.Paul Sokolovsky2015-05-30
| | | | | | | Using MICROPY_PY_SYS_PATH_DEFAULT macro define. A usecase is building a distribution package, which should not have user home path by default in sys.path. In such case, MICROPY_PY_SYS_PATH_DEFAULT can be defined on make command-line (using CFLAGS_EXTRA).
* tests: Add special tests to test mp_printf function to improve coverage.Damien George2015-05-28
|
* unix: Add option to use uPy readline, and enable by default.Damien George2015-05-27
| | | | | | This gets uPy readline working with unix port, with tab completion and history. GNU readline is still supported, configure using MICROPY_USE_READLINE variable.
* unix: Factor out stdio and ctrl-C code to unix_mphal.c file.Damien George2015-05-27
|
* Revert "unix: Include stdio.h to allow easy debugging with printf()."Paul Sokolovsky2015-05-17
| | | | | This reverts commit 8fbabab1a80efa8b9c0654f63b2157d8f8299955. Turned to cause problems on MacOSX.
* unix: Add some extra coverage tests for vstr and attrtuple.Damien George2015-05-12
|
* unix: Include stdio.h to allow easy debugging with printf().Paul Sokolovsky2015-05-10
|
* unix: Print unhandled exception to stderr, like CPython does.Paul Sokolovsky2015-05-10
|
* unix: Fix thumb2 vs arm native emitter auto-detection.Paul Sokolovsky2015-05-08
| | | | Make thumb2 have priority over arm.
* unix: Make extra-coverage function callable from Python scripts.Damien George2015-05-08
| | | | | This allows the output of the extra-coverage tests to be checked using the normal run-tests script.
* unix: Add special function to improve coverage.Damien George2015-05-08
| | | | | | The function and corresponding command-line option are only enabled for the coverage build. They are used to exercise uPy features that can't be properly tested by Python scripts.