diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 16:44:28 -0500 |
commit | 2bc46bd54cc8cdcd7647461f2d76384266f2a0e4 (patch) | |
tree | 52b77d68abbe5f971f63d2c82df8e933b831b521 /src/unistd/confstr.c | |
parent | a05e8f1436eecb990d68bc1de8ba28721f1f387d (diff) |
remove unistd
Diffstat (limited to 'src/unistd/confstr.c')
-rw-r--r-- | src/unistd/confstr.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/unistd/confstr.c b/src/unistd/confstr.c deleted file mode 100644 index 681715cd..00000000 --- a/src/unistd/confstr.c +++ /dev/null @@ -1,41 +0,0 @@ -#if 0 - -#include <sys/types.h> -#include <unistd.h> -#include <errno.h> -#include <string.h> -#include "_safety.h" - -size_t confstr(int name, char *buf, size_t len) -{ - char *value = NULL; - - if (len > 0) { - ASSERT_NONNULL(buf); - } - - switch (name) { - #include "_confstr.h" - default: - value = NULL; - break; - } - - if (value == NULL) { - errno = EINVAL; - return 0; - } - - if (len > 0) { - strncpy(buf, value, len); - } - - return strlen(value); -} - -/* -POSIX(2) -*/ - - -#endif |