diff options
author | peter <peter@FreeBSD.org> | 2000-05-01 10:49:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-01 10:49:41 +0000 |
commit | 2af5c3f860f0e436104d71d7068943c18c1e720c (patch) | |
tree | c28cdc913fa87bb293dea6e7c70594eb863a436e /usr.bin/ipcs | |
parent | 14185daa26ace1f11639608f6b655cf2c7cc4e27 (diff) | |
download | FreeBSD-src-2af5c3f860f0e436104d71d7068943c18c1e720c.zip FreeBSD-src-2af5c3f860f0e436104d71d7068943c18c1e720c.tar.gz |
Remove the undocumented semconfig() system calls. These cause more trouble
than they are worth.
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 3ea8a57..8fd1b47 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -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 |