mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Remove the undocumented semconfig() system calls. These cause more trouble
than they are worth.
This commit is contained in:
parent
4b4a49fda5
commit
3627ad6c00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59821
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user