Home | History | Annotate | Download | only in squashfs-tools

Lines Matching refs:buff

173 	unsigned char		*buff;
336 unsigned short get_checksum_mem(char *buff, int bytes);
531 int read_bytes(int fd, void *buff, int bytes)
536 res = read(fd, buff + count, bytes - count);
554 int read_fs_bytes(int fd, long long byte, int bytes, void *buff)
568 } else if(read_bytes(fd, buff, bytes) < bytes) {
578 int write_bytes(int fd, void *buff, int bytes)
583 res = write(fd, buff + count, bytes - count);
598 void write_destination(int fd, long long byte, int bytes, void *buff)
613 if(write_bytes(fd, buff, bytes) == -1)
1215 unsigned char *buff;
1230 >= dir->buff + dir->size) {
1231 buff = realloc(dir->buff, dir->size += SQUASHFS_METADATA_SIZE);
1232 if(buff == NULL)
1235 dir->p = (dir->p - dir->buff) + buff;
1237 dir->entry_count_p = (dir->entry_count_p - dir->buff +
1238 buff);
1239 dir->index_count_p = dir->index_count_p - dir->buff + buff;
1240 dir->buff = buff;
1264 dir->p - dir->buff;
1302 unsigned int dir_size = dir->p - dir->buff;
1327 memcpy(directory_data_cache + directory_cache_bytes, dir->buff,
1384 dirp = dir->buff;
1817 unsigned short get_checksum(char *buff, int bytes, unsigned short chksum)
1819 unsigned char *b = (unsigned char *) buff;
1866 unsigned short get_checksum_mem(char *buff, int bytes)
1868 return get_checksum(buff, bytes, 0);
3606 static char buff[65536]; /* overflow safe */
3608 byte = readlink(filename, buff, 65536);
3620 buff[byte] = '\0';
3622 0, 0, buff, byte + 1));
4042 dir->buff = malloc(SQUASHFS_METADATA_SIZE);
4043 if(dir->buff == NULL)
4047 dir->p = dir->index_count_p = dir->buff;
4075 free(dir->buff);