1833185 Members
2765 Online
110051 Solutions
New Discussion

aCC and syscall()

 
Don Rosengrant
Occasional Advisor

aCC and syscall()

I am migrating a K&R C style custom notifier library that was built with Softbench C that is part of our product to aCC to be comaptible with HPOV 6.4. Part of it uses the function syscall(). It appears that this is not supported by aCC. If this is true, how do I do equivelent functionality? The calls use SYS_read, SYS_select and SYS_fcntl.

Yes, this library circumvents the notifier mechanism in HPOV. It was done by people no longer here and I don't think I want to pull it out unless there is no other way.

Thanks for your help.
Don
2 REPLIES 2
Antoniov.
Honored Contributor

Re: aCC and syscall()

Hi Don,
some year ago I've used a little C compiler that used a function called syscall; it was a function like system in ANSI C.
I think if you read documentation about the functions system and read you could find equivalent functionality.
Bye
Antoniov
Antonio Maria Vigliotti
Don Rosengrant
Occasional Advisor

Re: aCC and syscall()

Antoniov
Thanks. At one time we were also building for AIX which used a read function, but that doesn't seem to exist in aCC either. I'll keep looking.
Don