xiaoxiang781216 commented on code in PR #21902: URL: https://github.com/apache/nuttx/pull/21902#discussion_r4635115326
########## include/nuttx/fs/fs.h: ########## @@ -541,6 +565,31 @@ struct fdlist struct fd fl_prefds[CONFIG_NFILE_DESCRIPTORS_PER_BLOCK]; }; +/**************************************************************************** + * Inline Functions + ****************************************************************************/ + +/* The _NX_FILE interfaces of the user space: a result < 0 becomes the + * negated errno value. + */ + +#if !defined(CONFIG_BUILD_FLAT) && !defined(__KERNEL__) +static inline int _nx_file_errint(int ret) Review Comment: sorry, look like the original implementation is better. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
