From 624ceff9009604e0b5b44ec3dda0e67ac6201c7a Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 19 Dec 2015 04:01:46 +0100 Subject: [PATCH] Add _PC_NAME_MAX support. --- libc/unistd/pathconf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/unistd/pathconf.cpp b/libc/unistd/pathconf.cpp index a89f9209..d60983ef 100644 --- a/libc/unistd/pathconf.cpp +++ b/libc/unistd/pathconf.cpp @@ -1,6 +1,6 @@ /******************************************************************************* - Copyright(C) Jonas 'Sortie' Termansen 2013. + Copyright(C) Jonas 'Sortie' Termansen 2013, 2015. This file is part of the Sortix C Library. @@ -31,6 +31,7 @@ extern "C" long pathconf(const char* path, int name) switch ( name ) { case _PC_PATH_MAX: return -1; // Unbounded + case _PC_NAME_MAX: return -1; // Unbounded default: fprintf(stderr, "%s:%u warning: %s(\"%s\", %i) is unsupported\n", __FILE__, __LINE__, __func__, path, name);