From: howardy@freud.nia.nih.gov (Howard Wai-Chun Yeung)
Subject: how to get around memory mapped file in Ultrix
Date: Wed, 28 Apr 1993 14:09:12 GMT [thread overview]
Message-ID: <1993Apr28.140912.4403@alw.nih.gov> (raw)
I post my previous question about the c compiler problem.
I get the following response from a DEC person.
>>ccom: Warning: genimg.c, line 218: illegal combination of pointer and integer,>>op =
>>inmapped=mmap((caddr_t)0, (dimx*dimy*dimz*bits)-1 , 0x1 , 1 , fd, (off_t)
>>0);
>> ------------------------------------------------------------------------------------------------
>>--^
>The warning is likely due to the fact that mmap is declared as returning
>caddr_t on SGI and not at all under MIPS Ultrix (which I assume your using,
>because on DEC OSF/1 Alpha it *is* declared as returning caddr_t).
>>My program doesn't run on DEC.
>>
>>Do anyone know why?
>What are you trying to mmap ? If that's a file, that doesn't work
>at all under Ultrix, because Ultrix doesn't have memory mapped files.
That's not a good news to me.
Actually, the program isn't written by me. I guess the original
author is trying to map a protion of memeory to an output file.
Is there an equivalent function in Ultrix c which do the same
thing, or any ways to get around this?
On SGI the prototype of the function is:
extern void *mmap(void *, int, int, int, int, off_t);
Appreciate your help.
Howard
next reply other threads:[~1993-04-28 14:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-04-28 14:09 Howard Wai-Chun Yeung [this message]
1993-04-29 0:07 ` how to get around memory mapped file in Ultrix Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-04-29 1:58 ` Marcus J Ranum
1993-05-03 8:29 ` Ron Jarrell
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox