From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,157cee844b8537c6,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-23 20:22:14 PST From: "Jim Liu" Newsgroups: comp.unix.tru64 Subject: caddr_t type issue Date: Mon, 22 Apr 2002 21:48:13 +0800 Organization: DCI HiNet Message-ID: NNTP-Posting-Host: ns.falconstor.com.tw X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!ctu-gate!news.nctu.edu.tw!news01.noc.fet!netnews.hinet.net!news Xref: archiver1.google.com comp.unix.tru64:7369 Dear Sir, In /usr/include/sys/types.h Line 219, there is a char * type: typedef char * caddr_t; /* "core" (i.e. memory) address */ I used cxx -xtaso_short -taso -Zp4 -DTRU64 -g compile my program. But sizeof(caddr_t) always 8 (64 bits). It is very strange for me. Because sizeof(char *) is 4 (32 bits). Even I use #pragma pointer_size short, sizeof(caddr_t) still is 8 (64 bits). Do you have any idea about this issue? Jim (J. J. Liu)