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

Re: htonll, ntohll

From
Jakub Narębski <jnareb@gmail.com>
Date
Nov 12, 2013, 14:44 UTC
Message-ID
<52823ED1.1020306@gmail.com>
In-Reply-To
<52783518.1030908@ramsay1.demon.co.uk>
W dniu 2013-11-05 01:00, Ramsay Jones pisze:
Show 10 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.]
>
> HTH
>
> ATB,
> Ramsay Jones
>
> [1] http://commandcenter.blogspot.co.uk/2012/04/byte-order-fallacy.html

Errr... htonl is about host to network order, and not about big- or little-endianness of architecture. The macros are good, its their implementation that might fail [1].

-- 
Jakub Narębski
Previous: Torsten BögershausenNext: Andreas Ericsson
Message 14 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.