Rationale for aligning data on even bytes in a Unix shell file?

Liste des GroupesRevenir à c misc 
Sujet : Rationale for aligning data on even bytes in a Unix shell file?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.c
Date : 26. Apr 2025, 12:47:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vuih43$2agfa$1@dont-email.me>
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
In a "C" file (of the Kornshell software) I stumbled across this
comment: "Each command in the history file starts on an even byte
and is null-terminated."

I wonder what's the reason behind that even-byte-alignment, on "C"
level or on Unix/files level. Any ideas?

Janis

Note: Since it's not a shell question but more of a programming or
platform related question I try to get the answer here (and not in
comp.unix.shell); just saying to prevent distracting calls to order.
Thanks.

Date Sujet#  Auteur
8 Jun 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal