Commit Graph

252 Commits

Author SHA1 Message Date
K. Lange
01d29b92e6 libm: Hyperolibc trig functions 2021-09-04 13:41:27 +09:00
K. Lange
efec80cb38 times: rudimentary support for process times 2021-09-02 23:08:18 +09:00
K. Lange
98bcb40671 nproc: Expose processor count and use it to pick between yielding and non-yielding spin locks 2021-09-02 17:27:21 +09:00
K. Lange
0d71c98cc2 localtime: rudimentary, incorrect support for timezone offsets 2021-09-02 16:09:28 +09:00
K. Lange
64bfcce029 dhclient: fallback to /var/resolv.conf if /etc is read-only 2021-09-02 15:26:11 +09:00
K. Lange
8984cc8f71 groups: First pass at support for supplementary group lists 2021-08-31 20:46:48 +09:00
K. Lange
8775a28209 groups: Initial support for gids. 2021-08-31 19:47:04 +09:00
K. Lange
76befad991 libm: must implement sqrt() or it can loop in gcc 2021-08-30 19:33:43 +09:00
K. Lange
7925346edf libc: that xor-swap is silly and probably also slower 2021-08-28 19:55:43 +09:00
K. Lange
7975697786 libc: Implement an actual quicksort for qsort... 2021-08-28 19:50:54 +09:00
K. Lange
4d68b0bc4a text: bring back shm-stored fonts provided by compositor 2021-08-28 14:50:52 +09:00
K. Lange
607b64ada2 libc: only elide fractional parts in g/G, not f/F 2021-07-13 19:21:51 +09:00
K. Lange
0c10d152ef libc: support ip addresses in gethostbyname 2021-06-19 16:26:21 +09:00
K. Lange
0a9dc8d7a2 libc: __assert_func should exit 2021-06-18 19:57:59 +09:00
K. Lange
1467ec050e net: various improvements to still terrible network stack 2021-06-16 23:14:58 +09:00
K. Lange
222c39bc6b libc: rand() should not return negative values 2021-06-14 19:55:44 +09:00
K. Lange
82859a82e1 net: cleanup 2021-06-14 15:04:05 +09:00
K. Lange
fdc1f653d6 net: more tcp; timeout nameserver lookups 2021-06-14 15:00:46 +09:00
K. Lange
4d8ee9840a net: hacked up udp stuff, dns resolver 2021-06-14 14:18:23 +09:00
K. Lange
6e94848afb libc: fix fseek behavior with active read? 2021-06-05 19:49:09 +09:00
K. Lange
1b8d5b5d32 misc: cleanup 2021-06-04 20:38:27 +09:00
K. Lange
b35f7ac8c9 misaka: initial merge 2021-05-31 10:54:11 +09:00
K. Lange
506963c91b libm: use fpu rounding to ceil, floor (fixes quake lighting) 2021-04-07 21:22:50 +09:00
K. Lange
78b14f2a94 libc: try to avoid writing when we shouldn't 2021-04-07 21:22:23 +09:00
K. Lange
b5b809628d libc: flush buffers on seek, tell 2021-04-07 19:08:18 +09:00
K. Lange
4bcab10836 libc: flush and close buffers on exit 2021-04-07 19:08:06 +09:00
K. Lange
dc7697a49c libc: printf() x formatter improvements 2021-04-07 18:49:44 +09:00
K. Lange
d135b9a71d libc: Implement buffered writes in stdio; fix up printf family 2021-04-07 11:38:31 +09:00
K. Lange
79da53276e libc: improved printf 2021-04-06 21:18:44 +09:00
K. Lange
020c3cdb3c libc: more net stubs 2021-03-25 15:52:19 +09:00
K. Lange
a50d81ae00 libc: Add stubs for truncate, sync 2021-03-19 11:25:10 +09:00
K. Lange
230870ad7b kernel, linker, libc: Initial, probably horribly broken, support for some TLS situations 2021-02-16 18:49:34 +09:00
K. Lange
ec08e125ec libc: fix major issue in strtox 2021-01-23 20:00:24 +09:00
K. Lange
325bf0fddf libc: fix truncated printf output for ints, floats 2021-01-23 15:20:23 +09:00
K. Lange
db23c987a9 Pull in Kuroko (as a submodule, but with build integration) 2021-01-01 17:19:44 +09:00
K. Lange
cc8b933cda libc: support not printing 0 digit with precision of 0 2020-04-30 20:25:08 +09:00
K. Lange
1bbf9fba5d libc: support precision for %d? 2020-04-30 19:02:28 +09:00
K. Lange
84023ed829 libc: fix off-by-one errors in localtime 2019-12-20 20:20:23 +09:00
K. Lange
366961a3b6 libc: implement poll with fswait3 2019-12-05 17:49:36 +09:00
K. Lange
a6251137f0 kernel: add fswait3 and hack around terminals blocking on their own reads 2019-12-05 17:42:46 +09:00
K. Lange
56d412fd31 access(2) should return -1 on error 2019-08-08 09:42:44 +09:00
K. Lange
acdb4a71b9 libc: add realpath (with ToaruOS path mechanics; not Unix) 2019-06-29 20:36:48 +09:00
K. Lange
a133f3e5af sscanf: should accept whitespace before integers 2019-06-29 20:36:28 +09:00
K. Lange
059a2dbbd8 libc: fix mktime 2019-01-12 20:44:25 +09:00
K. Lange
0095f8a2ee libc: opendir should not set errno, it's set by open 2019-01-03 20:21:32 +09:00
K. Lange
6d12735370 libc: fix parse mistake in strtoul 2018-12-27 21:15:36 +09:00
K. Lange
288bcc3b38 libc: fix bad digit check for strtoul base>10 2018-12-22 12:50:36 +09:00
K. Lange
0d8a512308 libc: break from scanf on failed non-whitespace match 2018-12-19 14:53:32 +09:00
K. Lange
bdd407f29c libc: more pthread stubs 2018-12-19 14:38:08 +09:00
K. Lange
e2b6f13ba2 libc: set errno on read, write 2018-12-11 09:42:21 +09:00
K. Lange
54e9044161 libc: add more toaru-specific syscall wrappers 2018-12-10 18:47:18 +09:00
K. Lange
c9c18f70ad libc: move syscall defs; consistently use SYS_ macros 2018-12-10 10:09:27 +09:00
K. Lange
9d8962c8f3 libc: stub libintl implementation 2018-12-08 18:45:19 +09:00
K. Lange
d63c98b6bf libc: fprem fmod() 2018-12-08 13:33:25 +09:00
K. Lange
dfb176abe5 libc: sin: lerp table lookup 2018-12-06 18:31:18 +09:00
K. Lange
e0575b89eb libc: faster sine table lookup 2018-12-05 13:00:21 +09:00
K. Lange
b1f7295d48 libc: fix localtime() for December 2018-12-01 11:09:09 +09:00
K. Lange
4788ff3cc8 beep: fix some durations 2018-11-29 18:30:59 +09:00
K. Lange
eff00f21c4 libc: fix strncpy - must set nil bytes 2018-11-27 18:41:50 +09:00
K. Lange
7c8a98e957 libc: stat/lstat must return -1 on error 2018-11-25 12:50:42 +09:00
K. Lange
eeff7d7db9 libc: fix silly comparison mistake in scanf 2018-11-23 10:41:45 +09:00
K. Lange
41b5e640bf libc: add mkstemp 2018-11-22 16:27:07 +09:00
K. Lange
6d110161a9 libc: fix malloc assert to not call malloc 2018-11-21 22:06:28 +09:00
K. Lange
6a0845d54a dirname: add command and libc function 2018-11-18 09:56:43 +09:00
K. Lange
558a273828 basename: libc function 2018-11-18 09:47:23 +09:00
K. Lange
673e1e90c9 libc: support + in printf and any flag ordering 2018-11-08 15:44:00 +09:00
K. Lange
b73316b5f5 libc: change some math debugging 2018-11-08 15:23:40 +09:00
K. Lange
6bde148d27 libc: system should return WEXITSTATUS(status) 2018-11-05 13:51:29 +09:00
K. Lange
0762fb30ce libc: getlogin should not query fd directly 2018-10-31 11:39:56 +09:00
K. Lange
b42c185421 sudo: support euids with setuid binaries 2018-10-31 10:28:41 +09:00
K. Lange
35c29e9b4d kernel: getpgid; esh: fixups 2018-10-30 13:28:11 +09:00
K. Lange
6c88956fa4 job control 2018-10-26 20:34:15 +09:00
K. Lange
3fc0ccef4f libc: crt's to GNU as 2018-10-13 15:53:16 +09:00
K. Lange
b5b2efd8da libc: strncasecmp that more closely matches strncmp 2018-10-12 15:55:18 +09:00
K. Lange
399a1f2e0c libc: qsort: bail early when sizes are 0 2018-10-12 15:53:54 +09:00
K. Lange
23e3681c21 libc: add loud debugging to execve 2018-10-12 15:40:45 +09:00
K. Lange
f16fbd458c libc: ftell should return position of read pointer 2018-10-12 15:40:04 +09:00
K. Lange
0df12ea064 libc: loud debugging options 2018-10-12 15:03:22 +09:00
K. Lange
3975b9cd75 libc: absolute minimum sscanf to get cc1 off the ground 2018-10-12 13:51:26 +09:00
K. Lange
5de060b1d5 libc: fwrite: bail quickly if size calcs to 0 2018-10-12 13:50:53 +09:00
K. Lange
e492f967c0 libc: fix bad strncmp 2018-10-12 13:10:46 +09:00
K. Lange
ffa655ad9d libc: add stub alarm 2018-10-12 12:45:48 +09:00
K. Lange
09c407235e libc: stub __cxa_atexit 2018-10-12 11:30:30 +09:00
K. Lange
b33815c632 libc: support for building libstdc++? 2018-10-12 10:35:28 +09:00
K. Lange
7d2378085c libc: revert isspace for isprint 2018-10-11 15:30:38 +09:00
K. Lange
fa56c864b1 libc: fix conflicting, redundant getenv declaration in execvp 2018-10-10 23:21:11 +09:00
K. Lange
123558727c libc: support # in printf 2018-10-10 21:46:58 +09:00
K. Lange
3fbac34e2c libc: ll size specifiers in printf 2018-10-10 14:27:03 +09:00
K. Lange
045e511d74 libc: fscanf stubs 2018-10-10 11:30:25 +09:00
K. Lange
3d780117c3 libc: working wcstombs and mbstowcs 2018-10-10 11:01:30 +09:00
K. Lange
c64d881181 libc: bad, bsd-style mktemp (also add user app) 2018-10-10 10:11:28 +09:00
K. Lange
bd7ecfa03b libc: remove duplicate str functions 2018-10-10 10:10:11 +09:00
K. Lange
5cec6037ee libc: stub sscanf 2018-10-10 10:06:13 +09:00
K. Lange
14e8a6ea7f libc: add naive bsearch 2018-10-10 09:35:09 +09:00
K. Lange
2498ee21f6 strtol and family 2018-10-10 09:13:54 +09:00
K. Lange
d3907663d0 libc: more string functions 2018-10-10 08:42:52 +09:00
K. Lange
85d197c810 isprint: match isspace 2018-10-09 21:41:24 +09:00
K. Lange
f3c800b791 add logname, getlogin() 2018-10-09 20:35:53 +09:00
K. Lange
11772506bb kernel, libc: tty names 2018-10-09 19:56:45 +09:00
K. Lange
9c30e8263d kill(2): sets errno 2018-10-08 10:23:10 +09:00