---
name: "aio_write64"
section: "3"
platform: "linux"
package: "libaio-dev"
version: "0.3.107-7"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/aio_write64"
---

# aio\_write64(3)

Initiate an asynchronous write operation

## NAME

aio\_write64 - Initiate an asynchronous write operation

## SYNOPSYS

```
#include <errno.h>

#include <aio.h>

int aio_write64(struct aiocb *aiocbp);
```

## DESCRIPTION

This function is similar to the  **aio\_write** function.  The only difference is that on  *32 bit* machines the file descriptor should be opened in the large file mode.  Internally  **aio\_write64** uses functionality equivalent to  **lseek64** to position the file descriptor correctly for the writing, as opposed to  **lseek** functionality used in  **aio\_write**.

When the sources are compiled with  *\_FILE\_OFFSET\_BITS == 64* , this function is available under the name  **aio\_write** and so transparently replaces the interface for small files on 32 bit machines.

## RETURN VALUES

See [**aio\_write**(3)](/aio_write/3.md).

## ERRORS

See [**aio\_write**(3)](/aio_write/3.md).

## SEE ALSO

[**aio**(3)](/aio/3.md), [**aio\_cancel**(3)](/aio_cancel/3.md), [**aio\_cancel64**(3)](/aio_cancel64/3.md), [**aio\_error**(3)](/aio_error/3.md), [**aio\_error64**(3)](/aio_error64/3.md), [**aio\_fsync**(3)](/aio_fsync/3.md), [**aio\_fsync64**(3)](/aio_fsync64/3.md), [**aio\_init**(3)](/aio_init/3.md), [**aio\_read**(3)](/aio_read/3.md), [**aio\_read64**(3)](/aio_read64/3.md), [**aio\_return**(3)](/aio_return/3.md), [**aio\_return64**(3)](/aio_return64/3.md), [**aio\_suspend**(3)](/aio_suspend/3.md), [**aio\_suspend64**(3)](/aio_suspend64/3.md), [**aio\_write**(3)](/aio_write/3.md), [**errno**(3)](/errno/3.md).
