Re: [PATCH] Current GNU libc: Declare htonl() via <arpa/inet.h>
Robert Elz <[email protected]> Tue, 29 Oct 2024 01:57:09 +0700
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
Date: Mon, 28 Oct 2024 22:19:40 +0900
From: Izumi Tsutsui <[email protected]>
Message-ID: <[email protected]>
| Maybe we can replace it with N_SETMAGIC() in <sys/exec_aout.h>
| (that already uses htobe32()):
I considered that, but it looked to be doing a simple field copy
(with byte order modification) -- to use N_SETMAGIC() the 3 separate
fields that go in there would first need to be extracted. That
didn't seem worth the effort. But just switching to htobe32()
would be entirely reasonable.
kre