[DTrace-devel] [PATCH 04/10] subr: tiny header tweak

Kris Van Hees kris.van.hees at oracle.com
Tue Aug 22 17:38:43 UTC 2023


On Wed, Aug 02, 2023 at 02:26:54PM +0100, Nick Alcock via DTrace-devel wrote:
> I hunted down inclusions of <libgen.h> that weren't needed. Most were in
> code I was touching anyway, but this one was independent.
> 
> Signed-off-by: Nick Alcock <nick.alcock at oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>

... though it would be nice if you mentioned what that include file is for and
why it is not needed (because it is actually a pretty obscure thing), i.e. the
POSIX vs GNU version of basename() and the reason it is not needed here is that
this file doesn't even use basename() so it is irrelevant.

> ---
>  libdtrace/dt_subr.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libdtrace/dt_subr.c b/libdtrace/dt_subr.c
> index 300c1a8d7b0c..a7b56afd5903 100644
> --- a/libdtrace/dt_subr.c
> +++ b/libdtrace/dt_subr.c
> @@ -18,7 +18,6 @@
>  #include <ctype.h>
>  #include <alloca.h>
>  #include <assert.h>
> -#include <libgen.h>
>  #include <limits.h>
>  #include <sys/ioctl.h>
>  #include <port.h>
> -- 
> 2.41.0.270.g68fa1d84b5
> 
> 



More information about the DTrace-devel mailing list