Initial implementation of aio_fsync()
This commit is contained in:
parent
a4861c7cb7
commit
eeaae40d0c
@ -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,
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user