From e25cf30a74941b4dc76b6d26b602afec2c1e2c6e Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 2 May 2013 20:01:18 -0700 Subject: gfapi: add new API glfs_dup() to copy a file descriptor Duplicate a glfs_fd file descriptor. Inherit the internal fd_t with a reference. Change-Id: Ib30e9a46b608b9f78202957f4dab6ba6265a9ec0 BUG: 953694 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/5170 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- api/src/glfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/glfs.h') diff --git a/api/src/glfs.h b/api/src/glfs.h index aeabfdf0b4f..f472ca4ea1e 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -461,6 +461,7 @@ char *glfs_realpath (glfs_t *fs, const char *path, char *resolved_path); */ int glfs_posix_lock (glfs_fd_t *fd, int cmd, struct flock *flock); +glfs_fd_t *glfs_dup (glfs_fd_t *fd); __END_DECLS -- cgit