HomeSort by relevance Sort by last modified time
    Searched refs:shmptr (Results 1 - 7 of 7) sorted by null

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
9-1.c 48 static int *shmptr; variable
76 (*shmptr) = param.sched_priority;
79 if ((*shmptr) == mean_prio)
135 shmptr = shmat(shm_id, 0, 0);
136 if (shmptr == (void *)-1) {
140 *shmptr = 0;
184 oldcount = *shmptr;
190 newcount = *shmptr;
  /external/ltp/testcases/kernel/ipc/ipc_stress/
shmem_test_01.c 114 char *shmptr, /* Shared memory segment address */ local
135 if ((shmptr = shmat(shmid, 0, 0)) < 0)
139 for (ptr = shmptr; ptr < (shmptr + shmem_size); ptr++)
shmem_test_06.c 144 char *shmptr[MAX_SHMEM_NUMBER]; /* Shared memory segment address */ local
186 if ((long)(shmptr[i] = shmat(shmid[i], NULL, 0)) == -1) {
194 (long)shmptr[i]);
198 printf("\n\tShared memory segment address : %p \n", shmptr[i]);
206 for (ptr = shmptr[i]; ptr < (shmptr[i] + shmem_size); ptr++)
218 shmdt(shmptr[i]);
shmem_test_05.c 158 char *shmptr[MAX_SHMEM_NUMBER]; /* Shared memory segment address */ local
217 if ((shmptr[i] =
222 if ((shmptr[i] = (char *)shmat(shmid[i], 0, 0)) == (char *)-1)
232 for (ptr = shmptr[i]; ptr < (shmptr[i] + shmem_size); ptr++)
246 shmdt(shmptr[i]);
shmem_test_02.c 150 unsigned char *shmptr, /* Shared memory segment address */ local
187 if ((shmptr = mmap(0, buffer_size, PROT_READ | PROT_WRITE,
200 for (ptr = shmptr; ptr < (shmptr + buffer_size); ptr++) {
211 child(i, shmptr);
240 static void child(int num, unsigned char *shmptr)
247 cksum += *shmptr++;
shmem_test_03.c 165 unsigned char *shmptr; /* Shared memory segment address */ local
229 if ((shmptr = mmap(0, buffer_size, PROT_READ | PROT_WRITE,
251 child(i, shmptr);
266 for (ptr = shmptr; ptr < (shmptr + buffer_size); ptr++) {
313 static void child(int num, unsigned char *shmptr)
329 cksum += *shmptr++;
shmem_test_07.c 212 unsigned char *shmptr[MAX_WRITER_NUMBER]; /* Shared memory segment address */ variable
316 sys_error("shmptr shmget failed", __LINE__);
318 if ((long)(shmptr[i] = shmat(shmid[j], 0, 0)) == -1)
376 * the "scratch" shared memory segment (shmptr) up with data and
387 * the checksum of the shared memory segment (shmptr) and will store
470 for (ptr = shmptr[num_w]; ptr < (shmptr[num_w] + buffer_size); ptr++) {
519 ptr = shmptr[num_w];
655 sys_error("shmptr shmctl failed", __LINE__);

Completed in 76 milliseconds