Remove the undocumented semconfig() system calls. These cause more trouble

than they are worth.
This commit is contained in:
peter 2000-05-01 10:49:41 +00:00
parent 14185daa26
commit 2af5c3f860

View File

@ -56,7 +56,6 @@ struct msqid_ds *msqids;
struct shminfo shminfo;
struct shmid_ds *shmsegs;
int semconfig __P((int,...));
void usage __P((void));
static struct nlist symbols[] = {
@ -420,11 +419,6 @@ main(argc, argv)
seminfo.semaem);
}
if (display & SEMINFO) {
if (semconfig(SEM_CONFIG_FREEZE) != 0) {
perror("semconfig");
fprintf(stderr,
"Can't lock semaphore facility - winging it...\n");
}
kvm_read(kd, symbols[X_SEMA].n_value, &sema, sizeof(sema));
xsema = malloc(sizeof(struct semid_ds) * seminfo.semmni);
kvm_read(kd, (u_long) sema, xsema, sizeof(struct semid_ds) * seminfo.semmni);
@ -471,8 +465,6 @@ main(argc, argv)
}
}
(void) semconfig(SEM_CONFIG_THAW);
printf("\n");
}
} else