Source-Changes archive

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

CVS commit: src



Module Name:    src
Committed By:   riastradh
Date:           Wed Mar  5 12:02:00 UTC 2025

Modified Files:
        src/sys/kern: sys_futex.c
        src/sys/sys: futex.h
        src/tests/lib/libc/sys: t_futex_ops.c

Log Message:
futex(2): Sign-extend FUTEX_WAKE_OP oparg/cmparg as Linux does.

Also mask off bits in the FUTEX_OP macro as Linux does so that passing
negative arguments works like in Linux.

PR kern/59129: futex(3): missing sign extension in FUTEX_WAKE_OP


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/kern/sys_futex.c
cvs rdiff -u -r1.6 -r1.7 src/sys/sys/futex.h
cvs rdiff -u -r1.13 -r1.14 src/tests/lib/libc/sys/t_futex_ops.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