diff options
| author | @syxhe <https://t.me/syxhe> | 2025-01-07 18:17:42 -0600 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-01-07 18:17:42 -0600 |
| commit | 248e80cb5d5a411cc6362919f1b495f29fe57f9d (patch) | |
| tree | a7723d9f500938a958dd2e1bf9fbca12db86cd3f /notes.txt | |
| parent | 2be40dd8d9930ad66b26cfaa42d1176dd55b42e8 (diff) | |
Figure out how to link into the filesystem
Diffstat (limited to 'notes.txt')
| -rw-r--r-- | notes.txt | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -34,6 +34,10 @@ on each system I infect, so I still need something else | |||
| 34 | mkstemp might be quite a useful function for doing the encrypting thing, but having a template name might be problematic. I may just | 34 | mkstemp might be quite a useful function for doing the encrypting thing, but having a template name might be problematic. I may just |
| 35 | have to rename everything before linking. Maybe linkat() would work | 35 | have to rename everything before linking. Maybe linkat() would work |
| 36 | 36 | ||
| 37 | libevent might be useful to slam everything together for async IO that I don't need to real with, but that also sounds like it would | ||
| 38 | be a lot of work that I might not need to do. I'm going to do threadpooling first and then make a branch that uses libevent to see | ||
| 39 | if there's any appreciable improvement in performance | ||
| 40 | |||
| 37 | ============== LIST OF POTENTIALLY USEFUL GNU C FUNCTIONS ============== | 41 | ============== LIST OF POTENTIALLY USEFUL GNU C FUNCTIONS ============== |
| 38 | scandir() - Gets a list of files in a directory: https://www.gnu.org/software/libc/manual/html_node/Scanning-Directory-Content.html | 42 | scandir() - Gets a list of files in a directory: https://www.gnu.org/software/libc/manual/html_node/Scanning-Directory-Content.html |
| 39 | link() - Hardlinks one file to another location: https://www.gnu.org/software/libc/manual/html_node/Hard-Links.html | 43 | link() - Hardlinks one file to another location: https://www.gnu.org/software/libc/manual/html_node/Hard-Links.html |
