[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
map a file to rtl space.
Firt of all, I want excuse me for my mail without subject ( I forgot it) of
21/02/2000. I asked about the subject of this mail. I do this solution.
On linux space:
[...]
flength=lseek(fd,0,SEEK_END);
p=(char*)mbuff_alloc(M_PTR_MC,flength);
[ if error...]
pfichero=mmap((caddr_t)p,flength, PROT_READ,MAP_SHARED|MAP_FIXED|MAP_LOCKED,fd,0);
and on rtlinux space:
pteroMC=(char*)mbuff_alloc(M_PTR_MC,sizeMC);
if(pteroMC==NULL){
[....]
Thanks for all.
--
Windows 98 no se cuelg·$%&/# NO CARRIER
=============================================================================
Mario Teijeiro Otero mailto://asimoviSPAM@teleline.es
Powered by RedHat 6.1 clave: Mandame un correo con
Usr. Reg. 122438,Maq. Reg. 74229 Subject:[PGPKEY]
=============================================================================