summaryrefslogtreecommitdiff
path: root/test/math/test-ifloat.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/math/test-ifloat.c')
0 files changed, 0 insertions, 0 deletions
\n", k); if (k < 0) { fprintf(stderr, "semget failed: %s\n", strerror(errno)); return 1; } sd.buf = &sd_buf; r = semctl(k, 0, IPC_STAT, sd); printf("semctl(k) = %d\n", r); if (r < 0) { perror("semctl IPC_STAT failed"); return 1; } printf("sem_nsems = %lu\n", sd_buf.sem_nsems); if (sd_buf.sem_nsems != 10) { fprintf(stderr, "failed: incorrect sem_nsems!\n"); return 1; } printf("succeeded\n"); return 0; }