Lines Matching refs:addr
140 char *addr; /* address of shared memory segment */
166 addr = PR_AttachSharedMemory( shm , 0 );
167 if ( NULL == addr )
175 ( "nameshm1: RW Attach: success: %p", addr ));
180 *(addr + i) = i;
183 rc = PR_DetachSharedMemory( shm, addr );
306 PRUint32 *addr;
330 addr = PR_AttachSharedMemory( shm , 0 );
331 if ( NULL == addr )
340 ( "nameshm1: DoClient(): Attach: success: %p", addr ));
343 ( "Client found: %s", addr));
351 (*addr)++;
352 PR_ASSERT( (*addr % 2) == 0 );
355 ( "nameshm1: Client ping: %d, i: %d", *addr, i));
367 rc = PR_DetachSharedMemory( shm, addr );
401 PRUint32 *addr;
430 addr = PR_AttachSharedMemory( shm , 0 );
431 if ( NULL == addr )
439 ( "nameshm1: Server: Attach: success: %p", addr ));
447 strcpy( (char*)addr, "FooBar" );
462 *addr = 1;
468 (*addr)++;
469 PR_ASSERT( (*addr % 2) == 1 );
472 ( "nameshm1: Server pong: %d, i: %d", *addr, i));
494 rc = PR_DetachSharedMemory( shm, addr );