Index: uspace/lib/posix/source/fnmatch.c
===================================================================
--- uspace/lib/posix/source/fnmatch.c	(revision a3da2b2ee2ac5f4fadec2282a5f5974b52b2a6f3)
+++ uspace/lib/posix/source/fnmatch.c	(revision dcb07513e66a1ecb603d6f380ffee05fa3b4e187)
@@ -42,4 +42,6 @@
  */
 
+#define LIBPOSIX_INTERNAL
+
 #include "posix/stdbool.h"
 #include "posix/ctype.h"
@@ -47,6 +49,4 @@
 #include "posix/stdlib.h"
 #include "posix/assert.h"
-
-#define LIBPOSIX_INTERNAL
 
 #include "internal/common.h"
@@ -182,14 +182,14 @@
 	{ "alnum", isalnum },
 	{ "alpha", isalpha },
-	{ "blank", isblank },
-	{ "cntrl", iscntrl },
+	{ "blank", posix_isblank },
+	{ "cntrl", posix_iscntrl },
 	{ "digit", isdigit },
-	{ "graph", isgraph },
+	{ "graph", posix_isgraph },
 	{ "lower", islower },
-	{ "print", isprint },
-	{ "punct", ispunct },
+	{ "print", posix_isprint },
+	{ "punct", posix_ispunct },
 	{ "space", isspace },
 	{ "upper", isupper },
-	{ "xdigit", isxdigit }
+	{ "xdigit", posix_isxdigit }
 };
 
@@ -204,5 +204,5 @@
 {
 	const struct _char_class *class = elem;
-	return strcmp((const char *) key, class->name);
+	return posix_strcmp((const char *) key, class->name);
 }
 
@@ -217,5 +217,5 @@
 {
 	/* Search for class in the array of supported character classes. */
-	const struct _char_class *class = bsearch(cname, _char_classes,
+	const struct _char_class *class = posix_bsearch(cname, _char_classes,
 	    sizeof(_char_classes) / sizeof(struct _char_class),
 	    sizeof(struct _char_class), _class_compare);
@@ -549,5 +549,5 @@
 			end = string;
 		} else {
-			end = strchrnul(string, pathname ? '/' : '\0');
+			end = gnu_strchrnul(string, pathname ? '/' : '\0');
 		}
 
@@ -581,5 +581,5 @@
 {
 	assert(s != NULL);
-	char *result = strdup(s);
+	char *result = posix_strdup(s);
 	for (char *i = result; *i != '\0'; ++i) {
 		*i = tolower(*i);
