RTEMS | psxenosys calls lio_listio() even if it's implemented. (#5125)

Sebastian Huber (@sebhub) gitlab at rtems.org
Fri Sep 6 00:33:20 UTC 2024




Sebastian Huber commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5125#note_111832


I had a brief look at the new code. It seems large parts of it don't depend on the signal support. The RTEMS_POSIX_API is actually an option to enable the POSIX signal support and the sporadic server. Everything else of the POSIX support is available by default. So, for example in rtems_aio_notify() you would only need to disable a small part of the function:
```c
  switch ( sigp->sigev_notify ) {
#ifdef RTEMS_POSIX_API
    case SIGEV_SIGNAL:
      result = sigqueue(
        getpid(),
        sigp->sigev_signo,
        sigp->sigev_value
      );
      _Assert( result == 0 );
      break;
#endif
```

For the assert you can use `_Assert_Unused_variable_equals()` to simplify the code a bit.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5125#note_111832
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/20240906/c2226d86/attachment.htm>


More information about the bugs mailing list