Home
last modified time | relevance | path

Searched refs:pack_fd (Results 1 – 25 of 55) sorted by relevance

123

/dports/devel/cgit/cgit-1.2.3/git/
H A Dpack-write.c206 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
222 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
224 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
230 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
235 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
244 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
281 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
282 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c228 p->pack_fd = -1; in alloc_packed_git()
308 if (p->pack_fd < 0) in close_pack_fd()
311 close(p->pack_fd); in close_pack_fd()
313 p->pack_fd = -1; in close_pack_fd()
441 if (p->pack_fd == -1) in close_one_pack()
543 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
544 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
642 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
657 p->pack_fd, win->offset); in use_pack()
743 if (pack->pack_fd != -1) in install_packed_git()
[all …]
H A Dobject-store.h75 int pack_fd; member
/dports/devel/git-svn/git-2.34.1/
H A Dpack-write.c317 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
333 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
335 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
341 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
346 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
355 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
392 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
393 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c229 p->pack_fd = -1; in alloc_packed_git()
309 if (p->pack_fd < 0) in close_pack_fd()
312 close(p->pack_fd); in close_pack_fd()
314 p->pack_fd = -1; in close_pack_fd()
453 if (p->pack_fd == -1) in close_one_pack()
544 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
545 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
639 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
654 p->pack_fd, win->offset); in use_pack()
740 if (pack->pack_fd != -1) in install_packed_git()
[all …]
/dports/devel/git-gui/git-2.34.1/
H A Dpack-write.c317 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
333 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
335 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
341 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
346 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
355 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
392 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
393 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c229 p->pack_fd = -1; in alloc_packed_git()
309 if (p->pack_fd < 0) in close_pack_fd()
312 close(p->pack_fd); in close_pack_fd()
314 p->pack_fd = -1; in close_pack_fd()
453 if (p->pack_fd == -1) in close_one_pack()
544 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
545 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
639 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
654 p->pack_fd, win->offset); in use_pack()
740 if (pack->pack_fd != -1) in install_packed_git()
[all …]
/dports/devel/git-p4/git-2.34.1/
H A Dpack-write.c317 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
333 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
335 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
341 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
346 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
355 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
392 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
393 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c229 p->pack_fd = -1; in alloc_packed_git()
309 if (p->pack_fd < 0) in close_pack_fd()
312 close(p->pack_fd); in close_pack_fd()
314 p->pack_fd = -1; in close_pack_fd()
453 if (p->pack_fd == -1) in close_one_pack()
544 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
545 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
639 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
654 p->pack_fd, win->offset); in use_pack()
740 if (pack->pack_fd != -1) in install_packed_git()
[all …]
/dports/devel/git/git-2.34.1/
H A Dpack-write.c317 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
333 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
335 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
341 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
346 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
355 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
392 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
393 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c229 p->pack_fd = -1; in alloc_packed_git()
309 if (p->pack_fd < 0) in close_pack_fd()
312 close(p->pack_fd); in close_pack_fd()
314 p->pack_fd = -1; in close_pack_fd()
453 if (p->pack_fd == -1) in close_one_pack()
544 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
545 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
639 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
654 p->pack_fd, win->offset); in use_pack()
740 if (pack->pack_fd != -1) in install_packed_git()
[all …]
/dports/devel/git-cvs/git-2.34.1/
H A Dpack-write.c317 void fixup_pack_header_footer(int pack_fd, in fixup_pack_header_footer() argument
333 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
335 read_result = read_in_full(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
341 if (lseek(pack_fd, 0, SEEK_SET) != 0) in fixup_pack_header_footer()
346 write_or_die(pack_fd, &hdr, sizeof(hdr)); in fixup_pack_header_footer()
355 n = xread(pack_fd, buf, m); in fixup_pack_header_footer()
392 write_or_die(pack_fd, new_pack_hash, the_hash_algo->rawsz); in fixup_pack_header_footer()
393 fsync_or_die(pack_fd, pack_name); in fixup_pack_header_footer()
H A Dpackfile.c229 p->pack_fd = -1; in alloc_packed_git()
309 if (p->pack_fd < 0) in close_pack_fd()
312 close(p->pack_fd); in close_pack_fd()
314 p->pack_fd = -1; in close_pack_fd()
453 if (p->pack_fd == -1) in close_one_pack()
544 p->pack_fd = git_open(p->pack_name); in open_packed_git_1()
545 if (p->pack_fd < 0 || fstat(p->pack_fd, &st)) in open_packed_git_1()
639 if (p->pack_fd == -1 && open_packed_git(p)) in use_pack()
654 p->pack_fd, win->offset); in use_pack()
740 if (pack->pack_fd != -1) in install_packed_git()
[all …]
/dports/devel/git-cinnabar/git-cinnabar-0.5.8/helper/
H A Dfast-import.c.patch36 fixup_pack_header_footer(pack_data->pack_fd, pack_data->hash,
/dports/devel/cgit/cgit-1.2.3/git/builtin/
H A Dindex-pack.c49 int pack_fd; member
153 thread_data[i].pack_fd = open(curr_pack, O_RDONLY); in init_thread()
154 if (thread_data[i].pack_fd == -1) in init_thread()
174 close(thread_data[i].pack_fd); in cleanup_thread()
308 nothread_data.pack_fd = output_fd; in open_pack_file()
314 nothread_data.pack_fd = input_fd; in open_pack_file()
560 n = xpread(get_thread_data()->pack_fd, inbuf, n, from); in unpack_data()
/dports/devel/git-p4/git-2.34.1/builtin/
H A Dindex-pack.c91 int pack_fd; member
191 thread_data[i].pack_fd = xopen(curr_pack, O_RDONLY); in init_thread()
209 close(thread_data[i].pack_fd); in cleanup_thread()
342 nothread_data.pack_fd = output_fd; in open_pack_file()
346 nothread_data.pack_fd = input_fd; in open_pack_file()
576 n = xpread(get_thread_data()->pack_fd, inbuf, n, from); in unpack_data()
/dports/devel/git/git-2.34.1/builtin/
H A Dindex-pack.c91 int pack_fd; member
191 thread_data[i].pack_fd = xopen(curr_pack, O_RDONLY); in init_thread()
209 close(thread_data[i].pack_fd); in cleanup_thread()
342 nothread_data.pack_fd = output_fd; in open_pack_file()
346 nothread_data.pack_fd = input_fd; in open_pack_file()
576 n = xpread(get_thread_data()->pack_fd, inbuf, n, from); in unpack_data()
/dports/devel/git-gui/git-2.34.1/builtin/
H A Dindex-pack.c91 int pack_fd; member
191 thread_data[i].pack_fd = xopen(curr_pack, O_RDONLY); in init_thread()
209 close(thread_data[i].pack_fd); in cleanup_thread()
342 nothread_data.pack_fd = output_fd; in open_pack_file()
346 nothread_data.pack_fd = input_fd; in open_pack_file()
576 n = xpread(get_thread_data()->pack_fd, inbuf, n, from); in unpack_data()
H A Dfast-import.c744 int pack_fd; in start_packfile() local
746 pack_fd = odb_mkstemp(&tmp_file, "pack/tmp_pack_XXXXXX"); in start_packfile()
750 p->pack_fd = pack_fd; in start_packfile()
752 pack_file = hashfd(pack_fd, p->pack_name); in start_packfile()
828 if (lseek(p->pack_fd, 0, SEEK_SET) < 0) in loosen_small_pack()
831 unpack.in = p->pack_fd; in loosen_small_pack()
860 fixup_pack_header_footer(pack_data->pack_fd, pack_data->hash, in end_packfile()
871 close(pack_data->pack_fd); in end_packfile()
905 close(pack_data->pack_fd); in end_packfile()
/dports/devel/git-cvs/git-2.34.1/builtin/
H A Dindex-pack.c91 int pack_fd; member
191 thread_data[i].pack_fd = xopen(curr_pack, O_RDONLY); in init_thread()
209 close(thread_data[i].pack_fd); in cleanup_thread()
342 nothread_data.pack_fd = output_fd; in open_pack_file()
346 nothread_data.pack_fd = input_fd; in open_pack_file()
576 n = xpread(get_thread_data()->pack_fd, inbuf, n, from); in unpack_data()
/dports/devel/git-svn/git-2.34.1/builtin/
H A Dindex-pack.c91 int pack_fd;
191 thread_data[i].pack_fd = xopen(curr_pack, O_RDONLY);
209 close(thread_data[i].pack_fd);
342 nothread_data.pack_fd = output_fd;
346 nothread_data.pack_fd = input_fd;
576 n = xpread(get_thread_data()->pack_fd, inbuf, n, from);
H A Dfast-import.c744 int pack_fd;
746 pack_fd = odb_mkstemp(&tmp_file, "pack/tmp_pack_XXXXXX");
750 p->pack_fd = pack_fd;
752 pack_file = hashfd(pack_fd, p->pack_name);
828 if (lseek(p->pack_fd, 0, SEEK_SET) < 0)
831 unpack.in = p->pack_fd;
860 fixup_pack_header_footer(pack_data->pack_fd, pack_data->hash,
871 close(pack_data->pack_fd);
905 close(pack_data->pack_fd);
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/gitdb/
H A Dpack.py1016 pack_fd, pack_path = tempfile.mkstemp('', 'pack', base_dir)
1018 pack_write = lambda d: os.write(pack_fd, d)
1022 os.close(pack_fd)
/dports/devel/py-gitdb/gitdb-4.0.9/gitdb/
H A Dpack.py1014 pack_fd, pack_path = tempfile.mkstemp('', 'pack', base_dir)
1016 pack_write = lambda d: os.write(pack_fd, d)
1020 os.close(pack_fd)
/dports/devel/py-gitdb2/gitdb2-2.0.6/gitdb/
H A Dpack.py1016 pack_fd, pack_path = tempfile.mkstemp('', 'pack', base_dir)
1018 pack_write = lambda d: os.write(pack_fd, d)
1022 os.close(pack_fd)

123