tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Current GNU libc: Declare htonl() via <arpa/inet.h>
Date: Mon, 28 Oct 2024 22:19:40 +0900
From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Message-ID: <241028221940.M0114830%mirage.ceres.dti.ne.jp@localhost>
| 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
Home |
Main Index |
Thread Index |
Old Index