tests: fix IPC test set fix
Partial rollback of git-df39752.
This commit is contained in:
parent
420dfe1145
commit
52cf951fdc
6 changed files with 8 additions and 8 deletions
|
@ -59,7 +59,7 @@ int main(void)
|
||||||
|
|
||||||
|
|
||||||
/* are we doing with ia64 or arm_arch_4t arch */
|
/* are we doing with ia64 or arm_arch_4t arch */
|
||||||
#if defined (__ia64__) || defined (__ARM_ARCH_4T__) || defined(__minix)
|
#if defined (__ia64__) || defined (__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, (void *)0x80000, 0);
|
cp = (char *) shmat(shmid, (void *)0x80000, 0);
|
||||||
|
|
|
@ -81,7 +81,7 @@ int main(void)
|
||||||
|
|
||||||
|
|
||||||
/* are we doing with ia64 or arm_arch_4t arch */
|
/* are we doing with ia64 or arm_arch_4t arch */
|
||||||
#if defined (__ia64__) || defined (__ARM_ARCH_4T__) || defined(__minix)
|
#if defined (__ia64__) || defined (__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, (void *)0x80000, 0);
|
cp = (char *) shmat(shmid, (void *)0x80000, 0);
|
||||||
|
|
|
@ -109,7 +109,7 @@ if ((shmid = shmget(key, SIZE, IPC_CREAT|0666)) < 0 ) {
|
||||||
else {
|
else {
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR1, 0);
|
cp = (char *) shmat(shmid, ADDR1, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, NULL, 0);
|
cp = (char *) shmat(shmid, NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, ADDR, 0);
|
cp = (char *) shmat(shmid, ADDR, 0);
|
||||||
|
@ -187,7 +187,7 @@ else
|
||||||
{
|
{
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR1, 0);
|
cp = (char *) shmat(shmid, ADDR1, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, NULL, 0);
|
cp = (char *) shmat(shmid, NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, ADDR, 0);
|
cp = (char *) shmat(shmid, ADDR, 0);
|
||||||
|
|
|
@ -88,7 +88,7 @@ int main(void)
|
||||||
} else {
|
} else {
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
cp = (char *) shmat(shmid, (void *)NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, ADDR, 0);
|
cp = (char *) shmat(shmid, ADDR, 0);
|
||||||
|
|
|
@ -109,7 +109,7 @@ int main(void)
|
||||||
else {
|
else {
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void*) NULL, 0);
|
cp = (char *) shmat(shmid, (void*) NULL, 0);
|
||||||
#elif defined(__mips__)
|
#elif defined(__mips__)
|
||||||
cp = (char *) shmat(shmid, ADDR_MIPS, 0);
|
cp = (char *) shmat(shmid, ADDR_MIPS, 0);
|
||||||
|
@ -185,7 +185,7 @@ int child(void)
|
||||||
else {
|
else {
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR1_IA, 0);
|
cp = (char *) shmat(shmid, ADDR1_IA, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void *) NULL, 0);
|
cp = (char *) shmat(shmid, (void *) NULL, 0);
|
||||||
#elif defined(__mips__)
|
#elif defined(__mips__)
|
||||||
cp = (char *) shmat(shmid, ADDR1_MIPS, 0);
|
cp = (char *) shmat(shmid, ADDR1_MIPS, 0);
|
||||||
|
|
|
@ -84,7 +84,7 @@ int main(void)
|
||||||
|
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
cp = (char *) shmat(shmid, ADDR_IA, 0);
|
||||||
#elif defined(__ARM_ARCH_4T__) || defined(__minix)
|
#elif defined(__ARM_ARCH_4T__)
|
||||||
cp = (char *) shmat(shmid, (void *) NULL, 0);
|
cp = (char *) shmat(shmid, (void *) NULL, 0);
|
||||||
#else
|
#else
|
||||||
cp = (char *) shmat(shmid, ADDR, 0);
|
cp = (char *) shmat(shmid, ADDR, 0);
|
||||||
|
|
Loading…
Reference in a new issue