This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit f35993c6386c26a1beacaff89492fff564984eda
Author: Xiang Xiao <[email protected]>
AuthorDate: Fri Sep 11 02:15:19 2026 +0800

    fs/aio: move lio_listio() to fs/aio
    
    lio_listio() submits I/O through the internal aio_read/aio_write
    helpers and is only built when CONFIG_FS_AIO is enabled.  Keeping it in
    libs/libc splits one subsystem across two directories and forces fs/aio
    to export internal interfaces to the libc build.
    
    Move the file (and its two build system entries) from libs/libc/aio to
    fs/aio so that the whole AIO implementation lives in one place.
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 fs/aio/CMakeLists.txt              | 3 ++-
 fs/aio/Make.defs                   | 2 +-
 {libs/libc => fs}/aio/lio_listio.c | 0
 libs/libc/aio/CMakeLists.txt       | 2 +-
 libs/libc/aio/Make.defs            | 2 +-
 5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fs/aio/CMakeLists.txt b/fs/aio/CMakeLists.txt
index 835a379438d..1ac0d3b484f 100644
--- a/fs/aio/CMakeLists.txt
+++ b/fs/aio/CMakeLists.txt
@@ -31,6 +31,7 @@ if(CONFIG_FS_AIO)
             aio_queue.c
             aio_read.c
             aio_signal.c
-            aio_write.c)
+            aio_write.c
+            lio_listio.c)
 
 endif()
diff --git a/fs/aio/Make.defs b/fs/aio/Make.defs
index 48862477e49..aae95a5a76f 100644
--- a/fs/aio/Make.defs
+++ b/fs/aio/Make.defs
@@ -25,7 +25,7 @@ ifeq ($(CONFIG_FS_AIO),y)
 # Add the asynchronous I/O C files to the build
 
 CSRCS += aio_cancel.c aioc_contain.c aio_fsync.c aio_initialize.c
-CSRCS += aio_queue.c aio_read.c aio_signal.c aio_write.c
+CSRCS += aio_queue.c aio_read.c aio_signal.c aio_write.c lio_listio.c
 
 # Add the asynchronous I/O directory to the build
 
diff --git a/libs/libc/aio/lio_listio.c b/fs/aio/lio_listio.c
similarity index 100%
rename from libs/libc/aio/lio_listio.c
rename to fs/aio/lio_listio.c
diff --git a/libs/libc/aio/CMakeLists.txt b/libs/libc/aio/CMakeLists.txt
index dd1ce6fc06a..29ab724ac19 100644
--- a/libs/libc/aio/CMakeLists.txt
+++ b/libs/libc/aio/CMakeLists.txt
@@ -21,5 +21,5 @@
 # 
##############################################################################
 
 if(CONFIG_FS_AIO)
-  target_sources(c PRIVATE aio_error.c aio_return.c aio_suspend.c lio_listio.c)
+  target_sources(c PRIVATE aio_error.c aio_return.c aio_suspend.c)
 endif()
diff --git a/libs/libc/aio/Make.defs b/libs/libc/aio/Make.defs
index de770cf04ab..01714ed47a9 100644
--- a/libs/libc/aio/Make.defs
+++ b/libs/libc/aio/Make.defs
@@ -24,7 +24,7 @@ ifeq ($(CONFIG_FS_AIO),y)
 
 # Add the asynchronous I/O C files to the build
 
-CSRCS += aio_error.c aio_return.c aio_suspend.c lio_listio.c
+CSRCS += aio_error.c aio_return.c aio_suspend.c
 
 # Add the asynchronous I/O directory to the build
 

Reply via email to