LibBSD | dup() and fcntl(F_DUPFD) fail with ENXIO for libbsd descriptors (#101)

Sang Woo Kim (@physwkim) gitlab at rtems.org
Wed Jul 29 17:44:55 UTC 2026




Sang Woo Kim commented: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/101#note_155842


The test and the fix are up as !153: commit 1 fixes dup()/F_DUPFD for libbsd descriptors, and the new `dup01` testsuite case captures the EPICS use case — it fails with ENXIO on the unfixed branch.

On the default case: `fcntl_h` is a post-hook that cpukit's `vfcntl()` calls after its own switch on every command that succeeded there, so an error in the default arm would fail F_DUPFD, F_GETFD, F_GETFL and F_DUP2FD on every libbsd descriptor. The commands libbsd cannot support are already rejected before the hook runs.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/work_items/101#note_155842
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-06we4j5tcgw5zuylplomngcyp-k/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260729/44cac55f/attachment-0001.htm>


More information about the bugs mailing list