FreeCalypso > hg > freecalypso-tools
comparison ffstools/tiffs-rd/object.c @ 919:1f27fc13eab7
tiffs: add support for extended filenames found in SE K2x0 FFS
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 31 Dec 2022 09:27:01 +0000 |
parents | e7502631a0f9 |
children |
comparison
equal
deleted
inserted
replaced
918:0c33e24ff935 | 919:1f27fc13eab7 |
---|---|
10 #include <strings.h> | 10 #include <strings.h> |
11 #include "types.h" | 11 #include "types.h" |
12 #include "struct.h" | 12 #include "struct.h" |
13 #include "globals.h" | 13 #include "globals.h" |
14 #include "pathname.h" | 14 #include "pathname.h" |
15 | |
16 object_name_mincheck(ino) | |
17 { | |
18 struct inode_info *inf = inode_info[ino]; | |
19 u8 *p, *endp; | |
20 | |
21 if (!inf->len) | |
22 return(0); | |
23 p = inf->dataptr; | |
24 endp = p + inf->len; | |
25 for (; ; p++) { | |
26 if (p >= endp) | |
27 return(0); | |
28 if (!*p) | |
29 break; | |
30 } | |
31 inf->byte_after_name = p + 1; | |
32 return(1); | |
33 } | |
15 | 34 |
16 validate_obj_name(ino, root_special) | 35 validate_obj_name(ino, root_special) |
17 { | 36 { |
18 struct inode_info *inf = inode_info[ino]; | 37 struct inode_info *inf = inode_info[ino]; |
19 u8 *p, *endp; | 38 u8 *p, *endp; |