Re: Posix Shared Memory Support?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/5/2007 6:25 PM, Richard Lynch wrote:

<snip>

The User Contributed Notes (*always* read those!) make it clear that
shmod is NOT Sys V.

It looks like it's not POSIX either, but I could be reading too much
into it...

Seems more similar to POSIX than Sys V, from my limited
experience^H^H^H^H^H^H^H^H^H^H reading. :-)

It's possible that "name" was changed to "key" just to be more
consistent with the SysV stuff as a migration.

Ok, I just downloaded the source and looked at it. shmop is definitely using the System V Shared Memory interface. The user contributed notes say it differs from sysvshm. I take that to mean PHP's sysvshm module.

shmop uses shmget, shmctl, and shmat which are the System V shm functions (need to use ipcs and ipcrm to manage them). Posix shared memory uses shm_open(), mmap(), and shm_unlink().

Guess I'll take the source for shmop and make posixshm and contribute it back to PHP. Unless someone else has already done it.

Thanks for checking into this for me. Gotta love open source, when in doubt read the source. :-)

--
David George
Hark Technologies
http://harktech.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux