Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Allow the type of daddr_t to be overriden (for examp...



details:   https://anonhg.NetBSD.org/src/rev/f2949cd1a12b
branches:  trunk
changeset: 542579:f2949cd1a12b
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Feb 01 23:47:02 2003 +0000

description:
Allow the type of daddr_t to be overriden (for example by standalone
programs that have tight space constraints).

diffstat:

 sys/sys/types.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 14162a1a3da1 -r f2949cd1a12b sys/sys/types.h
--- a/sys/sys/types.h   Sat Feb 01 22:43:04 2003 +0000
+++ b/sys/sys/types.h   Sat Feb 01 23:47:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.55 2003/01/24 21:55:19 fvdl Exp $  */
+/*     $NetBSD: types.h,v 1.56 2003/02/01 23:47:02 simonb Exp $        */
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -138,7 +138,13 @@
 #define        caddr_t         __caddr_t
 #endif
 
+#ifdef __daddr_t
+typedef        __daddr_t       daddr_t;        /* disk address */
+#undef __daddr_t
+#else
 typedef        int64_t         daddr_t;        /* disk address */
+#endif
+
 typedef        uint32_t        dev_t;          /* device number */
 typedef        uint32_t        fixpt_t;        /* fixed point number */
 



Home | Main Index | Thread Index | Old Index