offset.h File Reference

File offsets are operating-system dependent. More...

#include <limits.h>
#include <sys/types.h>
#include <stddef.h>

Go to the source code of this file.

Defines

#define ISC_OFFSET_H   1
#define ISC_OFFSET_MAXIMUM
 POSIX says "Additionally, blkcnt_t and off_t are extended signed integral types", so the maximum value is all 1s except for the high bit. This definition is more complex than it really needs to be because it was crafted to keep both the SunOS 5.6 and the HP/UX 11 compilers quiet about integer overflow. For example, though this is equivalent to just left shifting 1 to the high bit and then inverting the bits, the SunOS compiler is unhappy about shifting a positive "1" to negative in a signed integer.

Typedefs

typedef off_t isc_offset_t


Detailed Description

File offsets are operating-system dependent.

Definition in file offset.h.


Define Documentation

#define ISC_OFFSET_H   1

Definition at line 21 of file offset.h.

#define ISC_OFFSET_MAXIMUM

Value:

(~(((off_t)-1 >> (sizeof(off_t) * CHAR_BIT - 1)) \
                      << (sizeof(off_t) * CHAR_BIT - 1)))
POSIX says "Additionally, blkcnt_t and off_t are extended signed integral types", so the maximum value is all 1s except for the high bit. This definition is more complex than it really needs to be because it was crafted to keep both the SunOS 5.6 and the HP/UX 11 compilers quiet about integer overflow. For example, though this is equivalent to just left shifting 1 to the high bit and then inverting the bits, the SunOS compiler is unhappy about shifting a positive "1" to negative in a signed integer.

Definition at line 42 of file offset.h.

Referenced by channel_fromconf().


Typedef Documentation

typedef off_t isc_offset_t

Definition at line 31 of file offset.h.


Generated on Tue Apr 28 17:41:19 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha