Skip site navigation (1) Skip section navigation (2)

Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Garrett Wollman <wollman(at)khavrinen(dot)lcs(dot)mit(dot)edu>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Date: 2001-08-18 04:08:08
Message-ID: 200108180408.f7I488D25604@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
> There are some funky alignment macros that you probably need to use on
> BSD/OS.  Also, as written this will break on NetBSD and OpenBSD for
> reasons I have already noted (the structure is named something
> different there), and those systems will also require the alignment
> macros.  (Basically, putting the two structures in another larger
> structure is a shortcut in my implementation which only works because
> the compiler puts the right amount of padding in; on those other
> systems, more padding is required.)

OK, here is an even better version.  It handles the lack of alignment in
the the structure passing.  This works on BSD/OS and should work on
FreeBSD too.

I will apply it in a day or so unless someone finds a problem.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Responses

pgsql-patches by date

Next:From: Tatsuo IshiiDate: 2001-08-18 06:46:36
Subject: Re: encoding names
Previous:From: Serguei MokhovDate: 2001-08-18 03:02:06
Subject: Re: encoding names

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group