summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.h
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-11-18 01:14:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-18 21:13:55 -0800
commit3940cf2fc26ed0d2417caef87ff25d17ec8d3bb4 (patch)
tree0a44e53f936b43895259713656d388eb99eacf51 /libglusterfsclient/src/libglusterfsclient.h
parent7894bef2174945af06dceb506d501b8e789342fd (diff)
libglusterfsclient: implement glusterfs_getcwd.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 369 (Samba does not work with booster.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 74575fa61a7..1684381c9bb 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -1325,6 +1325,20 @@ glusterfs_chdir (const char *path);
int
glusterfs_fchdir (glusterfs_file_t fd);
+/* copies the current working directory into @buf if it is big enough
+ *
+ * @buf: buffer to copy into it. If @buf is NULL, a buffer will be allocated.
+ * The size of the buffer will be @size if it is not zero, otherwise the
+ * size will be big enough to hold the current working directory.
+ * @size: size of the buffer.
+ *
+ * Returns the pointer to buffer holding current working directory on success
+ * and NULL on failure.
+ */
+
+char *
+glusterfs_getcwd (char *buf, size_t size);
+
/* FIXME: review the need for these apis */
/* added for log related initialization in booster fork implementation */
void
/tests/basic/fops-sanity.t?h=v3.11dev&id=de2158296f3afd253e10386acb2e2bd471e2b3ca'>logstatsplain d---------fuse73logstatsplain d---------geo-replication43logstatsplain d---------gfapi1359logstatsplain -rw-r--r--gfid-access.t2808logstatsplain d---------glusterd225logstatsplain -rw-r--r--inode-quota-enforcing.t3316logstatsplain d---------jbr73logstatsplain -rw-r--r--logchecks-messages.h4193logstatsplain -rw-r--r--logchecks.c7654logstatsplain d---------md-cache82logstatsplain -rwxr-xr-xmeta.t991logstatsplain -rw-r--r--mgmt_v3-locks.t2994logstatsplain -rwxr-xr-xmount-nfs-auth.t9798logstatsplain -rw-r--r--mount-options.disabled6037logstatsplain -rwxr-xr-xmount.t1985logstatsplain -rw-r--r--mpx-compat.t1440logstatsplain -rw-r--r--multiplex.t2390logstatsplain -rw-r--r--netgroup_parsing.t1635logstatsplain -rwxr-xr-xnl-cache.t1675logstatsplain -rw-r--r--nufa.t964logstatsplain -rwxr-xr-xop_errnos.t1144logstatsplain -rw-r--r--peer-parsing.t1325logstatsplain -rw-r--r--pgfid-feat.t759logstatsplain d---------posix43logstatsplain -rwxr-xr-xposixonly.t655logstatsplain -rw-r--r--pump.t1031logstatsplain -rwxr-xr-xquota-ancestry-building.t2067logstatsplain -rwxr-xr-xquota-anon-fd-nfs.t3713logstats