This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ecb9e03a7f2a6d1de8327b98495711318b526a53 Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com> AuthorDate: Mon Mar 15 17:26:34 2021 -0300 fs/mmap: Update mmap documentation of possible return values --- fs/mmap/fs_mmap.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/fs/mmap/fs_mmap.c b/fs/mmap/fs_mmap.c index e7f4f40..ede0084 100644 --- a/fs/mmap/fs_mmap.c +++ b/fs/mmap/fs_mmap.c @@ -98,13 +98,15 @@ * ENOSYS * Returned if any of the unsupported mmap() features are attempted * EBADF - * 'fd' is not a valid file descriptor. + * 'fd' is not a valid file descriptor. * EINVAL - * Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or - * contained both of these values. + * Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or + * contained both of these values. * ENODEV - * The underlying filesystem of the specified file does not support - * memory mapping. + * The underlying filesystem of the specified file does not support + * memory mapping. + * ENOMEM + * Insufficient memory is available to map the file. * ****************************************************************************/