Thanks,
Nilesh
Look into using the routine for creating the statTbl,
mkStatTbl is the name I think. It goes through all the headers
and creates a table of errno's from each main component's
error information. The upper word is the library and the lower
is the error code. HTH. (If you have Windows, use the online
help).
--
http://www.xs4all.nl/~borkhuis/vxworks/vxworks.html (vxWorks FAQ home
page)
S_dosFsLib_FILE_NOT_FOUND (M_dosFsLib | ERRNO_PX_FLAG | ENOENT)
--
Steeve Gagne
steeve...@videotron.ca
"Nilesh" <npis...@yahoo.com> wrote in message
news:b6061ec6.01082...@posting.google.com...
just as a note: the errnovalue is nearly unuseable for this under vxWorks.
I had a lot of discussions about this with WindRiver TechSupp.
One of the problems is, that stat may set errno to a device driver specific
value, so, 2 different drivers may set stat to the same value, with
different meaning...
Sample mail:
Hello,
I have a scenario where a stat() calls tells me that a file exists and so i
try to open this file.
(note: the open of this file happend about 50 more times earlier without
problem).
and in this scenario the open fails and i printf the errno value.
and this value is 421
??
i cannot find this value in errno.h
vxWorks 5.4, Target=Pentium. FTP-FS, Host=WinNT 4.05
here is the code:
if( (fdX = open(lObjectFile, O_RDONLY,0)) == ERROR )
{
LCtTraceFun(printf( "unable to open %s - %d\n",lObjectFile,errno));
and the output is:
unable to open ..\lcoplcfs.bin - 421
=========
reply:
in this special case, 421 corresponds to:
421 Service not available, closing control connection.
This may be a reply to any command if the service knows it
must shut down.
The rest of the error codes are defined in RFC 959.
=========
The reason is: in the above testcase i use FTP-FileSystem. FTP FileSystem
"returns" 421 when the file cannot be opened. But other FileSystem drivers
"return" other values in errno in the same situation.
You cannot write a filesystem independent handling of the errno value...
--
regards, Mario Semo. http://www.kirchnersoft.com
Nilesh <npis...@yahoo.com> wrote in message
news:b6061ec6.01082...@posting.google.com...