summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modos.c
Commit message (Collapse)AuthorAge
* unix: Prefix includes with py/; remove need for -I../py.Damien George2015-01-01
|
* unix, windows: Add _os.system() call.Paul Sokolovsky2014-12-23
| | | | | | system() is the basic function to support automation of tasks, so have it available builtin, for example, for bootstrapping rest of micropython environment.
* unix: add unlink function to os moduleNikita Nazarenko2014-12-10
|
* Use MP_DEFINE_CONST_DICT macro to define module dicts.Damien George2014-11-29
| | | | | This is just a clean-up of the code. Generated code is exactly the same.
* py: Change all uint to mp_uint_t in obj.h.Damien George2014-08-30
| | | | Part of code cleanup, working towards resolving issue #50.
* py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself.Damien George2014-07-31
| | | | Addresses issue #724.
* Rename machine_(u)int_t to mp_(u)int_t.Damien George2014-07-03
| | | | See discussion in issue #50.
* unix: Fix mpconfig.h not being included before misc.hstijn2014-06-28
| | | | This fixes count_lead_ones in misc.h not compiling due to unknown types
* Prefix ARRAY_SIZE with micropython prefix MP_Emmanuel Blot2014-06-19
|
* - Cast the struct stat sb.st_ino field to machine_int_t explicitly to avoid aMarcus von Appen2014-06-07
| | | | | | | | cast error in MP_OBJ_NEW_SMALL_INT(). This is necessary for FreeBSD, where st_ino is of different size - If MP_CLOCKS_PER_SEC is defined on the target host, simply define CLOCK_DIV as a fraction, regardless of the value of MP_CLOCKS_PER_SEC. FreeBSD uses a non-POSIX compliant value of 128 for CLOCKS_PER_SEC
* modos: stat(): Accept bytes argument.Paul Sokolovsky2014-05-26
|
* unix: Fix casting issue, int to small int object.Damien George2014-05-21
|
* modos: Clean 64-bit issues.Paul Sokolovsky2014-05-15
|
* unix: Add "_os" module with stat().Paul Sokolovsky2014-05-14
stat() is bad function to use using FFI, because its ABI is largely private. To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of struct stat is too implementation-dependent. So, introduce _os to deal with stat() and other similar cases.