Wykres commitów

39 Commity (f3dd9abcda12cbcada271ff00b7434dff86d9cc8)

Autor SHA1 Wiadomość Data
Paul Sokolovsky 2441900796 os: check_error(): Return true for EINTR, to easily restart system calls. 2015-01-09 17:29:32 +02:00
Paul Sokolovsky 22da54bc83 os: Version 0.1.9. 2014-09-06 17:13:28 +03:00
Paul Sokolovsky a9fd762b81 os: listdir(), walk(): Handle unicode strings properly.
CPython lib reference specifies that listdir() should accept both bytes and
str argument, and return value type should match the argument. But no such
stipulation is made for walk(), so we just return strings.
2014-09-06 17:06:07 +03:00
Paul Sokolovsky a3495c40bf os: Fix 64-bit Linux support.
ino_t and off_t types (d_ino and d_off fields) appear to be defined as unsigned
long on Linux.

TODO: Move readdir wrapper function to C, because DIRENT layout is inherently
OS-specific.
2014-09-06 17:04:05 +03:00
Paul Sokolovsky 46ede279d8 os: Implement open(). 2014-08-23 05:57:00 +03:00
Paul Sokolovsky 3de140698c os: Don't use legacy getwd() libc function, not available in all libc's.
For example, not available in uclibc.
2014-07-11 02:20:04 +03:00
Paul Sokolovsky 38448bb955 os: Depends on stat. 2014-07-11 02:12:18 +03:00
Paul Sokolovsky a759b94b22 os: Depends on errno. 2014-07-11 02:07:14 +03:00
Paul Sokolovsky 27da05f2ac os: Add chdir(), rename(). 2014-07-05 02:42:11 +03:00
Paul Sokolovsky 4e3154ba21 os: Add system(). 2014-07-04 23:48:50 +03:00
Paul Sokolovsky 1eff635223 os: Depend on _libc. 2014-06-21 14:50:09 +03:00
Paul Sokolovsky 10c51e681a os: Add name, environ vars (last - as dummy). 2014-06-11 00:09:23 +03:00
Paul Sokolovsky c4c29b4f57 os: Add urandom(). 2014-06-07 23:16:36 +03:00
Paul Sokolovsky 5b4e7d9ec8 os: Make listdir() accept bytes arg and have corresponding semantics. 2014-05-26 01:58:36 +03:00
Paul Sokolovsky dc6a6d096f os: Add fsencode() & fsdecode(). 2014-05-26 01:18:18 +03:00
Paul Sokolovsky f8252e6e5a os: Switch to metadata.txt . 2014-05-19 22:41:54 +03:00
Paul Sokolovsky f972957f99 os: Add sep, curdir, pardir constants. 2014-05-14 21:53:21 +03:00
Paul Sokolovsky 780a993826 os: Rename direcorty functions test. 2014-05-14 21:46:01 +03:00
Paul Sokolovsky a55dc7e57b os: Add getcwd(). 2014-05-14 21:46:01 +03:00
Paul Sokolovsky 74cfa40c3a os: Add unlink() & rmdir(). 2014-05-14 21:46:01 +03:00
Paul Sokolovsky 061f56a14d os: Implement walk(). 2014-05-14 21:46:01 +03:00
Paul Sokolovsky 07c659e879 os: Reimplement listdir() in terms of iterator. 2014-05-14 21:46:01 +03:00
Paul Sokolovsky 232e62e62a os: Import _os for C-level functions. 2014-05-14 21:46:01 +03:00
Paul Sokolovsky cddc165047 os: Fix listdir() error raising. 2014-05-14 21:46:00 +03:00
Paul Sokolovsky 245ece80fe os: Add os.error as an alias for OSError. 2014-05-14 21:46:00 +03:00
Paul Sokolovsky a976583b6b os: Add makedirs(). 2014-05-14 21:46:00 +03:00
Paul Sokolovsky b5a6cbb4ae os: Add access(). 2014-05-14 17:45:38 +03:00
Paul Sokolovsky 5e1007cf8b os: Implement listdir(). 2014-05-13 02:25:39 +03:00
Paul Sokolovsky 87724fadda os: Convert to package, require to support os.path. 2014-05-10 00:43:27 +03:00
Paul Sokolovsky 8e3ce63a8d os: Add fork()/pipe() test. 2014-05-01 02:44:09 +03:00
Paul Sokolovsky 4835a37871 os: Implement getpid() and waitpid(). 2014-04-26 10:05:46 +03:00
Paul Sokolovsky 5ec9531764 os: Implement few file and process functions. 2014-04-26 09:41:47 +03:00
Paul Sokolovsky 56454eba33 all: Tighten up typecodes for FFI module. 2014-04-22 00:39:21 +03:00
Paul Sokolovsky ef8aa989d7 os: Add simple read/write test. 2014-04-19 20:35:25 +03:00
Paul Sokolovsky effbf07c9e os: Version bump. 2014-04-19 20:30:31 +03:00
Paul Sokolovsky 4d76c904a2 os: Add read & write functions. 2014-04-19 20:29:59 +03:00
Paul Sokolovsky 221f769fdf os: Factor out error checking to a separate function. 2014-04-19 18:56:03 +03:00
Paul Sokolovsky ee457cba33 os: Add setup metadata. 2014-04-13 02:14:14 +03:00
Paul Sokolovsky 27ec4eb700 Add very basic implementation of os and fcntl modules for unix port.
Using ffi module. Both offer just 1-2 initial functions so far.
2014-04-13 02:14:13 +03:00