summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-05-11 18:23:14 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-18 19:12:49 +0530
commite1ae573f73d69fe1a244ed1493793961dd4cf811 (patch)
tree3a378fd3585ef663ccf54ff07dd73ae0f85688f9 /libglusterfsclient/src/libglusterfsclient.h
parent35bf3f058473b61605fd28cd9cbee7726adedf9d (diff)
libglusterfsclient: Add telldir API
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 70c6669dc..a2c9a0fa5 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -1217,6 +1217,19 @@ glusterfs_rewinddir (glusterfs_dir_t dirfd);
*/
void
glusterfs_seekdir (glusterfs_dir_t dirfd, off_t offset);
+
+
+
+/* Return the current offset in a directory stream.
+ *
+ * @dirfd : Directory handle returned by glusterfs_open on
+ * glusterfs_opendir.
+ *
+ * Returns the offset in the directory or -1 on error with errno set
+ * appropriately.
+ */
+off_t
+glusterfs_telldir (glusterfs_dir_t dirfd);
/* FIXME: review the need for these apis */
/* added for log related initialization in booster fork implementation */
void