Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Flash memory available? (http://www.chiefdelphi.com/forums/showthread.php?t=83995)

biojae 07-03-2010 22:46

Flash memory available?
 
Is there a function that allows us to find out how much space in flash memory is free and is available for other files (ie camera images) in vxworks?

jhersh 08-03-2010 02:04

Re: Flash memory available?
 
Quote:

Originally Posted by biojae (Post 933311)
Is there a function that allows us to find out how much space in flash memory is free and is available for other files (ie camera images) in vxworks?

Code:

relFsShow ("/c");

biojae 08-03-2010 02:23

Re: Flash memory available?
 
Quote:

Originally Posted by jhersh (Post 933428)
Code:

relFsShow ("/c");


And this returns a struct of type STATUS?
What variables are in that struct?

jhersh 08-03-2010 02:33

Re: Flash memory available?
 
Quote:

Originally Posted by biojae (Post 933432)
And this returns a struct of type STATUS?
What variables are in that struct?

This function prints to stdout... the status is what you would expect from an application in a shell... i.e. 0 == success non-0 == failure.

-Joe

byteit101 08-03-2010 16:49

Re: Flash memory available?
 
Quote:

Originally Posted by jhersh (Post 933436)
This function prints to stdout... the status is what you would expect from an application in a shell... i.e. 0 == success non-0 == failure.

-Joe

are you saying we have to redirect stdout?

jhersh 08-03-2010 19:13

Re: Flash memory available?
 
Quote:

Originally Posted by byteit101 (Post 933824)
are you saying we have to redirect stdout?

If you need to do this from within your program and you were going to use this entry-point, then yes... I was thinking you would call it from the console to find out.

I'll do some more research to find the entry-point that is designed to be called from within your application.

-Joe


All times are GMT -5. The time now is 13:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi