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:39:31 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_109500

 > +#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);

Print removed.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/117#note_109500
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/7447daf4/attachment-0001.htm>


More information about the bugs mailing list