cosmopolitan/libc/fmt
Justine Tunney e963d9c8e3 Add cpu / mem / fsz limits to build system
Thanks to all the refactorings we now have the ability to enforce
reasonable limitations on the amount of resources any individual
compile or test can consume. Those limits are currently:

- `-C 8` seconds of 3.1ghz CPU time
- `-M 256mebibytes` of virtual memory
- `-F 100megabyte` limit on file size

Only one file currently needs to exceed these limits:

    o/$(MODE)/third_party/python/Objects/unicodeobject.o: \
        QUOTA += -C16  # overrides cpu limit to 16 seconds

This change introduces a new sizetol() function to LIBC_FMT for parsing
byte or bit size strings with Si unit suffixes. Functions like atoi()
have been rewritten too.
2021-08-13 23:40:53 -07:00
..
abs.c Change license 2020-12-27 17:18:44 -08:00
atoi.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
atol.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
atoll.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
basename.c Change license 2020-12-27 17:18:44 -08:00
basename_n.c Change license 2020-12-27 17:18:44 -08:00
bing.c Change license 2020-12-27 17:18:44 -08:00
bing.internal.h Enhance chibicc 2020-12-09 04:00:48 -08:00
conv.h Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
convertmicros.c Change license 2020-12-27 17:18:44 -08:00
dirname.c Apply some touchups 2021-02-07 07:02:46 -08:00
div.c Change license 2020-12-27 17:18:44 -08:00
fcvt.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
filetimetotime.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimespec.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimeval.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
fmt.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
fmt.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
fmt.mk Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
fmts.h Improve performance of printf functions 2021-04-24 13:58:50 -07:00
imaxabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
imaxabs.thunk.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
internal.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
isabspath.c Change license 2020-12-27 17:18:44 -08:00
isslash.internal.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
itoa.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa64.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
itoa64fixed16.greg.c Change license 2020-12-27 17:18:44 -08:00
itoa64radix8.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa64radix10.greg.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
itoa64radix16.greg.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa128radix10.greg.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
kerrornames.S Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
labs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ldiv.c Change license 2020-12-27 17:18:44 -08:00
leb128.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
llabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lldiv.c Change license 2020-12-27 17:18:44 -08:00
ntoa.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
pad.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
pflink.h Add SSL to redbean 2021-06-24 13:20:50 -07:00
sizetol.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
sleb128.c Change license 2020-12-27 17:18:44 -08:00
snprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sscanf.c Change license 2020-12-27 17:18:44 -08:00
stoa.c Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
strerror.c Change license 2020-12-27 17:18:44 -08:00
strerror_r.c Reduce number of disk seeks in redbean 2021-05-03 01:21:50 -07:00
stripexts.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
strtoimax.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtol.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtol.internal.h Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtoll.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtonum.c Change license 2020-12-27 17:18:44 -08:00
strtoul.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtoull.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
strtoumax.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
timespectofiletime.c Change license 2020-12-27 17:18:44 -08:00
timetofiletime.c Change license 2020-12-27 17:18:44 -08:00
timevaltofiletime.c Change license 2020-12-27 17:18:44 -08:00
unbing.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
unhexbuf.c Change license 2020-12-27 17:18:44 -08:00
unsleb128.c Change license 2020-12-27 17:18:44 -08:00
vcscanf.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
vsnprintf.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
vsprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
vsscanf.c Change license 2020-12-27 17:18:44 -08:00
wcstoimax.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
wcstol.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
wcstoul.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
wcstoumax.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00