Re: HEADS UP: Win32/OS2/BeOS native ports
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Igor Kovalenko" <Igor.Kovalenko@motorola.com>
Cc: "mlw" <markw@mohawksoft.com>, "Marc G. Fournier" <scrappy@hub.org>, pgsql-hackers@postgresql.org
Date: 2002-05-04T00:05:39Z
Lists: pgsql-hackers
"Igor Kovalenko" <Igor.Kovalenko@motorola.com> writes: > It does not have to be anonymous. POSIX also defines shm_open(same arguments > as open) API which will create named object in whatever location corresponds > to shared memory storage on that platform (object is then grown to needed > size by ftruncate() and the fd is then passed to mmap). The object will > exist in name space and can be detected by subsequent calls to shm_open() > with same name. It is not really different from doing open(), but more > portable (mmap() on regular files may not be supported). Yes, but can you detect whether other processes have the same file open? regards, tom lane