repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove all [s]size_t / off_t and replace with [u]int64_t making libnfs 64-bit pure
[deb_libnfs.git]
/
lib
/
libnfs-sync.c
diff --git
a/lib/libnfs-sync.c
b/lib/libnfs-sync.c
index 701cd0678a747716d514227a590f8d786ca2975a..09e197ad312fcf3a5c6ee77a8ad9fcde72aff454 100644
(file)
--- a/
lib/libnfs-sync.c
+++ b/
lib/libnfs-sync.c
@@
-56,7
+56,7
@@
struct sync_cb_data {
int is_finished;
int status;
struct sync_cb_data {
int is_finished;
int status;
-
off
_t offset;
+
uint64
_t offset;
void *return_data;
int return_int;
};
void *return_data;
int return_int;
};
@@
-248,7
+248,7
@@
static void pread_cb(int status, struct nfs_context *nfs, void *data, void *priv
memcpy(buffer, (char *)data, status);
}
memcpy(buffer, (char *)data, status);
}
-int nfs_pread(struct nfs_context *nfs, struct nfsfh *nfsfh,
off_t offset, size
_t count, char *buffer)
+int nfs_pread(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64_t offset, uint64
_t count, char *buffer)
{
struct sync_cb_data cb_data;
{
struct sync_cb_data cb_data;
@@
-268,7
+268,7
@@
int nfs_pread(struct nfs_context *nfs, struct nfsfh *nfsfh, off_t offset, size_t
/*
* read()
*/
/*
* read()
*/
-int nfs_read(struct nfs_context *nfs, struct nfsfh *nfsfh,
size
_t count, char *buffer)
+int nfs_read(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64
_t count, char *buffer)
{
return nfs_pread(nfs, nfsfh, nfs_get_current_offset(nfsfh), count, buffer);
}
{
return nfs_pread(nfs, nfsfh, nfs_get_current_offset(nfsfh), count, buffer);
}
@@
-343,7
+343,7
@@
static void pwrite_cb(int status, struct nfs_context *nfs, void *data, void *pri
}
}
}
}
-int nfs_pwrite(struct nfs_context *nfs, struct nfsfh *nfsfh,
off_t offset, size
_t count, char *buf)
+int nfs_pwrite(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64_t offset, uint64
_t count, char *buf)
{
struct sync_cb_data cb_data;
{
struct sync_cb_data cb_data;
@@
-362,7
+362,7
@@
int nfs_pwrite(struct nfs_context *nfs, struct nfsfh *nfsfh, off_t offset, size_
/*
* write()
*/
/*
* write()
*/
-int nfs_write(struct nfs_context *nfs, struct nfsfh *nfsfh,
size
_t count, char *buf)
+int nfs_write(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64
_t count, char *buf)
{
return nfs_pwrite(nfs, nfsfh, nfs_get_current_offset(nfsfh), count, buf);
}
{
return nfs_pwrite(nfs, nfsfh, nfs_get_current_offset(nfsfh), count, buf);
}
@@
-417,7
+417,7
@@
static void ftruncate_cb(int status, struct nfs_context *nfs, void *data, void *
}
}
}
}
-int nfs_ftruncate(struct nfs_context *nfs, struct nfsfh *nfsfh,
off
_t length)
+int nfs_ftruncate(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64
_t length)
{
struct sync_cb_data cb_data;
{
struct sync_cb_data cb_data;
@@
-450,7
+450,7
@@
static void truncate_cb(int status, struct nfs_context *nfs, void *data, void *p
}
}
}
}
-int nfs_truncate(struct nfs_context *nfs, const char *path,
off
_t length)
+int nfs_truncate(struct nfs_context *nfs, const char *path,
uint64
_t length)
{
struct sync_cb_data cb_data;
{
struct sync_cb_data cb_data;
@@
-698,11
+698,11
@@
static void lseek_cb(int status, struct nfs_context *nfs, void *data, void *priv
}
if (cb_data->return_data != NULL) {
}
if (cb_data->return_data != NULL) {
- memcpy(cb_data->return_data, data, sizeof(
off
_t));
+ memcpy(cb_data->return_data, data, sizeof(
uint64
_t));
}
}
}
}
-int nfs_lseek(struct nfs_context *nfs, struct nfsfh *nfsfh,
off_t offset, int whence, off
_t *current_offset)
+int nfs_lseek(struct nfs_context *nfs, struct nfsfh *nfsfh,
uint64_t offset, int whence, uint64
_t *current_offset)
{
struct sync_cb_data cb_data;
{
struct sync_cb_data cb_data;