commit - d348087d319f40c9237d272e23cd12fdec5bd123
commit + a777fdc0851febbdbbe01ccb788c7856c119c4f4
blob - c6df6ebc501bda287c7350222f5e4ccf706763bf
blob + c3aa573d4997a2dc0cb67ccb37e2059a36d82e87
--- lib/got_lib_pack.h
+++ lib/got_lib_pack.h
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+struct got_pack_privsep_child {
+ int imsg_fd;
+ pid_t pid;
+ struct imsgbuf *ibuf;
+};
+
/* An open pack file. */
struct got_pack {
char *path_packfile;
int fd;
uint8_t *map;
size_t filesize;
- struct got_privsep_child *privsep_child;
+ struct got_pack_privsep_child *privsep_child;
int basefd;
int accumfd;
int child_has_tempfiles;
blob - 83e7c1339c1b5f78266924cf2f94e4a9cfcae8da
blob + 5cf1527ffe0a87f0230d30e38679be072e8923e0
--- lib/got_lib_privsep.h
+++ lib/got_lib_privsep.h
GOT_STRINGVAL(GOT_LIBEXECDIR) "/" GOT_STRINGVAL(GOT_PROG_SEND_PACK)
#define GOT_PATH_PROG_INDEX_PACK \
GOT_STRINGVAL(GOT_LIBEXECDIR) "/" GOT_STRINGVAL(GOT_PROG_INDEX_PACK)
-
-struct got_privsep_child {
- int imsg_fd;
- pid_t pid;
- struct imsgbuf *ibuf;
-};
enum got_imsg_type {
/* An error occured while processing a request. */
blob - 4015e1cdcca8f6de5990a90e32e88c4004495348
blob + 3e9ad2f8e37f7198f75a99a817a5549bc8daf4f1
--- lib/got_lib_repository.h
+++ lib/got_lib_repository.h
return got_path_cmp(f1->path, f2->path, f1->path_len, f2->path_len);
}
+struct got_repo_privsep_child {
+ int imsg_fd;
+ pid_t pid;
+ struct imsgbuf *ibuf;
+};
+
struct got_repository {
char *path;
char *path_git_dir;
int pinned_packidx;
/* Handles to child processes for reading loose objects. */
- struct got_privsep_child privsep_children[5];
+ struct got_repo_privsep_child privsep_children[5];
#define GOT_REPO_PRIVSEP_CHILD_OBJECT 0
#define GOT_REPO_PRIVSEP_CHILD_COMMIT 1
#define GOT_REPO_PRIVSEP_CHILD_TREE 2