Commit 6deb631b authored by David Lawrence's avatar David Lawrence
Browse files

208. [func] Added ISC_OFFSET_MAXIMUM for the maximum value

                        of an isc_offset_t.
parent db9628e8
208. [func] Added ISC_OFFSET_MAXIMUM for the maximum value
of an isc_offset_t.
207. [func] The dnssec tools properly use the logging subsystem.
206. [cleanup] dst now stores the key name as a dns_name_t, not
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: offset.h,v 1.3 2000/04/28 22:13:15 tale Exp $ */
/* $Id: offset.h,v 1.4 2000/05/25 03:34:34 tale Exp $ */
#ifndef ISC_OFFSET_H
#define ISC_OFFSET_H 1
......@@ -23,9 +23,15 @@
/*
* File offsets are operating-system dependent.
*/
#include <limits.h>
#include <sys/types.h>
typedef off_t isc_offset_t;
/*
* 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.
*/
#define ISC_OFFSET_MAXIMUM (~((off_t)1 << (sizeof(off_t) * CHAR_BIT - 1)))
#endif /* ISC_OFFSET_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment