Add a global rootfd to allow replacing lots of string manipulation on pkg_rootdir by some simple fd manipulations
modified libpkg/pkg.h.in
@@ -716,7 +716,7 @@ int pkg_set_from_fileat(int fd, struct pkg *pkg, pkg_attr attr, const char *file
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -66,6 +66,7 @@ int eventpipe = -1;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -830,6 +831,10 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1364,10 +1369,19 @@ pkg_set_debug_level(int64_t new_debug_level) {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
|
modified libpkg/private/pkg.h
@@ -209,6 +209,7 @@ extern int eventpipe;
|
|
|
|
|
|
| + | |
|
|
|
|
|