1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-19 22:30:59 +00:00
serenity/Libraries
Andrew Kaster 98c86e5109 Kernel: Move E2BIG calculation from Thread to Process
Thread::make_userspace_stack_for_main_thread is only ever called from
Process::do_exec, after all the fun ELF loading and TSS setup has
occured.

The calculations in there that check if the combined argv + envp
size will exceed the default stack size are not used in the rest of
the stack setup. So, it should be safe to move this to the beginning
of do_exec and bail early with -E2BIG, just like the man pages say.

Additionally, advertise this limit in limits.h to be a good POSIX.1
citizen. :)
2019-10-23 07:45:41 +02:00
..
LibAudio AudioServer: Added ability to get count of samples in the buffer queue 2019-10-19 20:05:13 +02:00
LibC Kernel: Move E2BIG calculation from Thread to Process 2019-10-23 07:45:41 +02:00
LibCore LibCore: Make CFile::open() assert that the filename is non-null 2019-10-21 18:45:27 +02:00
LibDraw LibDraw: Add FloatPoint, FloatSize and FloatRect 2019-10-20 12:55:55 +02:00
LibGUI LibGUI: Allow override the font on a per-index basis in GListView 2019-10-22 21:38:04 +02:00
LibHTML LibHTML: <a href="#foo"> should prefer any element type with id=foo 2019-10-21 12:14:00 +02:00
LibIPC AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
LibM LibM: Make roundf() and ceilf() slightly less terrible 2019-10-20 17:20:20 +02:00
LibMarkdown LibMarkdown: Emit properly formed HTML documents 2019-10-13 12:58:56 +02:00
LibPCIDB ByteBuffer: Remove pointer() in favor of data() 2019-09-30 08:57:01 +02:00
LibThread AK: Add Atomic.h 2019-10-12 19:30:59 +02:00
LibVT LibVT: Make inject_string() a public API so clients can use it 2019-10-22 22:14:36 +02:00