git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: htonll, ntohll

From
Andreas Ericsson <ae@op5.se>
Date
Nov 13, 2013, 12:20 UTC
Message-ID
<52836E84.3020901@op5.se>
In-Reply-To
<52783518.1030908@ramsay1.demon.co.uk>
On 2013-11-05 01:00, Ramsay Jones wrote:
Show 5 quoted lines
>
> [Note: I have never particularly liked htons, htonl et.al., so adding
> these htonll/ntohll functions doesn't thrill me! :-D For example see
> this post[1], which echo's my sentiments exactly.]
>

That post actually contradicts your statement, as it clearly states that "someone at Adobe figured out about byte order and there would have been no problems transferring files between (big-endian and little-endian) machines... if the people at Adobe wrote proper code to encode and decode their files".

htonl(), ntohl(), htons(), ntohs() are those "encode" and "decode" functions. If you or the author of the post you linked think otherwise, you're misinformed and need to learn what encoding and decoding means.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Jakub Narębski
Message 15 of 15 in “What's cooking in git.git (Oct 2013, #07; Mon, 28)”
  1. Junio C HamanoOct 28, 2013
  2. Thomas RastOct 28, 2013
  3. Torsten BögershausenOct 30, 2013
  4. Vicent MartíOct 30, 2013
  5. Torsten BögershausenOct 30, 2013
  6. Torsten BögershausenOct 30, 2013
  7. Ramsay JonesOct 30, 2013
  8. Ramsay JonesOct 30, 2013
  9. Torsten BögershausenOct 30, 2013
  10. Ramsay JonesOct 30, 2013
  11. Torsten BögershausenOct 31, 2013
  12. Ramsay JonesNov 5, 2013
  13. Torsten BögershausenNov 6, 2013
  14. Jakub NarębskiNov 12, 2013
  15. Andreas EricssonNov 13, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.