]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fstat
authorSean Hefty <sean.hefty@intel.com>
Tue, 14 Aug 2012 23:21:52 +0000 (16:21 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 14 Aug 2012 23:21:52 +0000 (16:21 -0700)
src/preload.c

index f0c4174100f1bcc333bb87bdaef2c32adc76c987..1dc7082e81e3e7fba0060cbca8e0c4cefa711690 100644 (file)
@@ -1044,14 +1044,20 @@ ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
 
 int __fxstat64(int ver, int socket, struct stat64 *buf)
 {
-       int fd, ret;
+//     int fd, ret;
+
+//     if (fd_get(socket, &fd) == fd_rsocket) {
+//             ret = real.fxstat64(ver, socket, buf);
+//             if (!ret)
+//                     buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
+//     } else {
+//             ret = real.fxstat64(ver, fd, buf);
+//     }
+//     return ret;
+       return real.fxstat64(ver, socket, buf);
+}
 
-       if (fd_get(socket, &fd) == fd_rsocket) {
-               ret = real.fxstat64(ver, socket, buf);
-               if (!ret)
-                       buf->st_mode = (buf->st_mode & ~S_IFMT) | __S_IFSOCK;
-       } else {
-               ret = real.fxstat64(ver, fd, buf);
-       }
-       return ret;
+int __fxstat(int ver, int socket, struct stat *buf)
+{
+       return real.fxstat(ver, socket, buf);
 }