Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fcntl () call in VxWorks

524 views
Skip to first unread message

Navin Kumar Agrawal

unread,
Mar 2, 2000, 3:00:00 AM3/2/00
to
Tornado

Hi Folks,

How do we use fcntl () system call in a vxworks based application
program?
Do I have to include some specific include file to call this function?

I used fcntl () call in one of my application program. While compiling
there
was no problem. But while downloading the .out file on the target, it
gave me
'fcntl' symbol unresolved error. Can anybody help me in solving this?

Regards,
Navin

Joe Durusau

unread,
Mar 5, 2000, 3:00:00 AM3/5/00
to
The function does not exist in vxworks. You would
have to write it yourself. There is something similar,
I believe called fioctl which is in vxworks. You might see if
that has what you want. An easy trick to seeing what is in your
bsp is: get to a shell and type

lkup "name"

For example, lkup "fcntl" would tell you that your copy of vxworks
doesn't have fcntl.

You could get source for fcntl from linux or some such and
see if you could adapt it to your situation.

Good luck.


Speaking only myself,

Joe Durusau

Peter Colby

unread,
Mar 6, 2000, 3:00:00 AM3/6/00
to
ioctl() (for the specific fd type) in vxWorks will cover most of what
fcntl() does generically in POSIX

Joe Durusau wrote:
>
> The function does not exist in vxworks. You would
> have to write it yourself. There is something similar,
> I believe called fioctl which is in vxworks. You might see if

> that has what you want. [...]
>
> Navin Kumar Agrawal wrote:
> >
> > [...]

0 new messages