From 79004411b4abe3ca20c8f11bc877425f1fe8980b Mon Sep 17 00:00:00 2001 From: fangxinyong Date: Tue, 5 Sep 2023 22:51:09 +0800 Subject: [PATCH] aio: change aio_fildes int type if fdcheck enabled, protected fd used to aio_fildes will overflow. Change to int and also follow posix spec: https://pubs.opengroup.org/onlinepubs/7908799/xsh/aio.h.html Signed-off-by: fangxinyong --- include/aio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aio.h b/include/aio.h index f88cd292524..107e061f46d 100644 --- a/include/aio.h +++ b/include/aio.h @@ -121,7 +121,7 @@ struct aiocb FAR volatile void *aio_buf; /* Location of buffer */ off_t aio_offset; /* File offset */ size_t aio_nbytes; /* Length of transfer */ - int16_t aio_fildes; /* File descriptor (should be int) */ + int aio_fildes; /* File descriptor */ int8_t aio_reqprio; /* Request priority offset (not used, should be int) */ uint8_t aio_lio_opcode; /* Operation to be performed (should be int) */