473,383 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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 2203
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gunnar | last post by:
Hello, I've just written a CPP program that reads integers from a binary file, and used this code while (my_ifstram.read( (char* ) &number, sizeof(int)) { // do something with number } My...
6
by: Rolf Schroedter | last post by:
(Sorry for cross-posting). I need to access large files > 2GByte (Linux, WinXP/NTFS) using the standard C-library calls. Till today I thought I know how to do it, namely for Win32: Use open(),...
0
by: Robert | last post by:
After failing on a yield/iterator-continuation problem in Python (see below) I tried the Ruby (1.8.2) language first time on that construct: The example tries to convert a block callback interface...
5
by: Arno | last post by:
reposted with the right microsoft managed newsgroup ID: Sorry for the inconvinience Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable...
5
by: lovecreatesbea... | last post by:
The condition at line 31 is added to check if the program finished to read the whole file. Is it needed and correct? Thank you. #include <fstream> #include <iostream> #include <string> using...
8
by: Johnny | last post by:
Hi all: I have an ASP.NET form that reads an Excel file and populates a datagrid. If I load the form in IE on the server, and select a local file, the code works fine. However if I load the form...
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
We have several old applications that are provided by different governmental and other organizations. Most are console style apps that direct output to a filename. We do not want to recreate...
7
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
Ok, I posed this question before, but instead of leading me to information on how to create a RamDrive, everyone was more concerned with how to address my other questions. My main question is:...
2
by: incrediblesuperdude | last post by:
Hi! I have a deployment project made with Visual Studio 2003. The setup fails when I run it in Vista. I have figured out that it only fails when I have an Install Custom Action. I have read in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.