Index: uspace/lib/posix/source/stdio.c
===================================================================
--- uspace/lib/posix/source/stdio.c	(revision 8e3498b351ae109f7ad16592a1f108e3bd44c829)
+++ uspace/lib/posix/source/stdio.c	(revision 132ab5d1e75253f9bae910b2748a4c13efe7e71f)
@@ -41,5 +41,7 @@
 
 #include "posix/assert.h"
-#include "posix/errno.h"
+
+#include <errno.h>
+
 #include "posix/stdlib.h"
 #include "posix/string.h"
@@ -313,5 +315,5 @@
 int posix_fflush(FILE *stream)
 {
-	return negerrno(fflush, stream);
+	return fflush(stream);
 }
 
@@ -344,7 +346,6 @@
 	const int fildes = *(int *) fd;
 	size_t wr;
-	int rc = vfs_write(fildes, &posix_pos[fildes], str, size, &wr);
-	if (rc != EOK)
-		return rc;
+	if (failed(vfs_write(fildes, &posix_pos[fildes], str, size, &wr)))
+		return -1;
 	return str_nlength(str, wr);
 }
@@ -576,5 +577,5 @@
 int posix_remove(const char *path)
 {
-	if (rcerrno(vfs_unlink_path, path) != EOK)
+	if (failed(vfs_unlink_path(path)))
 		return -1;
 	else
@@ -591,6 +592,5 @@
 int posix_rename(const char *old, const char *new)
 {
-	int rc = rcerrno(vfs_rename_path, old, new);
-	if (rc != EOK)
+	if (failed(vfs_rename_path(old, new)))
 		return -1;
 	else
@@ -664,5 +664,5 @@
 		
 		int orig_errno = errno;
-		errno = 0;
+		errno = EOK;
 		/* Check if the file exists. */
 		if (posix_access(result, F_OK) == -1) {
