Open
Description
We have a couple PRs proposing something that makes platforms more consistent, but isn't exactly true to the C API. Two examples:
stat
has a fieldst_dev
on almost all platforms, but on Hurd it isst_fsid
. hurd: Fix st_dev name #3785 proposes renaming this field tost_dev
.- Event APIs in FreeBSD are part of the default C API in Linux, but in a separate package for BSD. FreeBSD: add evdev structures #3756 proposes adding these anyway.
The reasoning for these suggestions is that it is pretty unlikely for library authors to special case Hurd or BSD, meaning builds will just break on these platforms. By making something consistent with Linux, it is more likely that things work out of the box without library authors needing to test these less common platforms.
I think an argument could be made in either direction, so I am bringing this up as a more general policy question.