Source-Changes archive

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

CVS commit: [netbsd-10] src/tests/lib/libc/sys



Module Name:    src
Committed By:   martin
Date:           Fri Oct  9 14:45:51 UTC 2026

Modified Files:
        src/tests/lib/libc/sys [netbsd-10]: t_posix_fadvise.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1352):

        tests/lib/libc/sys/t_posix_fadvise.c: revision 1.4

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.3.16.1 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