Re: [PATCH 2/6] path: add some standard functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 03, 2017 at 01:52:57PM +0200, Ruediger Meier wrote:
> From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
> 
> Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
> ---
>  include/path.h | 15 +++++++++++++++
>  lib/path.c     | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 66 insertions(+)
> 
> diff --git a/include/path.h b/include/path.h
> index ae36d7f..30c1133 100644
> --- a/include/path.h
> +++ b/include/path.h
> @@ -3,6 +3,11 @@
>  
>  #include <stdio.h>
>  #include <stdint.h>
> +#include <dirent.h>
> +
> +/* Check your code: Absolute paths must be used with path_* functions! */
> +#define PATH_REQUIRE_RELATIVE(path) \
> +	assert( *path != '/' )

 #define assert_abs_path

or something else with "assert" :-)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux