[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 4/6] android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.c
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2012-06-10 12:21:07
Message-ID: 201206101421.07808.vda.linux () googlemail ! com
[Download RAW message or body]
On Sunday 03 June 2012 16:43, Tias Guns wrote:
> patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)'
> https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox
>
> Signed-off-by: Tias Guns <tias@ulyssis.org>
> ---
> coreutils/stat.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/coreutils/stat.c b/coreutils/stat.c
> index 2797719..3fb212f 100644
> --- a/coreutils/stat.c
> +++ b/coreutils/stat.c
> @@ -99,9 +99,15 @@ static const char *file_type(const struct stat *st)
> if (S_ISFIFO(st->st_mode)) return "fifo";
> if (S_ISLNK(st->st_mode)) return "symbolic link";
> if (S_ISSOCK(st->st_mode)) return "socket";
> +#ifdef S_TYPEISMQ
> if (S_TYPEISMQ(st)) return "message queue";
> +#endif
> +#ifdef S_TYPEISSEM
> if (S_TYPEISSEM(st)) return "semaphore";
> +#endif
> +#ifdef S_TYPEISSHM
> if (S_TYPEISSHM(st)) return "shared memory object";
> +#endif
> #ifdef S_TYPEISTMO
> if (S_TYPEISTMO(st)) return "typed memory object";
> #endif
Applied, thanks!
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic