Lines Matching defs:size
343 #define ACCOUNTSIZE 256 /* maximum size of an account name */
345 #define MAXATTRSZ 65536 /* Max sec attr size (16448 met for WinXP) */
346 #define MAXLINE 80 /* maximum processed size of a line */
347 #define BUFSZ 1024 /* buffer size to read mapping file */
348 #define LINESZ 120 /* maximum useful size of a mapping line */
400 le16 size;
418 le16 size;
775 static void hexdump(const char *attr, int size, int level)
779 for (i=0; i<size; i+=16) {
783 for (j=i; (j<(i+16)) && (j<size); j++)
789 static u32 hash(const le32 *buf, int size /* bytes */)
795 for (i=0; 4*i<size; i++)
801 * Evaluate the size of UTS-8 conversion of a UTF-16LE text
851 * Returns size or zero for invalid input
856 int size;
858 size = ntfs_ucstombs(utf16, length, &utf8, MAXFILENAME);
859 return (size < 0 ? 0 : size);
1424 int size;
1432 size = get2l(attr,off+2);
1434 printf("%*cACL size %d\n",-level,marker,size);
1438 for (i=0; (i<cnt) && (x < size); i++) {
1779 static int basicread(void *fileid, char *buf, size_t size,
1782 return (read(*(int*)fileid, buf, size));
1792 char *buf, size_t size, off_t pos)
1799 if ((size + pos) >= (sizeof(dummymapping) - 1))
1802 sz = size;
2684 pacl->size = cpu_to_le16(0); /* fixed later */
2703 pace->size = cpu_to_le16(sidsz + 8);
2726 pacl->size = cpu_to_le16(aclsz);
4376 static ssize_t ntfs_getxattr(const char *path, const char *name, void *value, size_t size)
4379 return getxattr(path, name, value, size, 0, 0);
4381 return getxattr(path, name, value, size);
4690 int size;
4693 size = utf8size(ntfsname,length);
4696 && (size > 0) /* chars convertible to utf8 */
4703 + size + 2);
4859 unsigned int entrysz, unsigned int size, u32 prevkey,
4871 printf("** Entry is truncated (expected size %ld)\n",
4877 printf("** Extra data appended to entry (expected size %ld)\n",
4881 if (!unsane && !ntfs_valid_descr((const char*)&attr[20],size)) {
5005 int size;
5024 /* get size of first record */
5026 size = ntfs_read_sds(ntfs_context,(char*)attr,20,offset);
5027 if (size != 20) {
5028 if ((size < 0) && (errno == ENOTSUP))
5032 printf("** Could not open $SDS-%d, size %d\n",
5033 (second ? 2 : 1),size);
5042 /* read next header in anticipation, to get its size */
5043 size = ntfs_read_sds(ntfs_context,
5046 printf("\nAt offset 0x%lx got %lu bytes\n",(long)offset,(long)size);
5052 if ((entryalsz > (MAXATTRSZ + 20)) || (size < (int)(entrysz - 20)))
5056 printf("Entry size %d bytes\n",entrysz);
5057 hexdump(&attr[20],size,8);
5061 size,prevkey,second);
5096 size = ntfs_read_sds(ntfs_context,
5098 if (size != 20) {
5100 printf("Assuming end of $SDS, got %d bytes\n",size);
5144 printf("** size %d (instead of 20)\n",(int)get2l(entry,2));
5155 printf("** index size %d (instead of 48)\n",(int)get2l(entry,8));
5161 printf("** index size %d (instead of 40)\n",(int)get2l(entry,8));
5166 printf("** index key size %d (instead of 4)\n",(int)get2l(entry,10));
5319 printf("** size %d (instead of 20)\n",(int)get2l(entry,2));
5330 printf("** index size %d (instead of 56)\n",(int)get2l(entry,8));
5336 printf("** index size %d (instead of 48)\n",(int)get2l(entry,8));
5341 printf("** index key size %d (instead of 8)\n",(int)get2l(entry,10));