]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/hostfs/hostfs_user.c
try to get rid of races in hostfs open()
[mv-sheeva.git] / fs / hostfs / hostfs_user.c
index 91ebfcefa409a50699cfb94d50596aa6bb0b4160..6777aa06ce2cc894de1885f65c4d145e9bc8f0a8 100644 (file)
@@ -160,6 +160,11 @@ int fsync_file(int fd, int datasync)
        return 0;
 }
 
+int replace_file(int oldfd, int fd)
+{
+       return dup2(oldfd, fd);
+}
+
 void close_file(void *stream)
 {
        close(*((int *) stream));