Basic fixes for a clean simulator build with last big fs changes

This commit is contained in:
Gregory Nutt
2014-10-06 11:02:58 -06:00
parent c9e2dd13a0
commit cd0c493657
4 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ ifeq ($(CONFIG_FS_AIO),y)
# Add the asynchronous I/O C files to the build
CSRCS += aio_cancel.c aio_fsync.c aio_initialize.c aio_read.c aio_signal.c
CSRCS += aio_write.c
CSRCS += aio_cancel.c aioc_contain.c aio_fsync.c aio_initialize.c aio_read.c
CSRCS += aio_signal.c aio_write.c
# Add the asynchronous I/O directory to the build
+2 -1
View File
@@ -43,6 +43,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <string.h>
#include <aio.h>
#include <queue.h>
@@ -153,7 +154,7 @@ void aio_unlock(void);
*
****************************************************************************/
FAR struct aio_container_s *aioc_lock(void);
FAR struct aio_container_s *aioc_alloc(void);
/****************************************************************************
* Name: aioc_free
Executable → Regular
+1 -1
View File
@@ -180,7 +180,7 @@ void aio_unlock(void)
*
****************************************************************************/
FAR struct aio_container_s *aioc_lock(void)
FAR struct aio_container_s *aioc_alloc(void)
{
FAR struct aio_container_s *aioc;
+3 -3
View File
@@ -1,5 +1,5 @@
/****************************************************************************
* libc/aio/aio_contain.c
* libc/aio/aioc_contain.c
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -41,7 +41,7 @@
#include <sched.h>
#include <nuttx/fs.h>
#include <nuttx/fs/fs.h>
#include "aio/aio.h"
@@ -157,7 +157,7 @@ FAR struct aiocb *aioc_decant(FAR struct aio_container_s *aioc)
/* De-cant the AIO control block and return the container to the free list */
aiocbp = aioc->acioc_aiocbp;
aiocbp = aioc->aioc_aiocbp;
aioc_free(aioc);
return aiocbp;
}