Initial implementation of aio_fsync()

This commit is contained in:
Gregory Nutt 2014-10-05 08:53:13 -06:00
parent a4861c7cb7
commit eeaae40d0c
8 changed files with 12 additions and 6 deletions

View file

@ -164,7 +164,7 @@ extern "C"
int aio_cancel(int fildes, FAR struct aiocb *aiocbp);
int aio_error(FAR const struct aiocb *aiocbp);
int aio_fsync(int, FAR struct aiocb *aiocbp);
int aio_fsync(int op, FAR struct aiocb *aiocbp);
int aio_read(FAR struct aiocb *aiocbp);
ssize_t aio_return(FAR struct aiocb *aiocbp);
int aio_suspend(FAR const struct aiocb *const list[], int nent,

View file

@ -37,8 +37,8 @@ ifeq ($(CONFIG_LIBC_AIO),y)
# Add the asynchronous I/O C files to the build
CSRCS += aio_cancel.c aio_error.c aio_read.c aio_return.c aio_signal.c
CSRCS += aio_suspend.c aio_write.c
CSRCS += aio_cancel.c aio_error.c aio_fsync.c aio_read.c aio_return.c
CSRCS += aio_signal.c aio_suspend.c aio_write.c
ifneq ($(CONFIG_PTHREAD_DISABLE),y)
CSRCS += lio_listio.c

View file

@ -43,6 +43,8 @@
#include <assert.h>
#include <errno.h>
#include <nuttx/wqueue.h>
#ifndef CONFIG_LIBC_AIO
/****************************************************************************

View file

@ -71,7 +71,7 @@
****************************************************************************/
/****************************************************************************
* Name: aio_read
* Name: aio_error
*
* Description:
* The aio_error() function returns the error status associated with the

View file

@ -45,6 +45,8 @@
#include <assert.h>
#include <errno.h>
#include <nuttx/wqueue.h>
#include "lib_internal.h"
#include "aio/aio.h"

View file

@ -71,7 +71,7 @@
****************************************************************************/
/****************************************************************************
* Name: aio_read
* Name: aio_return
*
* Description:
* The aio_return() function returns the return status associated with

View file

@ -72,7 +72,7 @@
****************************************************************************/
/****************************************************************************
* Name: aio_read
* Name: aio_suspend
*
* Description:
* The aio_suspend() function suspends the calling thread until at least

View file

@ -45,6 +45,8 @@
#include <assert.h>
#include <errno.h>
#include <nuttx/wqueue.h>
#include "lib_internal.h"
#include "aio/aio.h"