FreeCalypso > hg > freecalypso-tools
comparison rvinterf/include/ffslimits.h @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 /* | |
2 * Limits on FFS filenames and pathnames | |
3 * | |
4 * The deepest pathname allowed is one of the form /1/2/3/4/5/6, where the | |
5 * last component may be a file, a directory or a symlink; if this last | |
6 * component is a directory, it has to be empty, because any child of | |
7 * that directory would violate the depth limit. | |
8 * | |
9 * The proper FFS pathname form begins with a slash (all pathnames must | |
10 * be absolute, no Unix processes in the fw means no current directories), | |
11 * has exactly one slash in each separating place (no double slashes), | |
12 * and no trailing slash except in the special case of the root directory, | |
13 * whose full pathname is "/". | |
14 * | |
15 * Each component name is [1,20] characters long; combining this limit | |
16 * with the maximum depth of 6 puts the maximum length of a properly-formed | |
17 * full pathname at 126 characters. | |
18 */ | |
19 | |
20 #define MAX_FN_COMPONENT 20 | |
21 #define MAX_NAME_DEPTH 6 | |
22 #define MAX_FULL_PATHNAME ((MAX_FN_COMPONENT+1) * MAX_NAME_DEPTH) |