Help - Search - Members - Calendar
Full Version: Shm_open In Mandrake Linux 10.0
Linuxhelp > Support > Programming in Linux
chrisliu
Hi all,

I wrote to simple program to set up a shared memory in Mandrake Linux 10.0. Below is my simple program:

#define SHM_AREA_NAME "/shmarea"
#define MYSHMSIZE 1048576
#define SHM_NAME "/dblinks.shm"

main( )
{
int shm_descr;
int status;

/* Create a shared memory area */
shm_descr = shm_open( SHM_AREA_NAME, O_CREAT|O_RDWR, S_IRWXU);
perror( NULL );

}

I was able to compile and link the program without any problem. However, I got the following message at run-time as a return value from shm_open.

"Function not implemented"

Any help is appreciated

--Christopher
DS2K3
Right, I know nothing but very basic C, but do you need to include the header file which implements shm_open?

D
chrisliu
Yes, I have included all the related header files. Dunno why it's not working sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.