[TUHS] Any UNIX With No C In Userland?
Greg A. Woods
woods at robohack.ca
Wed Mar 5 07:27:09 AEST 2025
At Tue, 04 Mar 2025 06:37:56 +0000, Lars Brinkhoff <lars at nocrew.org> wrote:
Subject: [TUHS] Re: Any UNIX With No C In Userland?
>
> I NEVER EVER use C structs or bit fields for this. I get the raw octets
> (or whatever the byte size is), and shift and mask accordingly to get
> the data fields.
Marshalling data in or out byte by byte is of course safe and is
definitely the most portable way, and one can of course still read or
write "record"-length amounts of bytes at one time (or multiples of
records). It just can be a little more tedious.
--
Greg A. Woods <gwoods at acm.org>
Kelowna, BC +1 250 762-7675 RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com> Avoncote Farms <woods at avoncote.ca>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP Digital Signature
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20250304/00152877/attachment.sig>
More information about the TUHS
mailing list