Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Glen Knowles <gknowles(at)ieee(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Use symbolic names not octal constants for file permission flags
Date: 2010-12-13 16:37:57
Message-ID: 4D064BE5.4050201@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 12/13/2010 12:54 AM, Glen Knowles wrote:
> On Sun, Dec 12, 2010 at 8:16 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us
> <mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>> wrote:
>
> > What are the values of _S_IREAD and _S_IWRITE, anyway? I'm still
> > wondering how come the previous coding with hardwired constants
> > behaved correctly.
>
> Still curious about this.
>
> FWIW, _S_IREAD and _S_IWRITE are defined by Visual Studio C++ 2008 in
> sys/stat.h as 0x0100 and 0x0080 respectively.
>
>

Mingw values are the same.

cheers

andrew

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-12-13 17:35:28 pgsql: Generalize concept of temporary relations to "relation persisten
Previous Message Simon Riggs 2010-12-13 15:20:36 Re: pgsql: Self review of previous patch. Fix assumption that xmax >= xmin.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-12-13 17:01:10 Re: Complier warnings on mingw gcc 4.5.0
Previous Message Hitoshi Harada 2010-12-13 16:33:28 Re: SQL/MED - core functionality