This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Questions about maximum length of file name of eCos RAM file system
- From: "S. Uchida" <uchida dot s dot 2010 at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 21 Jan 2010 18:28:01 +0900
- Subject: [ECOS] 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