Source-Changes archive

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

CVS commit: [netbsd-9] src/sys/compat/netbsd32



Module Name:    src
Committed By:   martin
Date:           Wed Aug  3 11:05:51 UTC 2022

Modified Files:
        src/sys/compat/netbsd32 [netbsd-9]: netbsd32.h netbsd32_conv.h
            netbsd32_fs.c netbsd32_netbsd.c netbsd32_socket.c

Log Message:
Pull up following revision(s), all via patch
(requested by riastradh in ticket #1489):

        sys/compat/netbsd32/netbsd32_netbsd.c: revision 1.232
        sys/compat/netbsd32/netbsd32_socket.c: revision 1.56
        sys/compat/netbsd32/netbsd32_conv.h: revision 1.45
        sys/compat/netbsd32/netbsd32_fs.c: revision 1.92
        sys/compat/netbsd32/netbsd32.h: revision 1.137

The read/write/send/recv system calls return ssize_t because -1 is
returned on error.  Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.

Fixes ATF lib/libc/sys/t_write:write_err.


To generate a diff of this commit:
cvs rdiff -u -r1.123.4.2 -r1.123.4.3 src/sys/compat/netbsd32/netbsd32.h
cvs rdiff -u -r1.38 -r1.38.4.1 src/sys/compat/netbsd32/netbsd32_conv.h
cvs rdiff -u -r1.82.4.2 -r1.82.4.3 src/sys/compat/netbsd32/netbsd32_fs.c
cvs rdiff -u -r1.228 -r1.228.2.1 src/sys/compat/netbsd32/netbsd32_netbsd.c
cvs rdiff -u -r1.49 -r1.49.4.1 src/sys/compat/netbsd32/netbsd32_socket.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