Changeset a21d837 in mainline
- Timestamp:
- 2013-04-01T16:54:02Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8830a2
- Parents:
- 66108658
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.c
r66108658 ra21d837 44 44 #include <assert.h> 45 45 #include <unistd.h> 46 #include <sys/types.h> 46 47 47 48 /** Compare path component with the name read from the dentry. … … 232 233 /** Get number of bytes in a string with size limit. 233 234 * 234 * @param str NULL-terminated (or not) string. 235 * @param str NULL-terminated (or not) string. The pointer comes from a packed 236 * structure and as such is expected to be unaligned. 235 237 * @param size Maximum number of bytes to consider. 236 238 * … … 238 240 * 239 241 */ 240 size_t fat_lfn_str_nlength(const u int16_t *str, size_t size)242 size_t fat_lfn_str_nlength(const unaligned_uint16_t *str, size_t size) 241 243 { 242 244 size_t offset = 0; -
uspace/srv/fs/fat/fat_dentry.h
r66108658 ra21d837 37 37 #include <stdint.h> 38 38 #include <stdbool.h> 39 #include <sys/types.h> 39 40 40 41 #define IS_D_CHAR(ch) (isalnum(ch) || ch == '_') … … 132 133 } __attribute__ ((packed)) fat_dentry_t; 133 134 134 135 135 extern int fat_dentry_namecmp(char *, const char *); 136 136 extern void fat_dentry_name_get(const fat_dentry_t *, char *); … … 139 139 extern uint8_t fat_dentry_chksum(uint8_t *); 140 140 141 extern size_t fat_lfn_str_nlength(const u int16_t *, size_t);141 extern size_t fat_lfn_str_nlength(const unaligned_uint16_t *, size_t); 142 142 extern size_t fat_lfn_size(const fat_dentry_t *); 143 143 extern size_t fat_lfn_get_entry(const fat_dentry_t *, uint16_t *, size_t *);
Note:
See TracChangeset
for help on using the changeset viewer.