From 7aab85b35f884344585101aedfbd3a922bdeeb19 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 27 Jan 2025 17:18:01 -0600 Subject: Write encrypttotmp, fuck up decryption again --- src/shared.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/shared.h') diff --git a/src/shared.h b/src/shared.h index 9cdbd33..3c23676 100644 --- a/src/shared.h +++ b/src/shared.h @@ -24,6 +24,12 @@ void* xreallocarray(void *ptr, size_t nmemb, size_t size); // Read the entire contents of a file descriptor into a malloc()'ed buffer int readwholebuffer(char **str, unsigned long int initsize, int fd); +// Write the entire contents of a buffer into a file descriptor int writewholebuffer(int fd, const unsigned char *buf, int len); +// `dirname()` reimplementation that returns a malloc()'ed string. According to the `x___` naming scheme, exits on alloc error. +// `___VXGG___XALLOC_EXIT_ON_ERROR___` influences whether `exit()` or `abort()` is called on error, and `___VXGG___VERBOSE_ERRORS___` +// influences whether diagnostic error messages are printed +char *xdirname(const char * const path); + #endif \ No newline at end of file -- cgit v1.2.3