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

create directory in the file system in vxworks

1,226 views
Skip to first unread message

Wei-Hsin Lee

unread,
Apr 17, 2001, 9:14:43 PM4/17/01
to
Hi,

Does anyone know how to create a directory in the
mounted file system in vxworks? Will opendir do it?
Please advise and thanks in advance.

-Wei-Hsin

Werner Schiendl

unread,
Apr 18, 2001, 7:42:38 AM4/18/01
to
see the file /target/src/usr/usrLib.c
there is the implementation of the shell command mkdir
does this work for your mounted file system?
It should work for NFS and certainly works for DOS FS.

regards
werner

"Wei-Hsin Lee" <wl...@peribit.com> wrote in message
news:9biprj$3i7$1...@overload.lbl.gov...

Dave Korn

unread,
Apr 18, 2001, 6:29:30 AM4/18/01
to
Wei-Hsin Lee wrote in message <9biprj$3i7$1...@overload.lbl.gov>...

opendir is only used for reading directory listings, and you'll get a file
not found error if the directory doesn't already exist. The function you
want is mkdir.

DaveK
--
They laughed at Galileo. They laughed at Copernicus. They laughed at
Columbus. But remember, they also laughed at Bozo the Clown.

0 new messages