797ca65c66 
								
							 
						 
						
							
							
								
								Kernel: Add physical memory info to /proc/{pid}/meminfo  
							
							
							
						 
						
							2023-09-30 22:11:45 +03:00  
				
					
						
							
							
								 
						
							
								a511441f7e 
								
							 
						 
						
							
							
								
								Kernel: /proc/{pid}/meminfo now reports per process memory usage  
							
							
							
						 
						
							2023-09-30 21:20:18 +03:00  
				
					
						
							
							
								 
						
							
								38320018dc 
								
							 
						 
						
							
							
								
								LibC: Implement stpcpy since gcc seems to need it  
							
							... 
							
							
							
							gcc seems to optimize some calls to strcpy to stpcpy 
							
						 
						
							2023-09-30 20:58:19 +03:00  
				
					
						
							
							
								 
						
							
								d883d212b1 
								
							 
						 
						
							
							
								
								Kernel/LibC: dirent now contains file type  
							
							
							
						 
						
							2023-09-30 20:46:57 +03:00  
				
					
						
							
							
								 
						
							
								d54c6b7f6b 
								
							 
						 
						
							
							
								
								LibC: Fix mmap()  
							
							... 
							
							
							
							mmap() did not pass fildes to the syscall structure. 
							
						 
						
							2023-09-29 17:24:21 +03:00  
				
					
						
							
							
								 
						
							
								376b9f7272 
								
							 
						 
						
							
							
								
								LibC: mmap returns MAP_FAILED instead of NULL  
							
							
							
						 
						
							2023-09-29 10:38:08 +03:00  
				
					
						
							
							
								 
						
							
								49d941ad65 
								
							 
						 
						
							
							
								
								LibC: Fix a bug in malloc  
							
							... 
							
							
							
							You could not allocate with size equal to one of the pool sizes. 
							
						 
						
							2023-09-28 21:05:27 +03:00  
				
					
						
							
							
								 
						
							
								79851394b3 
								
							 
						 
						
							
							
								
								Kernel/LibC/Userspace: Add SYS_POWEROFF + cli tool  
							
							... 
							
							
							
							You can now shutdown/reboot banan-os with the poweroff cli tool.
Reboot doesn't seem to work on qemu. 
							
						 
						
							2023-09-28 12:36:47 +03:00  
				
					
						
							
							
								 
						
							
								0b11d76576 
								
							 
						 
						
							
							
								
								LibC: Add errno for unknown error  
							
							
							
						 
						
							2023-09-28 12:06:17 +03:00  
				
					
						
							
							
								 
						
							
								1cd12b5f16 
								
							 
						 
						
							
							
								
								LibC: Implement length modifiers to printf  
							
							
							
						 
						
							2023-09-28 11:42:57 +03:00  
				
					
						
							
							
								 
						
							
								8d5369fafe 
								
							 
						 
						
							
							
								
								Kernel: Add some functionality to disable TTY input/output  
							
							... 
							
							
							
							Userspace programs can call tty_ctrl() to disable/enable tty from
handling input and displaying output.
This API is probably going to change in the future to ioctl calls
but I'm not sure how ioctl is used and what functionality should it
have. I decided to create whole new function and syscall for now.
Next I will expose framebuffer in /dev/fb0 and then I can start work
on graphical environment! :D 
							
						 
						
							2023-09-27 15:44:05 +03:00  
				
					
						
							
							
								 
						
							
								6cb8bda6e1 
								
							 
						 
						
							
							
								
								LibC: add syncsync() to unistd.h  
							
							... 
							
							
							
							This is my own WELL NAMED (:D) function that takes a paramemeter
to make the sync operation synchronous. 
							
						 
						
							2023-09-27 00:35:36 +03:00  
				
					
						
							
							
								 
						
							
								fc953df281 
								
							 
						 
						
							
							
								
								Kernel/LibC: remove PATH resoltion from kernel  
							
							... 
							
							
							
							I have no idea why I had made PATH environment variable parsing
to be part of the kernel. Now the shell does the parsing and
environment syscall is no longer needed. 
							
						 
						
							2023-09-23 03:08:14 +03:00  
				
					
						
							
							
								 
						
							
								fe2dca16f0 
								
							 
						 
						
							
							
								
								Kernel/LibC: add flag to enable/disable sse support  
							
							... 
							
							
							
							SSE support is very experimental and causes GP. I decided to make
SSE not default until I get to fixing it :) 
							
						 
						
							2023-09-23 02:28:25 +03:00  
				
					
						
							
							
								 
						
							
								f662aa6da2 
								
							 
						 
						
							
							
								
								Kernel/LibC: userspace malloc now uses mmap to get memory  
							
							... 
							
							
							
							We could remove syscalls to allocate more memory. This was not
something the kernel should have done. 
							
						 
						
							2023-09-23 02:26:23 +03:00  
				
					
						
							
							
								 
						
							
								fee3677fb9 
								
							 
						 
						
							
							
								
								Kernel/LibC: add mmap for private anonymous mappings  
							
							... 
							
							
							
							This will be used by the userspace to get more memory. Currently
kernel handles all allocations, which is not preferable. 
							
						 
						
							2023-09-22 23:01:14 +03:00  
				
					
						
							
							
								 
						
							
								5fae3cec2a 
								
							 
						 
						
							
							
								
								Kernel: Implement SYS_SYNC and add sync executable to userspace  
							
							... 
							
							
							
							You can (and have to) manually sync disk after writes to it. 
							
						 
						
							2023-09-11 01:26:27 +03:00  
				
					
						
							
							
								 
						
							
								720bc418a6 
								
							 
						 
						
							
							
								
								All: Clear lines with only whitspace in them  
							
							
							
						 
						
							2023-09-10 00:31:42 +03:00  
				
					
						
							
							
								 
						
							
								9e4a87021c 
								
							 
						 
						
							
							
								
								Kernel: Fix directory permissions  
							
							... 
							
							
							
							We did not care about X bit in directories and instead used only the
R bit for search/read. 
							
						 
						
							2023-09-08 11:46:53 +03:00  
				
					
						
							
							
								 
						
							
								0ec4f970f7 
								
							 
						 
						
							
							
								
								LibC: fix fread implementation  
							
							... 
							
							
							
							fread() should read until either size*nitems bytes are read or eof
is reached. 
							
						 
						
							2023-09-07 16:00:47 +03:00  
				
					
						
							
							
								 
						
							
								a15ffcb071 
								
							 
						 
						
							
							
								
								LibC: add time() implementation  
							
							
							
						 
						
							2023-09-04 13:52:58 +03:00  
				
					
						
							
							
								 
						
							
								692b77fb8e 
								
							 
						 
						
							
							
								
								LibC: Add rand() and srand() implementation  
							
							... 
							
							
							
							This code is from the wikipedia page for Permuted congruential generator 
							
						 
						
							2023-09-04 13:52:13 +03:00  
				
					
						
							
							
								 
						
							
								044378cfa3 
								
							 
						 
						
							
							
								
								Kernel: Add basic nanosleep, only millisecond percision  
							
							
							
						 
						
							2023-09-04 12:59:50 +03:00  
				
					
						
							
							
								 
						
							
								19d0fb6fcd 
								
							 
						 
						
							
							
								
								Kernel: add basic fcntl() with couple of commands and no validation  
							
							
							
						 
						
							2023-09-04 12:57:09 +03:00  
				
					
						
							
							
								 
						
							
								e8a73f9696 
								
							 
						 
						
							
							
								
								BuildSystem: use -a with rsync  
							
							... 
							
							
							
							This allows cmake to not rebuild whole project every time 
							
						 
						
							2023-08-28 11:38:17 +03:00  
				
					
						
							
							
								 
						
							
								1a0d114861 
								
							 
						 
						
							
							
								
								LibC: Don't undef needed values in inttypes.h  
							
							
							
						 
						
							2023-08-24 15:48:14 +03:00  
				
					
						
							
							
								 
						
							
								b05cf9ef09 
								
							 
						 
						
							
							
								
								BuildSystem: Base sysroot is now distributed as a tar ball  
							
							... 
							
							
							
							This allows file and directory permissions work as intended.
cmake is now filled with 'sudo' but with sudo timeout this should be
fine. 
							
						 
						
							2023-08-23 10:38:21 +03:00  
				
					
						
							
							
								 
						
							
								97ea4986af 
								
							 
						 
						
							
							
								
								Kernel/LibC: implement proper getpgid and setpgid  
							
							
							
						 
						
							2023-08-22 14:53:12 +03:00  
				
					
						
							
							
								 
						
							
								42b90ae76c 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add {get,set}pgrp()  
							
							
							
						 
						
							2023-08-22 11:36:33 +03:00  
				
					
						
							
							
								 
						
							
								b10168eb1c 
								
							 
						 
						
							
							
								
								LibC: make printf buffer only 128 bytes  
							
							... 
							
							
							
							Only reason for it to be big is if you want super large zero padding
for your number. This will eventually be handled without the buffer. 
							
						 
						
							2023-08-18 16:49:27 +03:00  
				
					
						
							
							
								 
						
							
								dc7391dc89 
								
							 
						 
						
							
							
								
								BuildSystem: only apply stack usage warning to libc  
							
							
							
						 
						
							2023-08-17 20:49:52 +03:00  
				
					
						
							
							
								 
						
							
								dcd8374b89 
								
							 
						 
						
							
							
								
								LibC: add fileno() and fdopen()  
							
							... 
							
							
							
							fdopen() doesn't currently care about mode and will have same mode
as the underlying file descriptor. 
							
						 
						
							2023-08-17 12:03:59 +03:00  
				
					
						
							
							
								 
						
							
								8e4216215e 
								
							 
						 
						
							
							
								
								Kernel/LibC: add dup() syscall and function  
							
							
							
						 
						
							2023-08-17 12:03:29 +03:00  
				
					
						
							
							
								 
						
							
								9a63d3b2da 
								
							 
						 
						
							
							
								
								LibC: printf handles nan and inf  
							
							
							
						 
						
							2023-08-16 10:49:34 +03:00  
				
					
						
							
							
								 
						
							
								bf02330db9 
								
							 
						 
						
							
							
								
								LibC: math.h defines is*() macros and uses builtins for values  
							
							
							
						 
						
							2023-08-16 10:41:55 +03:00  
				
					
						
							
							
								 
						
							
								d34c0a5abe 
								
							 
						 
						
							
							
								
								LibC: cleanup fstatat  
							
							
							
						 
						
							2023-08-11 12:25:15 +03:00  
				
					
						
							
							
								 
						
							
								165a379c73 
								
							 
						 
						
							
							
								
								LibC: Fix S_IF* macros and add macros for access/type masks  
							
							
							
						 
						
							2023-08-11 10:30:50 +03:00  
				
					
						
							
							
								 
						
							
								c67a7cec5b 
								
							 
						 
						
							
							
								
								LibC: fix typo  
							
							
							
						 
						
							2023-08-02 22:10:12 +03:00  
				
					
						
							
							
								 
						
							
								13852e865c 
								
							 
						 
						
							
							
								
								LibC: sys/wait.h now has proper exit status macros  
							
							... 
							
							
							
							We use the same format as basically every implementation 
							
						 
						
							2023-08-01 10:32:04 +03:00  
				
					
						
							
							
								 
						
							
								679d47131d 
								
							 
						 
						
							
							
								
								BuildSystem: Edit build flags regarding sse and warnings  
							
							
							
						 
						
							2023-07-31 22:31:17 +03:00  
				
					
						
							
							
								 
						
							
								8ec6d4c9fc 
								
							 
						 
						
							
							
								
								LibC: we don't parse syscall arguments in unistd  
							
							... 
							
							
							
							We just call Kernel::syscall() with 5 arguments from the variadic function.
This was a necessary addition since the syscall() function
used over 2 KiB of stack space. 
							
						 
						
							2023-07-31 22:24:11 +03:00  
				
					
						
							
							
								 
						
							
								432c296b7b 
								
							 
						 
						
							
							
								
								Kernel: Implement SYS_GET_PID and SYS_TCSETPGID  
							
							... 
							
							
							
							we don't have consept of process groups yet 
							
						 
						
							2023-07-24 22:29:59 +03:00  
				
					
						
							
							
								 
						
							
								adb14ba373 
								
							 
						 
						
							
							
								
								Kernel: Userspace signal handlers are now called one at a time  
							
							... 
							
							
							
							I added a syscall for telling the kernel when signal execution has
finished. We should send a random hash or id to the signal trampoline
that we would include in the syscall, so validity of signal exit can
be confirmed. 
							
						 
						
							2023-07-23 13:34:53 +03:00  
				
					
						
							
							
								 
						
							
								7391d91317 
								
							 
						 
						
							
							
								
								Kernel/LibC: add SYS_SIGNAL/signal()  
							
							
							
						 
						
							2023-07-21 20:08:13 +03:00  
				
					
						
							
							
								 
						
							
								2149cec29f 
								
							 
						 
						
							
							
								
								Kernel: Make signals more POSIX  
							
							
							
						 
						
							2023-07-21 20:01:12 +03:00  
				
					
						
							
							
								 
						
							
								ad756c36fc 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add SYS_KILL/kill()  
							
							
							
						 
						
							2023-07-21 19:27:38 +03:00  
				
					
						
							
							
								 
						
							
								dcd4d0daeb 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add bareboness signals  
							
							... 
							
							
							
							You can now call raise() to raise a signal. Signal handlers are
not yet supported, but the handling works :) 
							
						 
						
							2023-07-21 15:45:02 +03:00  
				
					
						
							
							
								 
						
							
								bba09a3cd0 
								
							 
						 
						
							
							
								
								LibC: add getpwname() and getpwuid()  
							
							
							
						 
						
							2023-07-13 12:01:16 +03:00  
				
					
						
							
							
								 
						
							
								985df3532b 
								
							 
						 
						
							
							
								
								LibC: implement endpwent(), getpwent() and setpwent()  
							
							
							
						 
						
							2023-07-13 11:22:09 +03:00  
				
					
						
							
							
								 
						
							
								4972284dde 
								
							 
						 
						
							
							
								
								Kernel: open() and openat() now take mode as parameter  
							
							... 
							
							
							
							O_CREAT now tries to create file if O_CREAT is specified 
							
						 
						
							2023-07-10 15:08:54 +03:00