Page MenuHomeFreeBSD

Use declared types for caddr_t arguments.
ClosedPublic

Authored by brooks on Nov 5 2018, 10:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 28 2024, 12:15 AM
Unknown Object (File)
Dec 20 2023, 5:22 AM
Unknown Object (File)
Dec 11 2023, 7:48 AM
Unknown Object (File)
Dec 5 2023, 2:20 PM
Unknown Object (File)
Sep 3 2023, 7:19 AM
Unknown Object (File)
Sep 3 2023, 7:16 AM
Unknown Object (File)
Sep 3 2023, 7:12 AM
Unknown Object (File)
Aug 28 2023, 9:52 AM
Subscribers

Details

Summary

Leave ptrace(2) alone for the moment as it's defined to take a caddr_t.

Note: these changes don't compile without the followup regeneration
commit.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/compat/linux/linux_socket.c
1577 ↗(On Diff #50043)

linux_to_bsd_sockaddr is an awful hack (not related to this change.) And deconst there demonstrates why it is also incorrect.

sys/kern/syscalls.master
339 ↗(On Diff #50043)

What about struct pstats::struct uprof::pr_base ?

This revision is now accepted and ready to land.Nov 6 2018, 2:05 AM
brooks added inline comments.
sys/compat/linux/linux_socket.c
1577 ↗(On Diff #50043)

Indeed. I created https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232920 to document its awfulness when I found it. The shortest path is probably to use copyout_map rather than doing this translation in place.

sys/kern/syscalls.master
339 ↗(On Diff #50043)

I went with char * because that's what the manpage and header say.

This revision was automatically updated to reflect the committed changes.