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 0e31a2bc6d1fecb2d1fd60c2eb47eed52130f540)
@@ -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)
 {
