linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unsigned off_t?
@ 2005-07-25  8:47 Holger Kiehl
  2005-07-25  8:53 ` Jeff Woods
  2005-07-26  5:24 ` Glynn Clements
  0 siblings, 2 replies; 12+ messages in thread
From: Holger Kiehl @ 2005-07-25  8:47 UTC (permalink / raw)
  To: linux-c-programming

Hello

I would like to have an unsigned off_t, what is the best and portbale way
to define this? Currently I use the following code:

    #if SIZEOF_OFF_T == 4
    typedef unsigned long       u_off_t;
    #else
    typedef unsigned long long  u_off_t;
    #endif

SIZEOF_OFF_T is returned from the gnu autoconfig tools.

Is this the correct way of doing this? Or is there some better more portable
way?

Thanks,
Holger
-- 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-07-27 20:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25  8:47 Unsigned off_t? Holger Kiehl
2005-07-25  8:53 ` Jeff Woods
2005-07-25  9:00   ` Holger Kiehl
2005-07-26  5:24 ` Glynn Clements
2005-07-26  7:38   ` Holger Kiehl
2005-07-26 16:53     ` superblock & inode's Nanakos Chrysostomos
2005-07-26 16:59       ` Robert P. J. Day
2005-07-27  5:21       ` sumit kalra
2005-07-27  7:24       ` Glynn Clements
2005-07-27 18:53         ` Nanakos Chrysostomos
2005-07-27  7:23     ` Unsigned off_t? Glynn Clements
2005-07-27 20:09       ` Holger Kiehl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).