Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-26 22:36:44 +00:00
parent 1a09efbbbe
commit a29a3ac6f6
3 changed files with 46 additions and 37 deletions
+6
View File
@@ -22,6 +22,10 @@
#include <sys/syscall.h>
#endif
#ifdef __OpenBSD__ /* for pledge */
#include <unistd.h>
#endif
#define items(x) (sizeof((x)) / sizeof((x)[0]))
/* system prototypes
@@ -369,6 +373,8 @@ void write_mac_part(size_t partnum);
/* string functions
*/
int xunveilx(const char *path, const char *permissions);
int xpledgex(const char *promises, const char *execpromises);
int slen(const char *scmp, size_t maxlen,
size_t *rval);
int scmp(const char *a, const char *b,