On Feb 01 2026, Collin Funk wrote:

> +# Check that sync was called before statfs or statvfs.
> +check_sync ()
> +{
> +  seen_sync=0
> +  while IFS= read line; do
> +    case "$line" in
> +      sync\(*) seen_sync=1 ;;
> +      statfs\(*|fstatfs\(*)
> +        if test "$seen_sync" -eq 1; then
> +          return 0
> +        else
> +          return 1
> +        fi
> +        ;;
> +    esac
> +  done < "$1"
> +  # Fail if we don't see statfs or fstatfs.
> +  return 1
> +}

That is not exhaustive, and always fails on i586.
Looking for syscalls is never a good idea and bound to fail.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to