Blob


1 /*
2 * Copyright (c) 2022 Stefan Sperling <stsp@openbsd.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
17 #include <sys/types.h>
18 #include <sys/time.h>
19 #include <sys/queue.h>
20 #include <sys/tree.h>
21 #include <sys/uio.h>
23 #include <sha1.h>
24 #include <sha2.h>
25 #include <stdint.h>
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <imsg.h>
29 #include <limits.h>
31 #include "got_error.h"
32 #include "got_object.h"
33 #include "got_path.h"
35 #include "got_lib_delta.h"
36 #include "got_lib_object.h"
37 #include "got_lib_object_cache.h"
38 #include "got_lib_pack.h"
39 #include "got_lib_repository.h"
40 #include "got_lib_privsep.h"
42 const struct got_error *
43 got_privsep_send_stop(int fd)
44 {
45 return got_error(GOT_ERR_NOT_IMPL);
46 }
48 const struct got_error *
49 got_privsep_wait_for_child(pid_t pid)
50 {
51 return got_error(GOT_ERR_NOT_IMPL);
52 }
54 void
55 got_privsep_exec_child(int imsg_fds[2], const char *path, const char *repo_path)
56 {
57 fprintf(stderr, "%s: cannot run libexec helpers\n", getprogname());
58 exit(1);
59 }
61 const struct got_error *
62 got_privsep_init_pack_child(struct imsgbuf *ibuf, struct got_pack *pack,
63 struct got_packidx *packidx)
64 {
65 return got_error(GOT_ERR_NOT_IMPL);
66 }
68 const struct got_error *
69 got_traverse_packed_commits(struct got_object_id_queue *traversed_commits,
70 struct got_object_id *commit_id, const char *path,
71 struct got_repository *repo)
72 {
73 return NULL;
74 }