Commit Graph

65 Commits

Author SHA1 Message Date
K. Lange
47bfbec647 libc: fix incorrect cast of field width to char 2023-07-04 16:46:21 +09:00
K. Lange
0621fa81b6 libc: add asprintf, fix vasprintf return value 2023-04-21 15:55:17 +09:00
K. Lange
e234aa7593 libc: Fix float formatters showing '0.10', etc. 2023-03-27 17:13:39 +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
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
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
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
a133f3e5af sscanf: should accept whitespace before integers 2019-06-29 20:36:28 +09:00
K. Lange
0d8a512308 libc: break from scanf on failed non-whitespace match 2018-12-19 14:53:32 +09:00
K. Lange
eeff7d7db9 libc: fix silly comparison mistake in scanf 2018-11-23 10:41:45 +09:00
K. Lange
673e1e90c9 libc: support + in printf and any flag ordering 2018-11-08 15:44:00 +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
b33815c632 libc: support for building libstdc++? 2018-10-12 10:35:28 +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
5cec6037ee libc: stub sscanf 2018-10-10 10:06:13 +09:00
K. Lange
94b63c3083 z as a size specifier in printf 2018-09-25 18:44:22 +09:00
K. Lange
a7fab6fbe8 workaround bug in printf for floats until we fix nprintf 2018-09-22 17:34:48 +09:00
K. Lange
43b021cdc6 Fix stdio/fwrite writing element by element, which is wrong 2018-09-11 13:11:37 +09:00
K. Lange
bea8d8f6db libc updates 2018-08-21 21:50:52 +09:00
K. Lange
001f253ef0 printf %u 2018-08-08 15:03:47 +09:00
K. Lange
ba10025308 perror should use strerror 2018-07-19 22:52:27 +09:00
K. Lange
b9419c756b some missing stdio stuff 2018-07-19 19:12:49 +09:00
K. Lange
c35ccc0722 vasprintf should return int 2018-07-19 18:50:15 +09:00
K. Lange
35a2a4bc5c more filesystem permission things, add rm 2018-07-18 15:35:52 +09:00
K. Lange
b1fe4fa4ce More errno stuff 2018-07-18 10:45:42 +09:00
K. Lange
16905dc784 oops, kinda fix a+? 2018-07-17 19:44:15 +09:00
K. Lange
4873b141ec Properly support w/+ in stdio? 2018-07-17 17:09:22 +09:00
K. Lange
ff1338d137 Replace http-get with new fetch (based on old fetch) 2018-07-01 17:11:35 +09:00
K. Lange
38e380fc49 Fix setvbuf 2018-07-01 09:30:16 +09:00
K. Lange
397b6045b5 precision specifiers for %f 2018-06-30 13:55:45 +09:00
K. Lange
03ab5b9f78 Fix missing execve; add .* printf support for s 2018-06-29 10:42:56 +09:00
K. Lange
79ac5ba9b1 Fix several Python things 2018-06-26 20:53:48 +09:00
K. Lange
146a2240bb Python wants %i for line numbers 2018-06-25 20:22:01 +09:00
K. Lange
bb689dd36c Yet more libc fixes, Python now runs 2018-06-25 20:15:45 +09:00
K. Lange
a97772d208 More printf stuff for python 2018-06-25 19:42:07 +09:00