From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,798b134949f679fd X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-22 06:04:56 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!Germany.EU.net!EU.net!CERN.ch!news From: danpop@cernapo.cern.ch (Dan Pop) Subject: Re: 64-bit FILE* pointer problem in OSF1 Message-ID: Sender: news@news.cern.ch (USENET News System) Organization: CERN European Lab for Particle Physics References: Date: Tue, 22 Nov 1994 12:05:24 GMT In duha@ralph.biomed.mcgill.ca (Jan A. Duha) writes: > My question, then: is this a valid method? A longer version of the >question is: how exactly are fp's implemented in OSF1, and what is the >significance of moving from 32-bit to 64-bit pointers for FILE >structures? Can I have it guaranteed that the OS will place the >pointers in known (constant) locations? (my guess is that since a FILE* >pointer is associated to a specific stream, the answer to the last question >would be "yes", but i need this confirmed) ues5:~/tmp 218> uname -a OSF1 ues5.cern.ch V2.1 250 alpha ues5:~/tmp 219> cat test.c #include main() { FILE *fp; fp = fopen("test.c", "r"); printf("%p\n", (void *)fp); return 0; } ues5:~/tmp 220> cc test.c ues5:~/tmp 221> ./a.out 3ffc008ff98 ues5:~/tmp 222> cc -taso test.c ues5:~/tmp 223> ./a.out 64011f98 For more details about the -taso option see the cc man page. Dan -- Dan Pop CERN, CN Division Email: danpop@cernapo.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland