Pádraig Brady wrote:
I always thought the x...() variants indicate they might eXit().
Are there any other x...() variants that just output a diagnostic,
and don't exit()?
Indeed, we currently have three categories of x...() variants:
- Most of them emit diagnostics and call exit (EXIT_FAILURE)
in some conditions.
- xset_acl, xcopy_acl: emit diagnostics but do not call
exit (EXIT_FAILURE). I think that's simply because ACL-related
errors are generally OK to ignore.
- These do not emit diagnostics. The 'x' stands for "extended".
xnanosleep
xsize
xstrtod, xstrtold
xstrtol, xstrtoll, xstrtoimax, xstrtoumax
Should we leave this as is? If not, what would be a better naming convention?