47 Commits

Author SHA1 Message Date
95a33c484e
kernel+libc: Add a memstat() syscall
We can finally show memory usage in userspace.

This could have been done using sysfs, but I'm lazy and don't want to implement that. Maybe in the next release?
2023-08-17 20:15:32 +02:00
ec3c1132d2
libc: Fix constness of some socket functions 2023-08-11 18:00:15 +02:00
a92077d311
kernel+libc: Add all variants of utime 2023-08-08 14:14:35 +02:00
b01aa72f17
libc+init+shmem-test: Add POSIX shared memory objects 2023-08-03 10:32:52 +02:00
53d9f5c6fc
libc: Add msync wrapper 2023-08-02 22:44:54 +02:00
6593f9241b
libc: Add wrapper for poll() 2023-08-02 17:19:16 +02:00
7b24a4d1c6
libc: Add wrappers for listen(), connect(), and accept() 2023-07-30 11:33:06 +02:00
a12b018b03
kernel+libc: Add basic Unix sockets (creation and binding) 2023-07-30 11:33:06 +02:00
cde467ee46
kernel: Support returning termination signals from waitpid 2023-07-10 20:16:06 +02:00
a9460469d9
kernel+libc+apps: Add a source parameter to the mount() system call 2023-06-25 20:35:35 +02:00
8bcec00a9d
kernel: Change the timer subsystem to use timespecs natively 2023-06-03 13:15:10 +02:00
dcb8ab569a
libc: Add basic sys/param.h for programs that want it 2023-05-31 22:15:22 +02:00
b0506bf88f
kernel: Add umask 2023-05-26 22:27:49 +02:00
cb205c851c
libc: Add symlink(), symlinkat(), and lstat() 2023-05-20 21:49:25 +02:00
6de90b3c93
libc: Add getrusage() 2023-05-20 12:48:17 +02:00
a7c6163e7c
libc: Add gettimeofday() 2023-05-20 12:05:22 +02:00
dc169124cc
libc: Add fchown, fchmod, and some POSIX feature test macros 2023-05-19 19:59:20 +02:00
1506331872
kernel+libc: Add the pstat() system call
Luna-specific, but I like it.
2023-05-18 21:48:47 +02:00
84bed3ceb3
kernel+libc: Remove mknod()
Now that we automatically create files in /dev, mknod() is not needed anymore.
2023-05-18 19:42:14 +02:00
1f4c4928cc
kernel+libc+apps: Add mount and umount syscalls, libc wrappers, and utilities 2023-05-17 20:30:15 +02:00
4a3a92e9d4
libc: Move chmod from unistd.h to sys/stat.h
Apparently that's where it's supposed to be.
2023-05-11 19:40:34 +02:00
2572d5b238
libc: Add wrapper for the fstatat() system call 2023-05-01 20:00:43 +02:00
9eab0886b6
kernel+libc: Add uname() 2023-04-24 20:34:44 +02:00
4f6e020196
kernel+libc: Add framebuffer ioctls 2023-04-21 18:25:53 +02:00
13c9caa856
kernel+libc: Add stat() + fstat() 2023-04-10 19:56:03 +02:00
3e5957f9fc
libc: Add ioctl() syscall wrapper 2023-04-09 11:24:13 +02:00
3da1849c99
kernel+libc: Add set* and get* syscalls for UIDs and GIDs 2023-04-08 13:50:18 +02:00
eb3fb04734
libc: Add system() 2023-04-08 12:18:52 +02:00
0847cfcb65
kernel: Add a getdents() syscall 2023-03-28 21:28:56 +02:00
e76ccd6c4c
kernel+libc+init: Add getppid() and wait() 2023-03-24 17:39:55 +01:00
b6fb5f3dfe
kernel+libc: Implement waitpid() 2023-03-23 22:42:24 +01:00
8c831a6906
libc: Add mknod() 2023-03-18 09:13:31 +01:00
7173c05a22
kernel: Add support for special device files and add a mknod() syscall 2023-03-18 09:10:33 +01:00
08c888eaae
kernel+libc: Remove (de)allocate_memory and replace it with POSIX mmap 2023-03-14 20:43:15 +01:00
d66506256d
kernel/VFS+libc: Introduce modes 2023-03-12 16:55:46 +01:00
682d3c753e
kernel+libc: Add mkdir() 2023-03-12 15:32:09 +01:00
7e655e320a
kernel+libc: Add the lseek() syscall, and fseek, ftell, rewind, fsetpos, and fgetpos 2023-03-12 13:15:24 +01:00
8fa72f3cf0
kernel+libc: Implement read() 2023-03-11 18:02:50 +01:00
7f8a8cdcaf
kernel, libc: Add an usleep() system call and use that to implement usleep() and sleep() in libc 2023-01-22 15:00:20 +01:00
e676fb8299
libc: Add a wide range of time manipulation functions, including reentrant variants 2023-01-13 21:06:27 +01:00
5fb2ff09c7
kernel, luna, libc: Move the heap code to a common zone, to be used by both kernel and userspace 2023-01-13 19:27:53 +01:00
d864bda751
libc: Add (de)allocate_memory wrappers located in sys/mman.h 2023-01-13 19:08:02 +01:00
d150c55143
TarStream: Support mode 2023-01-11 18:42:50 +01:00
a620b00b18
Unify libc header descriptions 2023-01-08 15:29:30 +01:00
b70bbc0ba6
More libc commenting 2023-01-07 11:21:53 +01:00
a8a64863c8
kernel, libc: Add clock_gettime() 2023-01-07 00:21:08 +01:00
129e3c434a
Switch to C for userspace, with a very bare-bones libc!! 2023-01-06 13:31:14 +01:00