60a2185ee6 
								
							 
						 
						
							
							
								
								Kernel/LibC: implement proper getpgid and setpgid  
							
							
							
						 
						
							2023-08-22 14:53:12 +03:00  
				
					
						
							
							
								 
						
							
								c9243f0d1e 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add {get,set}pgrp()  
							
							
							
						 
						
							2023-08-22 11:36:33 +03:00  
				
					
						
							
							
								 
						
							
								b5a7246ba7 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								0abe30af38 
								
							 
						 
						
							
							
								
								BuildSystem: only apply stack usage warning to libc  
							
							
							
						 
						
							2023-08-17 20:49:52 +03:00  
				
					
						
							
							
								 
						
							
								85c6149138 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								79f3aa5419 
								
							 
						 
						
							
							
								
								Kernel/LibC: add dup() syscall and function  
							
							
							
						 
						
							2023-08-17 12:03:29 +03:00  
				
					
						
							
							
								 
						
							
								569e76a848 
								
							 
						 
						
							
							
								
								LibC: printf handles nan and inf  
							
							
							
						 
						
							2023-08-16 10:49:34 +03:00  
				
					
						
							
							
								 
						
							
								3a36c30e80 
								
							 
						 
						
							
							
								
								LibC: math.h defines is*() macros and uses builtins for values  
							
							
							
						 
						
							2023-08-16 10:41:55 +03:00  
				
					
						
							
							
								 
						
							
								9ab7e76a3b 
								
							 
						 
						
							
							
								
								LibC: cleanup fstatat  
							
							
							
						 
						
							2023-08-11 12:25:15 +03:00  
				
					
						
							
							
								 
						
							
								9cb50cba33 
								
							 
						 
						
							
							
								
								LibC: Fix S_IF* macros and add macros for access/type masks  
							
							
							
						 
						
							2023-08-11 10:30:50 +03:00  
				
					
						
							
							
								 
						
							
								e715d52f80 
								
							 
						 
						
							
							
								
								LibC: fix typo  
							
							
							
						 
						
							2023-08-02 22:10:12 +03:00  
				
					
						
							
							
								 
						
							
								b4eddf04c4 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								2a851b52f1 
								
							 
						 
						
							
							
								
								BuildSystem: Edit build flags regarding sse and warnings  
							
							
							
						 
						
							2023-07-31 22:31:17 +03:00  
				
					
						
							
							
								 
						
							
								834bf33e57 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								f6ee4b3496 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								2dce0a0415 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								d560137ae6 
								
							 
						 
						
							
							
								
								Kernel/LibC: add SYS_SIGNAL/signal()  
							
							
							
						 
						
							2023-07-21 20:08:13 +03:00  
				
					
						
							
							
								 
						
							
								c12f4fb40f 
								
							 
						 
						
							
							
								
								Kernel: Make signals more POSIX  
							
							
							
						 
						
							2023-07-21 20:01:12 +03:00  
				
					
						
							
							
								 
						
							
								10169d773d 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add SYS_KILL/kill()  
							
							
							
						 
						
							2023-07-21 19:27:38 +03:00  
				
					
						
							
							
								 
						
							
								c2cf98e32f 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								4154f43b49 
								
							 
						 
						
							
							
								
								LibC: add getpwname() and getpwuid()  
							
							
							
						 
						
							2023-07-13 12:01:16 +03:00  
				
					
						
							
							
								 
						
							
								b1fcb0b58f 
								
							 
						 
						
							
							
								
								LibC: implement endpwent(), getpwent() and setpwent()  
							
							
							
						 
						
							2023-07-13 11:22:09 +03:00  
				
					
						
							
							
								 
						
							
								f7c4bc908e 
								
							 
						 
						
							
							
								
								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  
				
					
						
							
							
								 
						
							
								51e4b11890 
								
							 
						 
						
							
							
								
								LibC: add NAME_MAX to limits.h  
							
							... 
							
							
							
							This is defined to 255 which is _XOPEN_NAME_MAX, smallest value
for XOPEN compliance 
							
						 
						
							2023-07-10 11:48:11 +03:00  
				
					
						
							
							
								 
						
							
								a337f414fc 
								
							 
						 
						
							
							
								
								LibC: limits.h now defined OPEN_MAX  
							
							
							
						 
						
							2023-07-07 23:08:49 +03:00  
				
					
						
							
							
								 
						
							
								07fec6e211 
								
							 
						 
						
							
							
								
								Kernel/LibC: add basic dup2  
							
							
							
						 
						
							2023-07-06 23:17:54 +03:00  
				
					
						
							
							
								 
						
							
								4cd72992c8 
								
							 
						 
						
							
							
								
								Kernel/LibC: Add basic pipe() syscall and command  
							
							... 
							
							
							
							You can now create pipes :) 
							
						 
						
							2023-07-06 22:16:26 +03:00  
				
					
						
							
							
								 
						
							
								cdcb395640 
								
							 
						 
						
							
							
								
								LibC: add read() and write() to unistd  
							
							
							
						 
						
							2023-07-06 22:15:55 +03:00  
				
					
						
							
							
								 
						
							
								1fb305fa45 
								
							 
						 
						
							
							
								
								Kernel/LibC: add clock_gettime() for CLOCK_MONOTONIC  
							
							... 
							
							
							
							This gets the number of milliseconds since boot 
							
						 
						
							2023-07-06 00:38:29 +03:00  
				
					
						
							
							
								 
						
							
								60fe5a656c 
								
							 
						 
						
							
							
								
								LibC: Fix syscall SYS_READ and SYS_WRITE arguments  
							
							
							
						 
						
							2023-06-19 10:38:29 +03:00  
				
					
						
							
							
								 
						
							
								f09b82c4b5 
								
							 
						 
						
							
							
								
								Kernel/LibC: add SYS_{SET,GET}_PWD and chdir, getpwd  
							
							
							
						 
						
							2023-06-12 02:02:52 +03:00  
				
					
						
							
							
								 
						
							
								11b68f6a53 
								
							 
						 
						
							
							
								
								Kernel: Add SYS_GET_{,E}{UID,GID}  
							
							
							
						 
						
							2023-06-11 22:37:00 +03:00  
				
					
						
							
							
								 
						
							
								3fe67e4882 
								
							 
						 
						
							
							
								
								Kernel: Add syscalls for set{,e,re}{uid,gid}  
							
							
							
						 
						
							2023-06-11 22:37:00 +03:00  
				
					
						
							
							
								 
						
							
								9288537949 
								
							 
						 
						
							
							
								
								LibC: gid_t and id_t are now signed types  
							
							... 
							
							
							
							I have no idea why I had made them unisigned 
							
						 
						
							2023-06-11 22:37:00 +03:00  
				
					
						
							
							
								 
						
							
								78536f9678 
								
							 
						 
						
							
							
								
								Kernel/Userspace: Add basic init process  
							
							... 
							
							
							
							This process parses /etc/passwd and promps login screen.
When an username is entered, it will launch that users shell 
							
						 
						
							2023-06-11 22:37:00 +03:00  
				
					
						
							
							
								 
						
							
								297141f321 
								
							 
						 
						
							
							
								
								LibC: add strchrnul()  
							
							... 
							
							
							
							this is a gnu libc extension 
							
						 
						
							2023-06-11 20:18:03 +03:00  
				
					
						
							
							
								 
						
							
								83a6e6f637 
								
							 
						 
						
							
							
								
								LibC: Reorder some syscalls  
							
							
							
						 
						
							2023-06-11 03:29:22 +03:00  
				
					
						
							
							
								 
						
							
								64890bb640 
								
							 
						 
						
							
							
								
								Kernel: Add SYS_OPENAT  
							
							
							
						 
						
							2023-06-11 03:29:22 +03:00  
				
					
						
							
							
								 
						
							
								68ec443e07 
								
							 
						 
						
							
							
								
								LibC: implement close  
							
							
							
						 
						
							2023-06-11 03:29:22 +03:00  
				
					
						
							
							
								 
						
							
								aa86125f2b 
								
							 
						 
						
							
							
								
								Kernel: Implement SYS_FSTAT  
							
							
							
						 
						
							2023-06-11 03:29:22 +03:00  
				
					
						
							
							
								 
						
							
								c423164066 
								
							 
						 
						
							
							
								
								LibC: Implement basic dirent functionality  
							
							... 
							
							
							
							We don't currently support seeking 
							
						 
						
							2023-06-11 03:29:22 +03:00  
				
					
						
							
							
								 
						
							
								eae6119039 
								
							 
						 
						
							
							
								
								Kernel: Add syscall for reading directory entries  
							
							
							
						 
						
							2023-06-11 00:18:08 +03:00  
				
					
						
							
							
								 
						
							
								30f81e1696 
								
							 
						 
						
							
							
								
								LibC: add missing O_EXEC and O_SEARCH  
							
							
							
						 
						
							2023-06-11 00:17:18 +03:00  
				
					
						
							
							
								 
						
							
								24993f6020 
								
							 
						 
						
							
							
								
								LibC: implement setenv, unsetenv, putenv  
							
							
							
						 
						
							2023-06-05 22:51:02 +03:00  
				
					
						
							
							
								 
						
							
								55ea5c5488 
								
							 
						 
						
							
							
								
								Kernel: add basic support for environment variables  
							
							... 
							
							
							
							exec functions will search files from PATH 
							
						 
						
							2023-06-05 22:51:02 +03:00  
				
					
						
							
							
								 
						
							
								896b919c9d 
								
							 
						 
						
							
							
								
								Kernel/LibC: pass environ pointer to process  
							
							
							
						 
						
							2023-06-05 21:12:08 +03:00  
				
					
						
							
							
								 
						
							
								a7dc7ecb90 
								
							 
						 
						
							
							
								
								LibC: abort now prints 'abort()' and exits  
							
							... 
							
							
							
							we used to call assert in abort which then recursively called
abort again. 
							
						 
						
							2023-06-05 18:23:19 +03:00  
				
					
						
							
							
								 
						
							
								d1ad38c8d4 
								
							 
						 
						
							
							
								
								Kernel/LibC: add SYS_STAT and stat(), lstat()  
							
							
							
						 
						
							2023-06-05 14:37:14 +03:00  
				
					
						
							
							
								 
						
							
								40055f023c 
								
							 
						 
						
							
							
								
								LibC: add wait and waitpid  
							
							... 
							
							
							
							Note that wait() doesn't work since only waiting for specified
pid is supported. wait() will just return -1 and set errno to
ECHILD. 
							
						 
						
							2023-06-04 18:00:52 +03:00  
				
					
						
							
							
								 
						
							
								3a79880e69 
								
							 
						 
						
							
							
								
								LibC: printf string persision works now  
							
							
							
						 
						
							2023-06-03 15:07:02 +03:00