This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Questions about maximum length of file name of eCos RAM file system


Dear Sirs/Madams,

I have two questions about RAM file system in eCos.

I tried to make a new file (whose name's length is 128) on the RAM
file system, and delete the file.
However, I failed to delete the file though succeeded in making it.

1. Is this behavior a specification, or a bug?
2. If this is a specification, could you tell me which document
contains the maximum length of file name?

The source code that brings me to the error is as follows:

(Source code begins.)
#include <stdio.h>
#include <cyg/fileio/fileio.h>

#define TEST_LONG_FILE_NAME
"/12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"

int main (int argc, char** argv)
{
?int err = 0;
?FILE *file = NULL;

?err = mount("", "/", "ramfs");
?file = fopen(TEST_LONG_FILE_NAME, "w+"); /* not error */
?err = fclose(file);
?err = remove(TEST_LONG_FILE_NAME); /* ERROR */

?return 0;
}
(Source code ends.)

My eCos-related environment is as follows:
eCos Version: 3.0
CPU: NEC V850

I am looking forward to someone answering my questions.

Sincerely yours,
S. Uchida.

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]