title: Can I resize Linux shared memory with shmctl?
body: <p>I have a C++ application that allocates shared memory on a Linux system via shmget(2).  The data that I store in the shared memory grows periodically, and I'd like to resize the shared memory in a way analogous to the way realloc() grows regular memory.  Is there a way to do this?  I found a doc on IBM's site that mentions a SHM_SIZE command, but the Linux and BSD manpages do not have it, even in the Linux-specific sections.</p>