D | tar.c | 125 static void write_longname(struct archive_handler *tar, char *name, char type) in write_longname() argument 146 writeall(tar->src_fd, (void*) &tmp, sizeof(tmp)); in write_longname() 148 writeall(tar->src_fd, name, sz); in write_longname() 149 if (sz%512) writeall(tar->src_fd, buf, (512-(sz%512))); in write_longname() 161 static void add_file(struct archive_handler *tar, char **nam, struct stat *st) in add_file() argument 205 write_longname(tar, hname, 'K'); //write longname LINK in add_file() 223 write_longname(tar, hname, 'K'); //write longname LINK in add_file() 238 write_longname(tar, hname, 'L'); //write longname NAME in add_file() 252 writeall(tar->src_fd, (void*)&hdr, 512); in add_file() 260 copy_in_out(fd, tar->src_fd, st->st_size); in add_file() [all …]
|