diff options
Diffstat (limited to 'fs/hostfs/hostfs_user.c')
| -rw-r--r-- | fs/hostfs/hostfs_user.c | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c index 91ebfcefa40..6777aa06ce2 100644 --- a/fs/hostfs/hostfs_user.c +++ b/fs/hostfs/hostfs_user.c @@ -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)); | 
