diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-04 22:49:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-04 22:49:54 +0900 |
| commit | e342992a135e68d10716d9da920cb3af62a7d750 (patch) | |
| tree | 49a1a94a87204c672a9f57890ec9d9c23989e2f6 /src/sys.c | |
| parent | 17809b0571a038ec9eba3fc3620ba77a38c98afd (diff) | |
| download | ducc-e342992a135e68d10716d9da920cb3af62a7d750.tar.gz ducc-e342992a135e68d10716d9da920cb3af62a7d750.tar.zst ducc-e342992a135e68d10716d9da920cb3af62a7d750.zip | |
feat: use <stdio.h> in ducc sources
Diffstat (limited to 'src/sys.c')
| -rw-r--r-- | src/sys.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,10 @@ #include "sys.h" #include "std.h" +// TODO: #inclue some header. +typedef long ssize_t; +ssize_t readlink(const char*, char*, size_t); + static char* get_self_path() { char* buf = calloc(PATH_MAX, sizeof(char)); ssize_t len = readlink("/proc/self/exe", buf, PATH_MAX - 1); |
