You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/09/07 21:59:37 UTC
[nuttx] branch master updated: aio: change aio_fildes int type
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 79004411b4 aio: change aio_fildes int type
79004411b4 is described below
commit 79004411b4abe3ca20c8f11bc877425f1fe8980b
Author: fangxinyong <fa...@xiaomi.com>
AuthorDate: Tue Sep 5 22:51:09 2023 +0800
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 <fa...@xiaomi.com>
---
include/aio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/aio.h b/include/aio.h
index f88cd29252..107e061f46 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) */