Commit graph

31 commits

Author SHA1 Message Date
Nathan Fisher
ebf8b1c901 Add test/runner.c; Fix test failure due to allocating wrong size for linkmap; Overall cleanup; 2024-04-17 03:05:41 -04:00
Nathan Fisher
cc8ecc55b7 Continue refactor for consistency 2024-02-11 18:54:38 -05:00
Nathan Fisher
f72b120b0c Apply formatting 2024-02-11 18:37:05 -05:00
4a2b0328f9 Continue refactor 2024-02-11 11:00:28 -05:00
1e5b903cff Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/seahag into odin 2024-02-11 01:14:31 -05:00
f4e9b80737 Minor refactor and formatting changes 2024-02-11 01:09:21 -05:00
675a030f66 Fix issues around extracting symlinks which only showed up when using
Musl libc
2024-02-04 00:02:59 -05:00
a988a7877e If hardlink exists, remove it before attempting to recreate it 2023-12-19 06:59:57 -05:00
Nathan Fisher
a7a0f6542d Add test for extracting soft links and fix errors; Fix error in extracting fifo nodes if file exists; 2023-11-20 19:05:11 -05:00
Nathan Fisher
de23c4c4cb Add test for extracting file nodes 2023-11-12 19:04:40 -05:00
Nathan Fisher
5a769bc36c Remove include added by editor; Make sure to call pthread_cond_broadcast after pushing to mq in order to unblock threads; 2023-10-05 12:50:26 -04:00
ccb742e80e Add test for fifo node extraction 2023-10-05 10:40:12 -04:00
ba69c2b8e9 Add test for extracting directory nodes 2023-10-04 10:48:40 -04:00
d63b9f29d0 Send DevNodeSkipped message type when extracting device nodewithout root
priv
2023-10-03 13:16:25 -04:00
374de790a7 Clean up and label includes 2023-10-03 13:04:50 -04:00
Nathan Fisher
7b94a728ae Get device file ezxtraction working and tested 2023-10-03 01:53:59 -04:00
349c9389dd Flush and close file descriptor after write when extracting a file node;
Remove #include directives automatically added by editor which only
exist on Linux;
2023-09-22 10:16:53 -04:00
Nathan Fisher
2bc5861dc0 Wrote the extract_node functionality; TODO: test it; 2023-09-21 22:58:32 -04:00
58ba56f852 Progress on extracting nodes 2023-09-19 20:46:48 -04:00
Nathan Fisher
26dbb9154c Add message queue as parameter when creating nodes; Begin splitting
`create_node` function up into helper functions;
2023-09-19 00:34:27 -04:00
Nathan Fisher
13d7682861 Added message queue in mq.c 2023-09-17 19:09:44 -04:00
Nathan Fisher
7671e9e29e Add test for creating a symlink node and change to using lstat
instead of `stat` to check file type.
2023-09-15 01:49:16 -04:00
826df41c01 Three small fixes 2023-09-13 16:48:56 -04:00
3cc22ed428 Add create_dir_node test 2023-09-13 16:41:59 -04:00
Nathan Fisher
6ddcbd7a96 Remove includes added by lsp server; Check in confg.mk; 2023-08-24 00:18:13 -04:00
7e621cb64f Properly init filename when creating node 2023-08-23 14:05:32 -04:00
Nathan Fisher
da412f754c Remove unneeded #include for stddef.h 2023-08-18 12:42:16 -04:00
Nathan Fisher
ed9648ff78 Replace linklist with linkmap and remove former completely. Also
remove generic hashmap implementation in favor of linkmap.
2023-08-18 12:37:24 -04:00
69107b2c80 Progress on new linkmap structure, for tracking hardlinks 2023-08-17 11:45:59 -04:00
bd820638b5 Replace several uses of malloc with calloc 2023-08-14 23:42:09 -04:00
Nathan Fisher
39a3e45b6c Fix Linux compilation, simplify Makefiles 2023-08-10 22:42:43 -04:00
Renamed from src/haggis.c (Browse further)