* 0 : The operation was successfull.
* -errno : The command failed.
*/
+#ifdef WIN32
+EXTERN int nfs_stat(struct nfs_context *nfs, const char *path, struct __stat64 *st);
+#else
EXTERN int nfs_stat(struct nfs_context *nfs, const char *path, struct stat *st);
-
+#endif
/*
* FSTAT()
* 0 : The operation was successfull.
* -errno : The command failed.
*/
+#ifdef WIN32
+EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct __stat64 *st);
+#else
EXTERN int nfs_fstat(struct nfs_context *nfs, struct nfsfh *nfsfh, struct stat *st);
+#endif
char *name;
uint64_t inode;
- /* some extra fields we get for free through the READDIRPLUS3 call. You need libnfs-raw-nfs.h for these */
+ /* Some extra fields we get for free through the READDIRPLUS3 call.
+ You need libnfs-raw-nfs.h for type/mode constants */
uint32_t type; /* NF3REG, NF3DIR, NF3BLK, ... */
uint32_t mode;
uint64_t size;
struct timeval atime;
struct timeval mtime;
struct timeval ctime;
+ uint32_t uid;
+ uint32_t gid;
};
/*
* nfs_readdir() never blocks, so no special sync/async versions are available