Index: uspace/lib/libc/generic/io/io.c
===================================================================
--- uspace/lib/libc/generic/io/io.c	(revision b8e57e8c7c4afd0723c6e1861b2d346ebf3395b4)
+++ uspace/lib/libc/generic/io/io.c	(revision 8e13bfa2344d2b8510e837a480130cd89f361759)
@@ -193,4 +193,24 @@
 }
 
+FILE *fdopen(int fd, const char *mode)
+{
+	/* Open file. */
+	FILE *stream = malloc(sizeof(FILE));
+	if (stream == NULL) {
+		errno = ENOMEM;
+		return NULL;
+	}
+	
+	stream->fd = fd;
+	stream->error = false;
+	stream->eof = false;
+	stream->klog = false;
+	stream->phone = -1;
+	
+	list_append(&stream->link, &files);
+	
+	return stream;
+}
+
 FILE *fopen_node(fdi_node_t *node, const char *mode)
 {
@@ -379,4 +399,9 @@
 }
 
+void rewind(FILE *stream)
+{
+	(void) fseek(stream, 0, SEEK_SET);
+}
+
 int fflush(FILE *stream)
 {
