some functions missing in QNX6

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:

  1. signal_hw_port
  2. set_int_mask
  3. set_int_vec
  4. name_attach
  5. name_locate
  6. name_detach
  7. detach
    :sunglasses: attach_port
  8. 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:

  1. 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().

  1. set_int_mask
    InterruptMask(), InterruptUnmask()


  2. set_int_vec
    InterruptAttach(), InterruptAttachEvent()

See Programmer’s Guide, Writing and Interrupt Handler

  1. name_attach
    name_attach()


  2. name_locate
    name_open(), name_close()


  3. name_detach
    name_detach()


  4. detach
    Pulses replace ports. There is nothing to detach from with pulses.



    :sunglasses: > attach_port
    You want to look at pulses. See MsgDeliverEvent() or MsgSendPulse().


  5. 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