On 11/12/25 1:07 PM, Andrew Oates wrote:
Can you give me an example of such a system?
The custom kernel I'm building and getting bash to compile on :D That system
has HAVE_GETTIMEOFDAY, but not the other two.
Sure.
For what it's worth, I think it would be entirely defensible for bash to say:
we don't support such systems.
Well, bash uses POSIX as a baseline, but there's code in there going back a
ways to support BSD-style systems (gettimeofday/getrusage) and System V-
style systems (times). There hasn't really ever been a system like yours.
However the code currently _attempts_ to support them, but doesn't do so
correctly --- this patch fixes that, though I have only tested it on a system
that has HAVE_GETTIMEOFDAY, and one with all three, not the other permutations.
Oh, I already applied it. I was asking about practical impact -- whether
you had run across a system I hadn't heard about (yes, as it turns out).
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/