Use guint64 for all IO operations.

This commit is contained in:
Vsevolod Stakhov 2012-03-29 16:08:38 +04:00
vanhempi 54e84de2f5
commit 8e09451a57
2 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa

Näytä tiedosto

@ -53,7 +53,7 @@
struct io_cbdata {
gint fd;
rspamd_aio_cb cb;
gsize len;
guint64 len;
gpointer buf;
gpointer io_buf;
gpointer ud;
@ -307,7 +307,7 @@ rspamd_aio_open (struct aio_context *ctx, const gchar *path, int flags)
* Asynchronous read of file
*/
gint
rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;
@ -377,7 +377,7 @@ blocking:
* Asynchronous write of file
*/
gint
rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset, struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud)
{
struct io_cbdata *cbdata;
gint r = -1;

Näytä tiedosto

@ -35,7 +35,7 @@ struct aio_context;
/**
* Callback for notifying
*/
typedef void (*rspamd_aio_cb) (gint fd, gint res, gsize len, gpointer data, gpointer ud);
typedef void (*rspamd_aio_cb) (gint fd, gint res, guint64 len, gpointer data, gpointer ud);
/**
* Initialize aio with specified event base
@ -50,13 +50,13 @@ gint rspamd_aio_open (struct aio_context *ctx, const gchar *path, int flags);
/**
* Asynchronous read of file
*/
gint rspamd_aio_read (gint fd, gpointer buf, gsize len, guint64 offset,
gint rspamd_aio_read (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**
* Asynchronous write of file
*/
gint rspamd_aio_write (gint fd, gpointer buf, gsize len, guint64 offset,
gint rspamd_aio_write (gint fd, gpointer buf, guint64 len, guint64 offset,
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
/**