* lib/ftello.c (ftello): Include stdckdint.h instead of intprops.h.
Prefer ckd_add to INT_ADD_OK.
* modules/ftello (Depends-on): Depend on stdckdint instead of intprops.
+2024-05-08 Collin Funk <collin.funk1@gmail.com>
+
+ ftello: Prefer stdckdint to intprops.
+ * lib/ftello.c (ftello): Include stdckdint.h instead of intprops.h.
+ Prefer ckd_add to INT_ADD_OK.
+ * modules/ftello (Depends-on): Depend on stdckdint instead of intprops.
+
2024-05-08 Bruno Haible <bruno@clisp.org>
sigsegv, c-stack tests: Avoid test failures with ASAN.
#include <stdio.h>
#include <errno.h>
-#include "intprops.h"
+#include <stdckdint.h>
/* Get lseek. */
#include <unistd.h>
/* Compute pos + buffered, with overflow check. */
off_t sum;
- if (! INT_ADD_OK (pos, buffered, &sum))
+ if (ckd_add (&sum, pos, buffered))
{
errno = EOVERFLOW;
return -1;
largefile
sys_types
lseek [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
-intprops [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
+stdckdint [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1]
# Just to guarantee consistency between ftell() and ftello().
ftell