Re: stdlib: Relax definition of EXIT_FAILURE.

2024-06-22 Thread Collin Funk
Hi Bruno, Bruno Haible wrote: > In this case, if EXIT_FAILURE were 2 or 3 instead of 1 on some > platforms, the *documented* exit codes of the 'diff' or 'grep' > commands or other utilities would not hold any more. > > If we ever encounter a platform where EXIT_FAILURE was like this, > we want to

Re: stdlib: Relax definition of EXIT_FAILURE.

2024-06-22 Thread Bruno Haible
Hi Collin, > Can we relax this definition to allow for any POSIX 2024 compatible > value? (1-125) We should *not* do that. Our unit tests not only serve to check POSIX or GNU behaviour of constants, header files, and functions. They also serve to check assumptions that are so widely used, that t

stdlib: Relax definition of EXIT_FAILURE.

2024-06-22 Thread Collin Funk
t cause strange bugs like the Tandem/NSK case. Collin [1] https://www.austingroupbugs.net/view.php?id=1229&nbn=5From e0a0660690e5dd15acb6d98e5e1da1e3909e0221 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 22 Jun 2024 17:29:48 -0700 Subject: [PATCH] stdlib: Relax definition of E