Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/tests/lib/libc/sys



Module Name:    src
Committed By:   riastradh
Date:           Sun Apr  6 19:18:01 UTC 2025

Modified Files:
        src/tests/lib/libc/sys: t_posix_fadvise.c

Log Message:
t_posix_fadvise: Don't check whether errno is preserved.

I can find no guarantee in POSIX about posix_fadvise preserving
errno; until such language is found I'm going to assume there is no
such guarantee.

What is happening is that, sometimes, rump_sys_posix_fadvise waits on
a mutex or condvar, which uses _lwp_park internally, which sometimes
wakes up early with EALREADY because a wakeup was already pending for
the thread by the time it entered _lwp_park.  And that EALREADY is
delivered by _lwp_park via errno.

PR kern/53931: posix_fadvise_reg test case fails randomly on real
hardware


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_posix_fadvise.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index