Giacomo Tesio
ea21d3cd2d
libposix: add support for O_NONBLOCK
...
We keep a list of non blocking fds and use awake to
make them not block on read, write, pread and pwrite.
2018-01-15 22:37:27 +01:00
Giacomo Tesio
001069aa7b
libposix: deep refactor; add sys/posixly command
...
With these changes, libposix (and newlib) can run MirBSD Korn Shell.
2017-12-18 23:02:36 +01:00
Giacomo Tesio
e206015f7f
libposix: add getpgid
2017-09-07 23:27:33 +02:00
Giacomo Tesio
e3ff5b1004
libposix: add getpgrp; draft setsid, getsid and setpgid
2017-09-07 00:10:34 +02:00
Giacomo Tesio
e168dcb7fa
libposix: add umask
2017-09-06 22:59:05 +02:00
Giacomo Tesio
14edc758f4
libposix: add get/set functions for uid, gid, euid, egid, pgid, sid, reuid...
2017-09-05 00:15:37 +02:00
Giacomo Tesio
c5aaa72bbb
libposix: add dup, dup2, getrusage, fstat and lstat
2017-09-03 17:51:44 +02:00
Giacomo Tesio
0bc2e60c72
libposix: stub chown family (always returning 0)
...
I do not expect chown, fchownat and lchown to be much used in
UNIX softwares that we care to port.
We stub the functions in libposix so that we can refer them from
standard C libaries (such as newlib).
We will implement them (parsing /cfg/users to determinate uid and gid)
when it will be actually needed from a software ported to Jehanne.
2017-08-31 00:50:31 +02:00
Giacomo Tesio
b78613615d
libposix: add access
2017-08-28 23:04:12 +02:00
Giacomo Tesio
bfb95a3d3e
libposix: drafted chdir, fchdir and mkdir
2017-08-23 04:05:31 +02:00
Giacomo Tesio
4de95c9bc0
libposix: make AT_FDCWD value configurable
2017-08-23 02:57:41 +02:00
Giacomo Tesio
61c4849bd7
libposix: add POSIX_chmod and POSIX_fchmodat to posix.h
2017-08-23 02:05:34 +02:00
Giacomo Tesio
004dd6bff1
libposix: specify PosixOpenTranslator's behaviour on various flags
2017-08-22 02:12:26 +02:00
Giacomo Tesio
9947978c05
libposix: implemented libposix_getdents
2017-08-22 01:42:33 +02:00
Giacomo Tesio
f7c3a41b11
libposix: drafted getdents
2017-08-21 01:05:40 +02:00
Giacomo Tesio
3916b222b5
libposix: fix typo
2017-08-21 00:52:57 +02:00
Giacomo Tesio
ea6b68588c
libposix: implemented getcwd, getlogin, getlogin_r, getpass, pread and pwrite
2017-08-21 00:20:12 +02:00
Giacomo Tesio
d1e285f721
libposix: honor SIG_IGN by doing nothing (DRAFT)
2017-05-29 02:04:48 +02:00
Giacomo Tesio
e0610f6b71
libposix: drafted SIGCHLD management
2017-05-23 00:27:50 +02:00
Giacomo Tesio
da0381a213
libposix: big refactor of signal handling
2017-05-05 19:01:18 +02:00
Giacomo Tesio
bd5063666f
libposix: introduce POSIX_signal_execute and PosixSignalDisposition enum
2017-05-03 01:14:53 +02:00
Giacomo Tesio
cf974abe0e
libposix: (almost working) waitpid
2017-05-02 00:57:18 +02:00
Giacomo Tesio
8c33c921b4
libposix: draft waitpid (still broken)
2017-05-01 23:57:05 +02:00
Giacomo Tesio
14934ee51f
libposix: sleep and pipe
2017-04-30 16:49:50 +02:00
Giacomo Tesio
c2204d83a5
libposix: getppid
2017-04-22 00:40:39 +02:00
Giacomo Tesio
4142b70d32
libposix: allow custom translations of exit status
2017-04-21 23:56:43 +02:00
Giacomo Tesio
188a07782d
libposix: initial draft
2017-04-19 23:48:54 +02:00