[LTP] [RFC PATCH 1/2] lib: Add SAFE_CHROOT(path) macro
Cyril Hrubis
chrubis@suse.cz
Fri Jan 19 17:19:01 CET 2018
Hi!
> diff --git a/include/safe_macros_fn.h b/include/safe_macros_fn.h
> index 3df952811..9b11801a4 100644
> --- a/include/safe_macros_fn.h
> +++ b/include/safe_macros_fn.h
> @@ -30,6 +30,9 @@ char* safe_basename(const char *file, const int lineno,
> int safe_chdir(const char *file, const int lineno,
> void (*cleanup_fn)(void), const char *path);
>
> +int safe_chroot(const char *file, const int lineno,
> + void (*cleanup_fn)(void), const char *path);
Can we please add the safe macro only for the newlib? I.e. function
prototype into the tst_safe_macros.h and implementation into
tst_safe_macros.c?
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list