Ramdrive read fails on vxworls 6.0

N

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

Ico

nsc said:
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 ?
 
S

santosh

nsc said:
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.
 
D

Default User

nsc said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top