469,900 Members | 1,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,900 developers. It's quick & easy.

Ramdrive read fails on vxworls 6.0

nsc
Hi

I am trying to read a bunch of files from my dos formated ramdrive on
a board and then transfer them through ftp on a remote site.

The problem I am facing is that the read call to the ramdrive fails
with random error codes. It gives me error codes 0,4,9 or 60 (NOTSET,
EINTR, EBADF, ETIMEDOUT). The read operation generally fails on third
or fourth file read. In some rare cases it also fails on 1st file
read, and in rarer cases everything works fine.

This RAM area is not being touched by any other process and since the
files were just written to this area prior to read hence the memory is
also accessible :)

Any help would be appreciated.

Feb 5 '07 #1
3 1983
Ico
nsc <na*****@gmail.comwrote:
Hi

I am trying to read a bunch of files from my dos formated ramdrive on
a board and then transfer them through ftp on a remote site.

The problem I am facing is that the read call to the ramdrive fails
with random error codes. It gives me error codes 0,4,9 or 60 (NOTSET,
EINTR, EBADF, ETIMEDOUT). The read operation generally fails on third
or fourth file read. In some rare cases it also fails on 1st file
read, and in rarer cases everything works fine.

This RAM area is not being touched by any other process and since the
files were just written to this area prior to read hence the memory is
also accessible :)
So, what's your question about the C language ?

--
:wq
^X^Cy^K^X^C^C^C^C
Feb 5 '07 #2
nsc wrote:
Hi

I am trying to read a bunch of files from my dos formated ramdrive on
a board and then transfer them through ftp on a remote site.

The problem I am facing is that the read call to the ramdrive fails
with random error codes. It gives me error codes 0,4,9 or 60 (NOTSET,
EINTR, EBADF, ETIMEDOUT). The read operation generally fails on third
or fourth file read. In some rare cases it also fails on 1st file
read, and in rarer cases everything works fine.

This RAM area is not being touched by any other process and since the
files were just written to this area prior to read hence the memory is
also accessible :)

Any help would be appreciated.
This group discusses ISO C.

If you're doing this with a standard C program you've written, then
posting the smallest compilable source that exhibits your problem
would be helpful. Otherwise, it better to ask in a group specific to
your system. Try comp.os.ms-windows.programmer.win32 and
comp.os.linux.development.apps. I think you're probably using system
specific extensions or syscalls, in which case, this is not the group
for your question. If not, feel free to post your code and restate
your problem in more detail.

Feb 5 '07 #3
nsc wrote:
Hi

I am trying to read a bunch of files from my dos formated ramdrive on
a board and then transfer them through ftp on a remote site.
As pointed out, this is off-topic here. You might want to try
comp.os.vxworks as a start.


Brian
Feb 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Gunnar | last post: by
6 posts views Thread by Rolf Schroedter | last post: by
5 posts views Thread by lovecreatesbea... | last post: by
8 posts views Thread by Johnny | last post: by
4 posts views Thread by =?Utf-8?B?anAybXNmdA==?= | last post: by
7 posts views Thread by =?Utf-8?B?anAybXNmdA==?= | last post: by
2 posts views Thread by incrediblesuperdude | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.