LibBSD | rtemsbsd/libio: Give a duplicated descriptor an identity of its own (!153)

Sang Woo Kim (@physwkim) gitlab at rtems.org
Thu Jul 30 12:14:33 UTC 2026




Sang Woo Kim commented on a discussion on freebsd/sys/kern/sys_generic.c: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/153#note_155914

 > +		return (EBADF);
 > +	if (iop != NULL) {
 > +		/* not libbsd-backed: it has no struct file */
 > +		*fpp = NULL;
 > +		return (0);
 > +	}
 > +	if (only_user)
 > +		error = fget_only_user(fdp, bsd_fd, &cap_event_rights, fpp);
 > +	else
 > +		error = fget_unlocked(td, bsd_fd, &cap_event_rights, fpp);
 > +	if (__predict_false(error != 0))
 > +		rtems_bsd_libio_iop_drop(libio_fd);
 > +	return (error);
 > +}
 > +#endif /* __rtems__ */
 > +

Fixed — the blank line is inside the guard now.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/153#note_155914
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-8dptjb91yf99s8hjqc7qzmtum-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/20260730/951172b9/attachment-0001.htm>


More information about the bugs mailing list