[ixp1200] Shared memory on IXP:

Ashley Thomas athomas at cc.gatech.edu
Wed Mar 20 00:43:26 EST 2002


hi all,

Has anyone used shared memory on IXP ?

We tried a simple program which ran fine on ilab m/c 
but gave this error on ixp (after X-compilation of course with
mbig-endian) 

Failed:: Invalid argument

this was the program:

#include <stdio.h>
#include <sys/shm.h>
#include <sys/stat.h>

main()
{

int segment_id;
char * shared_memory;
int segment_size;
const int shared_segment_size = 0x6400;

if( (segment_id = shmget(1234,shared_segment_size,IPC_CREAT |
IPC_EXCL|S_IRUSR|S_IWUSR) ) < 0)
{
        perror("Failed:");
        exit(0);
}
printf("Id - %d\n",segment_id);

shmctl(segment_id,IPC_RMID,0);
}

-ashley

					
			-Ashley Thomas (athomas at cc.gatech.edu)




More information about the ixp1200 mailing list