Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

GitMensch
Copy link
Contributor

The Linux Manpage says:

According to POSIX.1-2001, the msg_controllen field of the msghdr structure should be typed as socklen_t, but glibc currently types it as size_t.

socklen_t
Describes the length of a socket address. This is an integer type of at least 32 bits.

So "unsigned int" as defined in Alpine is fine, but break the compilation because of the formatting, as seen in #4009 build log.

The Debian manpage mentions:

Most of the integer types described in this page don't have a corresponding length modifier for the printf(3) [...] families of functions. To print a value of an integer type that doesn't have a length modifier, it should be converted to intmax_t or uintmax_t by an explicit cast. [...]

... which is what this PR does.

…controllen


The Linux Manpage says:

> According to POSIX.1-2001, the msg_controllen field of the msghdr structure should be typed as socklen_t, but glibc currently types it as size_t.

> `socklen_t`
Describes the length of a socket address.  This is an integer type of at least 32 bits.

So "unsigned int" as defined in Alpine is fine, but break the compilation because of the formatting.

The Debian manpage mentions:

> Most of the integer types described in this page don't have a corresponding length modifier for the printf(3) [...] families of functions. To print a value of an integer type that doesn't have a length modifier, it should be converted to intmax_t or uintmax_t by an explicit cast. [...]
@rocallahan rocallahan merged commit 12a2eb8 into rr-debugger:master Sep 16, 2025
5 checks passed
@GitMensch GitMensch deleted the patch-4 branch September 16, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants