summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2016-06-27 17:17:56 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-10-05 12:57:35 +0000
commit601b6547f2c53651b88a0560a41d702db06c0d1c (patch)
tree0dff616cdea5e426cc1b71135cb42d6859ca7dcb /libglusterfs
parentb887915bd30ac98bbc64c6dcac73605cd96855ca (diff)
storage/posix: Adding implementation for posix_do_futimes
Adding the implementation for the posix_do_futimes function which is not complete in the current implementation and giving the ENOSYS error. Change-Id: I9cfc95a7ea293b0a2df8efd4ac80d0120b3120e4 BUG: 1350406 Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/syscall.c7
-rw-r--r--libglusterfs/src/syscall.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/libglusterfs/src/syscall.c b/libglusterfs/src/syscall.c
index 3a3d5318baa..bdbbbf2fc0e 100644
--- a/libglusterfs/src/syscall.c
+++ b/libglusterfs/src/syscall.c
@@ -283,6 +283,13 @@ sys_utimensat (int dirfd, const char *filename, const struct timespec times[2],
int
+sys_futimes (int fd, const struct timeval times[2])
+{
+ return futimes (fd, times);
+}
+
+
+int
sys_creat (const char *pathname, mode_t mode)
{
return sys_open(pathname, O_CREAT | O_TRUNC | O_WRONLY, mode);
diff --git a/libglusterfs/src/syscall.h b/libglusterfs/src/syscall.h
index 0cb61b66d36..032ff70ffb6 100644
--- a/libglusterfs/src/syscall.h
+++ b/libglusterfs/src/syscall.h
@@ -137,6 +137,9 @@ sys_utimensat (int dirfd, const char *filename, const struct timespec times[2],
#endif
int
+sys_futimes (int fd, const struct timeval times[2]);
+
+int
sys_creat (const char *pathname, mode_t mode);
ssize_t