I have to port a library from QNX2 to QNX6, and it has some QNX2
functions that are not available on QNX6.
The functions are:
- signal_hw_port
- set_int_mask
- set_int_vec
- name_attach
- name_locate
- name_detach
- detach
attach_port
- create_seg
I think that name_attach, name_locate, and name_detach are the old
“qnx_name_attach”, “qnx_name_locate” and “qnx_name_detach” but i would like
if anyone could confirm that.
How can be replaced the functions listed above.
Thanks in advance.
Javier
Javier Barreiro <jbarreiro@vai-ingdesi.com> wrote:
I have to port a library from QNX2 to QNX6, and it has some QNX2
functions that are not available on QNX6.
The functions are:
- signal_hw_port
Not sure about this one. What was it used for? If it was for having
an interrupt handler wake up a process then the Interrupt Handler
section menioned below will help. The interrupt handler would return
with an event. The event could contain a pulse which would be sent
to a MsgReceive().
- set_int_mask
InterruptMask(), InterruptUnmask()
- set_int_vec
InterruptAttach(), InterruptAttachEvent()
See Programmer’s Guide, Writing and Interrupt Handler
- name_attach
name_attach()
- name_locate
name_open(), name_close()
- name_detach
name_detach()
- detach
Pulses replace ports. There is nothing to detach from with pulses.
> attach_port
You want to look at pulses. See MsgDeliverEvent() or MsgSendPulse().
- create_seg
You don’t work with selectors in QNX 6. What were you using it for?
I think that name_attach, name_locate, and name_detach are the old
“qnx_name_attach”, “qnx_name_locate” and “qnx_name_detach” but i would like
if anyone could confirm that.
How can be replaced the functions listed above.
Thanks in advance.
Javier