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

than they are worth.
This commit is contained in:
Peter Wemm 2000-05-01 10:49:41 +00:00
parent 4b4a49fda5
commit 3627ad6c00
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59821

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