[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: acl, copy-file: First step towards more consistent function names
From: |
Bruno Haible |
Subject: |
Re: acl, copy-file: First step towards more consistent function names |
Date: |
Sun, 25 Aug 2024 12:48:41 +0200 |
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?
Bruno