Index: uspace/lib/posix/include/posix/stdio.h
===================================================================
--- uspace/lib/posix/include/posix/stdio.h	(revision 7d7bc099a78595a8fbe782749779eb18f1d9053c)
+++ uspace/lib/posix/include/posix/stdio.h	(revision 777832ee6e5de48216dba17868b414e69ad4542d)
@@ -59,14 +59,4 @@
     FILE *__restrict__ stream);
 
-/* Error Messages */
-extern void perror(const char *s);
-
-/* File Positioning */
-typedef struct {
-	off64_t offset;
-} fpos_t;
-
-extern int fsetpos(FILE *stream, const fpos_t *pos);
-extern int fgetpos(FILE *__restrict__ stream, fpos_t *__restrict__ pos);
 extern int fseeko(FILE *stream, off_t offset, int whence);
 extern off_t ftello(FILE *stream);
Index: uspace/lib/posix/src/internal/common.h
===================================================================
--- uspace/lib/posix/src/internal/common.h	(revision 7d7bc099a78595a8fbe782749779eb18f1d9053c)
+++ uspace/lib/posix/src/internal/common.h	(revision 777832ee6e5de48216dba17868b414e69ad4542d)
@@ -66,5 +66,5 @@
 }
 
-extern aoff64_t posix_pos[MAX_OPEN_FILES];
+extern aoff64_t posix_pos[VFS_MAX_OPEN_FILES];
 
 #endif /* LIBPOSIX_COMMON_H_ */
Index: uspace/lib/posix/src/stdio.c
===================================================================
--- uspace/lib/posix/src/stdio.c	(revision 7d7bc099a78595a8fbe782749779eb18f1d9053c)
+++ uspace/lib/posix/src/stdio.c	(revision 777832ee6e5de48216dba17868b414e69ad4542d)
@@ -169,46 +169,4 @@
 
 /**
- * Write error messages to standard error.
- *
- * @param s Error message.
- */
-void perror(const char *s)
-{
-	if (s == NULL || s[0] == '\0') {
-		fprintf(stderr, "%s\n", strerror(errno));
-	} else {
-		fprintf(stderr, "%s: %s\n", s, strerror(errno));
-	}
-}
-
-/** Restores stream a to position previously saved with fgetpos().
- *
- * @param stream Stream to restore
- * @param pos Position to restore
- * @return Zero on success, non-zero (with errno set) on failure
- */
-int fsetpos(FILE *stream, const fpos_t *pos)
-{
-	return fseek64(stream, pos->offset, SEEK_SET);
-}
-
-/** Saves the stream's position for later use by fsetpos().
- *
- * @param stream Stream to save
- * @param pos Place to store the position
- * @return Zero on success, non-zero (with errno set) on failure
- */
-int fgetpos(FILE *restrict stream, fpos_t *restrict pos)
-{
-	off64_t ret = ftell64(stream);
-	if (ret != -1) {
-		pos->offset = ret;
-		return 0;
-	} else {
-		return -1;
-	}
-}
-
-/**
  * Reposition a file-position indicator in a stream.
  *
Index: uspace/lib/posix/src/unistd.c
===================================================================
--- uspace/lib/posix/src/unistd.c	(revision 7d7bc099a78595a8fbe782749779eb18f1d9053c)
+++ uspace/lib/posix/src/unistd.c	(revision 777832ee6e5de48216dba17868b414e69ad4542d)
@@ -51,5 +51,5 @@
 
 // FIXME: replace with a hash table
-aoff64_t posix_pos[MAX_OPEN_FILES];
+aoff64_t posix_pos[VFS_MAX_OPEN_FILES];
 
 /* Array of environment variable strings (NAME=VALUE). */
