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

Re: [PATCH 0/4] replace unsinged long with time_t

From
David Bryson <david@statichacks.org>
Date
Nov 6, 2008, 18:37 UTC
Message-ID
<20081106183722.GL10996@eratosthenes.cryptobackpack.org>
In-Reply-To
<alpine.LFD.2.00.0811061000430.3419@nehalem.linux-foundation.org>
Hi,
On Thu, Nov 06, 2008 at 10:13:46AM -0800 or thereabouts, Linus Torvalds wrote:
> So "time_t" really is a pretty damn worthless type. It's not _quite_ as 
> broken as "socklen_t" (which is just a broken name for "int", and anybody 
> who declares it to be anythign else is a total moron), but it's close.

I have always thought that time_t and similar were braindead, but hey the Janitor page listed it as desireable so what do I know ?

> In theory, some platform might have a 64-but "unsigned long long" time_t 
> even if the architecture is 32-bit (apparently windows used to do that if 
> you included <time64.h>, for example), but since we wouldn't take 
> advantage of that anyway, even then there is no real advantage.

Having a problem between 32 and 64 bit implementations does seem undesireable.

http://git.or.cz/gitwiki/Janitor?action=info

Janitor wiki log says Pasky added the time_t conversion section. Care to explain the reason for the request Pasky ?

Dave
Previous: Linus TorvaldsNext: Linus Torvalds
Message 7 of 9 in “replace unsinged long with time_t”
  1. 0/4 replace unsinged long with time_tdavid@statichacks.org, Nov 6, 2008
  2. 1/4 Changed timestamps to time_t instead of unsigneddavid@statichacks.org, Nov 6, 2008
  3. 2/4 Changed timestamps to time_t in header filesdavid@statichacks.org, Nov 6, 2008
  4. 3/4 Changed timestamps to time_t instead of unsigned long for approxidate()david@statichacks.org, Nov 6, 2008
  5. 4/4 Changed timestamps to time_tdavid@statichacks.org, Nov 6, 2008
  6. Linus TorvaldsNov 6, 2008
  7. David BrysonNov 6, 2008
  8. Linus TorvaldsNov 6, 2008
  9. Daniel StenbergNov 6, 2008

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.