mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 23:56:50 +02:00
Use guint64 for all IO operations.
This commit is contained in:
parent
54e84de2f5
commit
8e09451a57
@ -53,7 +53,7 @@
|
|||||||
struct io_cbdata {
|
struct io_cbdata {
|
||||||
gint fd;
|
gint fd;
|
||||||
rspamd_aio_cb cb;
|
rspamd_aio_cb cb;
|
||||||
gsize len;
|
guint64 len;
|
||||||
gpointer buf;
|
gpointer buf;
|
||||||
gpointer io_buf;
|
gpointer io_buf;
|
||||||
gpointer ud;
|
gpointer ud;
|
||||||
@ -307,7 +307,7 @@ rspamd_aio_open (struct aio_context *ctx, const gchar *path, int flags)
|
|||||||
* Asynchronous read of file
|
* Asynchronous read of file
|
||||||
*/
|
*/
|
||||||
gint
|
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;
|
struct io_cbdata *cbdata;
|
||||||
gint r = -1;
|
gint r = -1;
|
||||||
@ -377,7 +377,7 @@ blocking:
|
|||||||
* Asynchronous write of file
|
* Asynchronous write of file
|
||||||
*/
|
*/
|
||||||
gint
|
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;
|
struct io_cbdata *cbdata;
|
||||||
gint r = -1;
|
gint r = -1;
|
||||||
|
@ -35,7 +35,7 @@ struct aio_context;
|
|||||||
/**
|
/**
|
||||||
* Callback for notifying
|
* 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
|
* 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
|
* 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);
|
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Asynchronous write of file
|
* 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);
|
struct aio_context *ctx, rspamd_aio_cb cb, gpointer ud);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user