Re: [HACKERS] NULL passed as an argument to memcmp() in parse_func.c

2015-06-22 Thread Glen Knowles
It appears that, according to the standard, passing NULL to memcmp is undefined behavior, even if the count is 0. See http://stackoverflow.com/questions/16362925/can-i-pass-a-null-pointer-to-memcmp for C99 and C++ standard references. I didn't see a good reference for C89 but I find it almost impos

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

2010-12-12 Thread Glen Knowles
On Sun, Dec 12, 2010 at 8:16 AM, Tom Lane 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 St