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_cancel(int fildes, FAR struct aiocb *aiocbp);
int aio_error(FAR const 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); int aio_read(FAR struct aiocb *aiocbp);
ssize_t aio_return(FAR struct aiocb *aiocbp); ssize_t aio_return(FAR struct aiocb *aiocbp);
int aio_suspend(FAR const struct aiocb *const list[], int nent, 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 # 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_cancel.c aio_error.c aio_fsync.c aio_read.c aio_return.c
CSRCS += aio_suspend.c aio_write.c CSRCS += aio_signal.c aio_suspend.c aio_write.c
ifneq ($(CONFIG_PTHREAD_DISABLE),y) ifneq ($(CONFIG_PTHREAD_DISABLE),y)
CSRCS += lio_listio.c CSRCS += lio_listio.c

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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