Re: PATCH - add S_IRGRP etc to stat.h

Earnie Boyd <earnie_boyd-/[email protected]>
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
Hey Danny Smith,

What's your opinion on this patch?

I first thought that no it shouldn't go but then I went looking for
S_IXUSR and that's not MS standard either, only there for portability. 
Given that, I think we should accept this patch.  I also think we need
to wrap them all in a filter guard to not define them if the guard is
defined just for the "minimalists".

Earnie.

Daniel Glassey wrote:
> 
> This patch is to include/sys/stat.h in mingw-runtime 2.0
> 
> It is would be very useful for it being in for building AbiWord with
> mingw (the alternative is to patch the AbiWord source)
> 
> Regards,
> Daniel
> 
>   ------------------------------------------------------------------------
> --- stat.h      Thu Jun 13 11:47:25 2002
> +++ stat2.h     Thu Jun 13 11:47:10 2002
> @@ -60,6 +60,9 @@
>  #define        _S_IXUSR        _S_IEXEC
>  #define        _S_IWUSR        _S_IWRITE
>  #define        _S_IRUSR        _S_IREAD
> +#define        _S_IXGRP        _S_IEXEC
> +#define        _S_IWGRP        _S_IWRITE
> +#define        _S_IRGRP        _S_IREAD
> 
>  #define        _S_ISDIR(m)     (((m) & _S_IFMT) == _S_IFDIR)
>  #define        _S_ISFIFO(m)    (((m) & _S_IFMT) == _S_IFIFO)
> @@ -82,6 +85,9 @@
>  #define        S_IXUSR         _S_IXUSR
>  #define        S_IWUSR         _S_IWUSR
>  #define        S_IRUSR         _S_IRUSR
> +#define        S_IXGRP         _S_IXGRP
> +#define        S_IWGRP         _S_IWGRP
> +#define        S_IRGRP         _S_IRGRP
> 
>  #define        S_ISDIR(m)      (((m) & S_IFMT) == S_IFDIR)
>  #define        S_ISFIFO(m)     (((m) & S_IFMT) == S_IFIFO)

_______________________________________________________________

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.