The official compiler on AIX these days is xlc for C, xlC for C++.
gcc is supported but only if you go get the ****er yourself.
gcc is supported but only if you go get the ****er yourself.


.
main ()
{
struct sembuf sbuf;
int semid;
semid = semget(KEY, 1, IPC_CREAT | IPC_EXCL | 0777);
printf("semid = %d\n", semid);
semctl(semid, 0, SETVAL, 0);
semctl(semid, 0, IPC_RMID);
puts("destroyed semid");
}
main ()
{
struct sembuf sbuf;
int semid;
int r;
semid = semget(KEY, 1, IPC_CREAT | IPC_EXCL | 0777);
printf("semid = %d\n", semid);
r = semctl(semid, 0, SETVAL, 0);
printf("initialized semid = %d\n", r);
semctl(semid, 0, IPC_RMID);
puts("destroyed semid");
}
==13830== Syscall param semctl(arg) points to uninitialised byte(s) ==13830== at 0xB8AA08: semctl@@GLIBC_2.2 (in /lib/tls/libc-2.3.4.so) ==13830== by 0x804849E: main (in /home/a0132838/play/semtest) ==13830== Address 0xBEE123D4 is on thread 1's stack
Comment