lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx - files above 2GB in size - size reported by Lynx is


From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx - files above 2GB in size - size reported by Lynx is not correct
Date: Wed, 11 Jun 2008 15:28:51 -0400 (EDT)

On Wed, 11 Jun 2008, Thorsten Glaser wrote:

Thomas Dickey dixit:

yes (and it doesn't use - yet - the c99-specific formatting codes).

off_t (sys/types.h, unistd.h, fcntl.h) and fpos_t (stdio.h) are SUSv3,
cf. http://www.opengroup.org/cgi-bin/s3search.pl?KEYWORDS=off_t
and http://www.opengroup.org/cgi-bin/s3search.pl?KEYWORDS=fpos_t

It's not using off_t throughout - but I wasn't commenting on that.
Rather (man 3 printf):

       l      (ell) A following integer conversion corresponds to a  long  int
              or  unsigned long int argument, or a following n conversion cor-
              responds to a pointer to a long int argument, or a  following  c
              conversion  corresponds  to  a wint_t argument, or a following s
              conversion corresponds to a pointer to wchar_t argument.

       ll     (ell-ell).  A following integer conversion corresponds to a long
              long  int  or  unsigned long long int argument, or a following n
              conversion corresponds to a pointer to a long long int argument.

       L      A  following a, A, e, E, f, F, g, or G conversion corresponds to
              a long double argument.  (C99 allows %LF, but SUSv2 does not.)

as well as the "SCIxxx" and "PRIxxx" macros from inttypes.h (to avoid
unnecessary casts).


//mirabilos
--
[...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh but
what about xfs, and if only i had waited until reiser4 was ready... in the be-
ginning, there was ffs, and in the middle, there was ffs, and at the end, there
was still ffs, and the sys admins knew it was good. :)  -- Ted Unangst ├╝ber *fs


_______________________________________________
Lynx-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lynx-dev


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]