RTEMS | libcsupport/libio: Add rtems_libio_iop_descriptors_open to return open descriptors (!117)
Chris Johns (@chris)
gitlab at rtems.org
Thu Jul 18 02:11:54 UTC 2024
Chris Johns commented on a discussion on testsuites/libtests/libiofdopen/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/117#note_109495
> +#define NUMOF(_a) (sizeof(_a) / sizeof(_a[0]))
> +
> +static void Init(rtems_task_argument arg)
> +{
> + int fd[10];
> + size_t i;
> + size_t base_count;
> +
> + TEST_BEGIN();
> +
> + for (i = 0; i < NUMOF(fd); i++) {
> + fd[i] = -1;
> + }
> +
> + base_count = rtems_libio_iop_descriptors_open();
> + printf("default open count = %zu\n", base_count);
I was not aware of this. It can be removed.
BSPs can have different numbers of `fd` open.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/117#note_109495
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240718/cdc690ee/attachment-0001.htm>
More information about the bugs
mailing list