relative pointers

M

Mikel Luri

Hi all:
We're porting lot of C code from Windows to Unix/Linux.
In Windows we're using relative pointers (with the _based keyword) to
access some structures placed on shared memory. We would need
something like the Microsoft's _based keyword for Unix/Linux.
¿Does something similar exist in those S.O-s?
We would like to solve our problem without having to change every line
of code where an access to our pointers is made. ¿ is it posible ?
Thanks in advance
Mikel.
 
C

Case

Mikel said:
Hi all:
We're porting lot of C code from Windows to Unix/Linux.
In Windows we're using relative pointers (with the _based keyword) to
access some structures placed on shared memory. We would need
something like the Microsoft's _based keyword for Unix/Linux.
¿Does something similar exist in those S.O-s?
We would like to solve our problem without having to change every line
of code where an access to our pointers is made. ¿ is it posible ?

The questions you ask are not appropriate here because they
do not deal with standard C, but with OS dependent implementation.

But, unless you're talking about shared memory between two programs,
why would you need something like a _based beast on UNIX/Linux?
(Glad to not be a Microsoft expert!)

Kees
 
G

Grumble

Mikel said:
We're porting lot of C code from Windows to Unix/Linux.
In Windows we're using relative pointers (with the _based keyword) to
access some structures placed on shared memory. We would need
something like the Microsoft's _based keyword for Unix/Linux.
¿Does something similar exist in those S.O-s?
We would like to solve our problem without having to change every line
of code where an access to our pointers is made. ¿ is it posible ?

Try comp.unix.programmer and/or comp.os.linux.development.apps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,142
Messages
2,570,819
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top