diff options
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 |