summaryrefslogtreecommitdiffstatshomepage
path: root/unix
Commit message (Collapse)AuthorAge
* py/emitglue: Host definition of mp_verbose_flag.Paul Sokolovsky2015-11-21
| | | | | This may not seem like the ideal place, but is actually the only place in py/ where it gets referenced, so is just right.
* unix/modsocket: Implement sockaddr() function to decode raw socket address.Paul Sokolovsky2015-11-21
| | | | | | | | Return tuple of (address_family, net_addr, [port, [extra_data]]). net_addr is still raw network address as bytes object, but suitable for passing to inet_ntop() function. At the very least, sockaddr() will separate address family value from binary socket address (and currently, only AF_INET family is decoded).
* unix/modsocket: Removed dangling references to sockaddr_in_type.Paul Sokolovsky2015-11-20
|
* unix/modffi: Mark 'O' type specifier as implemented.Paul Sokolovsky2015-11-20
|
* unix/moduselect: Initialise variable so can compile in non-debug mode.Damien George2015-11-20
|
* unix: Add "uselect" module, with poll() function.Paul Sokolovsky2015-11-17
| | | | Underlyingly, uses standard POSIX poll() for portability.
* unix/input: Switch to POSIX I/O for history reading/writing.Paul Sokolovsky2015-11-16
|
* unix/modos: getenv(): Handle non-existing envvar correctly.Paul Sokolovsky2015-11-14
|
* unix/modos: Add Windows workaround for mkdir().Paul Sokolovsky2015-11-14
|
* unix/modos: Add mkdir().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/modos: Add getenv().Paul Sokolovsky2015-11-13
| | | | Dependency of upip.
* unix/main: Remove stray mp_printf() from previous commit.Paul Sokolovsky2015-11-13
|
* unix: Use standard mphalport.h header.Paul Sokolovsky2015-11-13
| | | | This also unbreaks "make minimal".
* main.c: Switch stderr printing from ANSI C to native POSIX.Paul Sokolovsky2015-11-13
|
* unix: Allow to override MICROPY_PY_MATH_SPECIAL_FUNCTIONS from command-line.Paul Sokolovsky2015-11-13
|
* unix/mpconfigport: Move log2() definition to modmath.c.Paul Sokolovsky2015-11-13
| | | | | It's safer to define it where it's used, defining it for all source files may lead to hard to diagnose conflicts in corner cases.
* unix/main: Use builtin unichar_isdigit() in preference if libc's.Paul Sokolovsky2015-11-13
| | | | Less dependencies.
* unix/modjni: Add missing get_jclass_name() function.Paul Sokolovsky2015-11-11
|
* unix/gccollect: Fallback to setjmp-based register fetching automatically.Paul Sokolovsky2015-11-08
| | | | | | | | Now, if we build for an architecture which doesn't have dedicated support for getting registers for GC scanning, fallback to setjmp-based method automatically. It's still possible to force setjmp-based implementation on archs with dedicated support (e.g. for testing, or for peculiar calling conventions/optimizations).
* unix/unix_mphal: Typo fix in comment.Paul Sokolovsky2015-11-03
|
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* unix, stmhal: Introduce mp_hal_delay_ms(), mp_hal_ticks_ms().Paul Sokolovsky2015-10-27
| | | | | | | | These MPHAL functions are intended to replace previously used HAL_Delay(), HAL_GetTick() to provide better naming and MPHAL separation (they are fully equivalent otherwise). Also, refactor extmod/modlwip to use them.
* unix/modjni: Actually check argument type when doing method resolution.Paul Sokolovsky2015-10-23
| | | | | | This is required to properly select among overloaded methods. It however relies on java.lang.Object-overloaded method to come last, which appears to be the case for OpenJDK.
* unix/modjni: Don't pass Java object to a method which doesn't expect it.Paul Sokolovsky2015-10-22
| | | | | | For example, don't pass Integer to double method. This is still not selective enough to choose the right overloaded method maong those taking objects.
* unix: Use "Ctrl" as a name of the key, not "CTRL".Paul Sokolovsky2015-10-20
|
* libffi: Skip building docs.Paul Sokolovsky2015-10-19
| | | | This requires makeinfo installed and wastes time (especially in CI).
* unix/modos: Android Bionic lacks statvfs(), has BSD statfs().Paul Sokolovsky2015-10-19
|
* all: Make netutils.h available to all ports by default.Paul Sokolovsky2015-10-19
| | | | | Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
* unix/modtime: Implement ticks_ms(), ticks_us() and ticks_diff().Paul Sokolovsky2015-10-19
| | | | | All of these functions return positive small int, thus range is 2 bits less than word size (30 bit on 32-bit systems, 62 bit on 64-bit systems).
* unix/modtime: Implement sleep_ms(), sleep_us().Paul Sokolovsky2015-10-19
|
* unix/unix_mphal: Implement HAL_Delay() and HAL_GetTick().Paul Sokolovsky2015-10-19
|
* unix/modos: Checking config macros requires mpconfig.h.Paul Sokolovsky2015-10-18
|
* unix/modos: Guard sys/statvfs.h include with MICROPY_PY_OS_STATVFS check.Paul Sokolovsky2015-10-18
| | | | E.g. Windows lacks this header.
* unix/modos: Add statvfs() function.Paul Sokolovsky2015-10-18
| | | | | | | | | | | Another function (like stat) which is problematic to deal with on ABI level (FFI), as struct statvfs layout may differ unpredictably between OSes and even different versions of a same OS. So, implement it in C, returning a 10-element tuple of f_bsize, f_frsize, f_blocks, f_bfree, f_bavail, f_files, f_ffree, f_favail, f_flag, f_namemax. This is exactly the order described in Python3 docs, https://docs.python.org/3/library/os.html#os.statvfs (but note that os.statvfs() should make these values available as attributes).
* unix: Build libffi in a directory which is gitgnored.Paul Sokolovsky2015-10-18
| | | | | To avoid "-dirty" version previous and spurious "modified" output from git status, etc.
* unix: Fix coverage build now that mp_plat_print uses write.Damien George2015-10-15
|
* py: Remove dependency on printf/fwrite in mp_plat_print.Damien George2015-10-15
| | | | See issue #1500.
* unix: Allow to build against Android down to 1.5.Paul Sokolovsky2015-10-15
| | | | Bionic libc in Android 1.5 missed log2() and nan() functions.
* unix/modjni: Add iteration support for Java List objects.Paul Sokolovsky2015-10-14
| | | | | Using generic iteration-via-subscription support (TODO: factor it out for reuse).
* unix/modjni: call_method: Check for Java exception after method return.Paul Sokolovsky2015-10-14
|
* unix/modtermios: tcsetattr: If 0 passed for "when" param, treat as TCSANOW.Paul Sokolovsky2015-10-13
| | | | | | As we dn't export constants for TCSANOW, etc., zero makes a good "don't care" param, and now it will work also under Android Bionic and any other libc.
* unix: Add exit and paste-mode hints to shell startup banner.Damien George2015-10-12
| | | | Thanks to @nyov for the initial patch.
* Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.Damien George2015-10-12
|
* repl: Add paste mode to friendly REPL, entered via CTRL-E.Damien George2015-10-11
| | | | | | | | Use CTRL-E to enter paste mode. Prompt starts with "===" and accepts all characters verbatim, echoing them back. Only control characters are CTRL-C which cancels the input and returns to normal REPL, and CTRL-D which ends the input and executes it. The input is executed as though it were a file. The input is not added to the prompt history.
* py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.Paul Sokolovsky2015-10-11
|
* unix/modsocket: Fix usage of pointers to locals outside scopeAnmol Sarma2015-10-10
|
* unix/modjni: py2jvalue: Support bool and None values.Paul Sokolovsky2015-10-10
|
* unix/modjni: jvalue2py() is currently not used.Paul Sokolovsky2015-10-09
| | | | Not remove so far, may be needed later.
* unix/modjni: Allow to access fields of objects.Paul Sokolovsky2015-10-08
|
* unix/modjni: After Call*Method(), Java exception should always be checked.Paul Sokolovsky2015-10-07
| | | | | OpenJDK seemed to return NULL in case of exception, but Dalvik returns arbitrary value, so skip such "optimizations".