Commit Graph

49 Commits

Author SHA1 Message Date
Matheus 9dd308599b devman and vfs: check if a function is not implemented before calling 2022-10-25 19:27:47 -03:00
Matheus 763ea89e83 vfs: expect fd argument to a few calls 2022-10-24 15:40:55 -03:00
Matheus 729b025b19 sockets: actually use socklen_t 2022-10-22 23:41:11 -03:00
Matheus 813ab0060c file mapping stub 2022-10-22 10:58:43 -03:00
Matheus 4834353501 syscalls: link at 2022-10-21 13:25:29 -03:00
Matheus e2ad6e06c7 fs: link 2022-10-20 23:24:11 -03:00
Matheus 2aaa3da856 vfs: initial symlink implementation 2022-10-20 21:05:39 -03:00
Matheus 1a48d652f5 sockets: recv 2022-10-18 13:28:06 -03:00
Matheus b9e1f85486 sockets: send 2022-10-18 12:45:16 -03:00
Matheus 4522b6c2da sockets: initial impl 2022-10-18 00:01:06 -03:00
Matheus 28b40a477b initrd: unallocate as files are dumped 2022-10-17 15:15:09 -03:00
Matheus 3d6098f9a9 filesystems: fix checks for file existance 2022-10-17 15:04:24 -03:00
Matheus 7aa645fd7b vfs: add current time to new node's structs 2022-10-17 14:47:42 -03:00
Matheus c0168df51e initrd: just silently ignore unknown types instead of printing the file path out 2022-10-16 20:45:10 -03:00
Matheus b94d37cade syscalls: fchmodat 2022-10-16 13:14:00 -03:00
Matheus a2c41882f3 pipe: fifo polling 2022-10-16 00:42:08 -03:00
Matheus 82f839f8a7 syscalls: poll 2022-10-15 14:06:34 -03:00
Matheus 55f15a903a initrd: don't panic at unknown filetypes, instead skip them 2022-10-13 13:32:38 -03:00
Matheus 8efd2fc0e3 devfs and tmpfs: don't have all files have the same inode 2022-10-13 13:31:45 -03:00
Matheus 85bd0c0412 pipes: initial implementation 2022-10-10 10:46:27 -03:00
Matheus 91a1781ecb syscalls: ioctl 2022-09-29 18:04:07 -03:00
Matheus 943e7abf80 vfs: getdirent 2022-09-24 17:13:03 -03:00
Matheus 313abaeb9a misc file bugfixes 2022-09-24 14:55:47 -03:00
Matheus 9c6d1157d7 fs: fix wrong mode on files 2022-09-24 00:04:30 -03:00
Matheus 67c9a04d58 fd: change allocation to add a lowest fd option 2022-09-23 19:37:40 -03:00
Matheus 8f2089f912 fd: duplicate and max_fd 2022-09-23 00:25:31 -03:00
Matheus 5e2059c284 fd: bugfixes
- add an extra check
- properly set the fd entry in the table to 0 in a refcount > 0 free
- only close the fd node if there's an open node
2022-09-20 17:13:37 -03:00
Matheus cd78bcff92 fd: fix table cloning 2022-09-19 22:51:37 -03:00
Matheus ce217ea8d8 fd: table cloning func 2022-09-19 18:37:21 -03:00
Matheus 41d6e7230e fd: new abstraction 2022-09-18 16:21:45 -03:00
Matheus cd8b9ae1e6 vfs: break traversal at separator only filename 2022-08-29 00:21:56 -03:00
Matheus 56bee8be77 VFS: dot entries 2022-08-28 16:28:11 -03:00
Matheus 54d9c3d809 vfs: very basic locking 2022-08-27 21:12:50 -03:00
Matheus 6d4439ee2f tmpfs: set error to 0 on read 2022-08-27 20:28:09 -03:00
Matheus 9c6ce452f8 /dev/console 2022-08-20 15:15:10 -03:00
Matheus b3b5981f7a isatty syscall 2022-08-20 12:47:23 -03:00
Matheus fc7986e5be close syscall 2022-08-19 22:54:07 -03:00
Matheus df2e7b1c34 fix stupid bugs
strcmp was funky, added a few guard checks to hashtable, added error printing to initrd and fixed swapgs (again) in isr.asm
2022-08-16 20:37:45 -03:00
Matheus 7a540ca1e1 fix elf stack issues and interrupt gsbase stuff 2022-08-16 19:12:16 -03:00
Matheus 261d7d3743 elf loading and userland 2022-08-14 20:19:38 -03:00
Matheus b2d8e5a166 devman initial implementation 2022-08-07 17:53:31 -03:00
Matheus 7ec69a219c devfs initial implementation 2022-08-07 17:33:49 -03:00
Matheus bdc19f90ef vfs and tmpfs read 2022-08-07 13:13:42 -03:00
Matheus ea8f21fb71 add tmpfs writing, vfs node tree dumping and fix some stupid issues 2022-08-04 20:49:59 -03:00
Matheus 479c51ec52 Initrd parsing and more VFS funcs.
Finished the initrd_parse() function for now and added vfs_open(), vfs_close() and vfs_write()
2022-08-04 19:31:10 -03:00
Matheus 947f4b4a06 initrd stub 2022-08-03 23:38:56 -03:00
Matheus 6ae75a9e99 create and mkdir funcs
file and directory creation functions for both the vfs and tmpfs
2022-08-03 22:05:11 -03:00
Matheus 2419b2e9e0 vfs filesystem mounting 2022-08-02 22:14:32 -03:00
Matheus 151235694d VFS stub 2022-07-30 22:51:07 -03:00