cosmopolitan/libc/log
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
..
thunks Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
addr2linepath.c Change license 2020-12-27 17:18:44 -08:00
appendresourcereport.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
attachdebugger.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
backtrace.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
backtrace2.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
backtrace3.c Make whitespace changes 2021-08-13 03:20:45 -07:00
bsd.h Add chibicc 2020-12-06 16:20:21 -08:00
cancolor.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
check.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
checkaligned.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
checkfail.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
checkfail_ndebug.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
color.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
commandvenv.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
die.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
err.c Change license 2020-12-27 17:18:44 -08:00
errx.c Change license 2020-12-27 17:18:44 -08:00
flogf.c Change license 2020-12-27 17:18:44 -08:00
gdb.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
gdbexec.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
gdbpath.c Change license 2020-12-27 17:18:44 -08:00
gdbsync.c Change license 2020-12-27 17:18:44 -08:00
getcallername.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
getsicodename.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
getsymboltable.c Make SSL handshakes much faster 2021-07-11 23:17:47 -07:00
getttycols.c Change license 2020-12-27 17:18:44 -08:00
getttysize.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
internal.h Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
isrunningundermake.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
isterminalinarticulate.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
log.h Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
log.mk Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
logerrno.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
logfile.initabi.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
loglevel.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
malloc_stats.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
meminfo.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
memsummary.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
oncrash.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
oncrashthunks.S Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
onkill.c Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
perror.c Make minor improvements 2021-05-15 21:53:26 -07:00
showcrashreports.c Add cpu / mem / fsz limits to build system 2021-08-13 23:40:53 -07:00
startfatal.c Make whitespace changes 2021-08-13 03:20:45 -07:00
startfatal_ndebug.c Make whitespace changes 2021-08-13 03:20:45 -07:00
traceme.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
traceme.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
verr.c Change license 2020-12-27 17:18:44 -08:00
verrx.c Change license 2020-12-27 17:18:44 -08:00
vflogf.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
vwarn.c Change license 2020-12-27 17:18:44 -08:00
vwarnx.c Change license 2020-12-27 17:18:44 -08:00
warn.c Change license 2020-12-27 17:18:44 -08:00
warnx.c Change license 2020-12-27 17:18:44 -08:00