ladybird/Libraries/LibC/sys
Andreas Kling 24c736b0e7 Kernel: Use the Syscall string and buffer types more
While I was updating syscalls to stop passing null-terminated strings,
I added some helpful struct types:

    - StringArgument { const char*; size_t; }
    - ImmutableBuffer<Data, Size> { const Data*; Size; }
    - MutableBuffer<Data, Size> { Data*; Size; }

The Process class has some convenience functions for validating and
optionally extracting the contents from these structs:

    - get_syscall_path_argument(StringArgument)
    - validate_and_copy_string_from_user(StringArgument)
    - validate(ImmutableBuffer)
    - validate(MutableBuffer)

There's still so much code around this and I'm wondering if we should
generate most of it instead. Possible nice little project.
2020-01-11 12:47:47 +01:00
..
cdefs.h LibC: Fix warnings in sys/cdefs.h if __BEGIN_DECLS is already defined 2019-09-23 18:58:12 +02:00
file.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
ioctl.h LibC: Move duplicated winsize struct definition into ioctl_numbers.h 2019-08-18 07:40:02 +02:00
ioctl_numbers.h Kernel: Add SIOCGIFHWADDR ioctl to get the MAC address of an adapter 2019-10-02 18:20:11 +02:00
mman.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
param.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
resource.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
select.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
select.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
socket.cpp Kernel: Use the Syscall string and buffer types more 2020-01-11 12:47:47 +01:00
socket.h LibC: move in_addr and sockaddr_in to netinet/in.h 2020-01-02 04:09:56 +01:00
stat.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
sysmacros.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
time.h LibC+ping: Let's use the traditional timersub() et al prototypes 2019-12-27 23:07:28 +01:00
times.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
types.h Kernel+LibPthread+LibC: Add a naive futex and use it for pthread_cond_t 2019-12-25 23:54:06 +01:00
uio.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
uio.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
un.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
utsname.h Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
wait.cpp Libraries: Create top level directory for libraries. 2019-07-04 16:16:50 +02:00
wait.h LibC: Add WIFSTOPPED() macro in <sys/wait.h>. 2019-07-14 11:31:53 +02:00