Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-08-04 | do some simple TODOs, organize the rest; general code maintainance | dzwdz | |
2022-08-04 | user/tests: split the tests by parts of codebase | dzwdz | |
2022-08-04 | syscalls: add _syscall_sleep() | dzwdz | |
2022-08-03 | shared/printf: caching | dzwdz | |
Everything other than %s and %x outputs a single char at once. The speedup is easily visible when e.g. hexdumping. | |||
2022-08-03 | user/libc: isspace, strtol | dzwdz | |
2022-08-03 | shared: clean up printf, %u support (amongst other things) | dzwdz | |
2022-08-01 | fsutil: remove debug `true ||` in if condition | dzwdz | |
2022-07-29 | fsutil/fs_normslice: define *offset == 0 when *length == 0 | dzwdz | |
2022-07-29 | syscall/write: WRITE_TRUNCATE | dzwdz | |
2022-07-29 | syscall: up the max argument count to 5; make write accept flags | dzwdz | |
2022-07-29 | use a shared fs_normslice() function to handle offsets | dzwdz | |
2022-07-27 | user/libc: execve() supports passing argv now | dzwdz | |
2022-07-27 | user/libc: fseek() | dzwdz | |
2022-07-26 | user/libc: execv() | dzwdz | |
2022-07-26 | user/libc: fread, fwrite, fclose | dzwdz | |
2022-07-26 | shared: move some headers from shared/ to camellia/ | dzwdz | |
2022-07-20 | syscall/execbuf: EXECBUF_JMP | dzwdz | |
2022-07-18 | syscalls: implement execbuf | dzwdz | |
i have been planning to implement something like this for a while now. it should be faster when doing consecutive syscalls (to be tested). it will also be helpful in writing the elf loader | |||
2022-07-17 | kernel/virt_cpy: error struct, better error handling | dzwdz | |
2022-07-16 | amd64: back at the shell! | dzwdz | |
2022-07-16 | amd64: barely boot into kernel code | dzwdz | |
2022-07-10 | syscalls: implement dup | dzwdz | |
2022-07-09 | syscalls/pipe: turn into a POSIX-style api with separate rw ends | dzwdz | |
Without separate read/write ends you can't tell when there are no more writers left if you have multiple readers. Consider this piece of code: int fd = pipe(); fork(); // execution continues in 2 processes while (read(fd, &some_buf, sizeof somebuf) >= 0) { ... } Once both processes call `read()`, it's obvious that no writes are possible - all the processes that hold a reference to the pipe are currently stuck on a `read()` call, so the kernel could just make it return an error in both. But, what then? It's still possible to write to the pipe, and you can't know if the other process will do that. Thus, if you don't want to miss any output, you have to keep reading the pipe. Forever. Both processes end up stuck. Having separate read/write ends prevents that. | |||
2022-07-08 | syscall/fs_respond: get the file id from the buf argument | dzwdz | |
Previously, file ids could only be positive integers, so their range was 31 bits - not enough to represent the entire memory. Now, pointers can be safely used as file ids. | |||
2022-07-07 | kernel/vfs: delegate support in _syscall_fs_respond! | dzwdz | |
this is big in terms of speed, it avoids a lot of unnecessary context switches | |||
2022-07-07 | shared: add a flags argument to _syscall_fs_respond | dzwdz | |
2022-07-05 | kernel: initial partial pipe support | dzwdz | |
2022-07-05 | shared: fix memset | dzwdz | |
2022-07-01 | kernel: add the debug_klog syscall for tracking down process ids | dzwdz | |
2022-06-30 | shared/mem: explicitly discard the const qualifier in memchr | dzwdz | |
2022-06-29 | init/fs: tmpfs driver with support for creating new files | dzwdz | |
2022-06-29 | kernel/vfs: add the OPEN_CREATE flag | dzwdz | |
2022-05-26 | syscalls/memflag: FINDFREE flag | dzwdz | |
2022-05-15 | shared/ring: ring_contig | dzwdz | |
2022-05-15 | shared/ring: use char* for the buffer | dzwdz | |
i don't think uint8_t can alias. char can | |||
2022-05-06 | syscalls: merge fork() and fs_fork2() | dzwdz | |
2022-05-02 | meta: write a script to generate `src/init/syscalls.c` | dzwdz | |
2022-05-02 | syscalls: fork() noreap flag | dzwdz | |
2022-05-02 | kernel/vfs: pass `close()` calls to fs handlers | dzwdz | |
2022-04-14 | kernel: port init's `printf` implementation | dzwdz | |
2022-04-12 | kernel: make all sizes unsigned, sort out the sign mess | dzwdz | |
2022-04-10 | kernel/driver: modify the ps2/serial drivers to use ring_t | dzwdz | |
2022-04-10 | shared: implement a basic ring buffer | dzwdz | |
2022-03-27 | shared/memcpy: copy in 4byte blocks | dzwdz | |
2022-03-27 | shared/syscalls: change some pointer types to void* | dzwdz | |
2022-03-06 | shared: add strcmp() testcases, fix invalid implementation | dzwdz | |
2021-11-26 | shared: move `enum vfs_operation` to types.h | dzwdz | |
2021-11-20 | kernel: fs_wait returns a success val; the op type is put in the struct | dzwdz | |
2021-11-16 | kernel/vfs: add a capacity field to fs_wait_response | dzwdz | |
2021-11-14 | shared: move the str* implementations to shared/mem.c | dzwdz | |