mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
Add rcsid, Remove unused vars.
This commit is contained in:
parent
1a6abc0f27
commit
00bbaadcfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27421
@ -27,7 +27,7 @@
|
||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $Id: ipcs.1,v 1.5 1997/02/22 19:55:15 peter Exp $
|
||||
.\" $Id: ipcs.1,v 1.6 1997/05/04 20:17:54 eivind Exp $
|
||||
.\"
|
||||
.Dd June 18, 1994
|
||||
.Dt "IPCS" 1
|
||||
@ -36,13 +36,13 @@
|
||||
.Nm ipcs
|
||||
.Nd report System V interprocess communication facilities status
|
||||
.Sh SYNOPSIS
|
||||
.Nm ipcs
|
||||
.Nm
|
||||
.Op Fl abcmopqstMQST
|
||||
.Op Fl C Ar system
|
||||
.Op Fl N Ar core
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm ipcs
|
||||
.Nm
|
||||
program provides information on System V interprocess communication
|
||||
(IPC) facilities on the system.
|
||||
.Pp
|
||||
@ -128,9 +128,9 @@ options are specified, information about all active IPC facilities is
|
||||
listed.
|
||||
.Sh RESTRICTIONS
|
||||
System data structures may change while
|
||||
.Nm ipcs
|
||||
.Nm
|
||||
is running; the output of
|
||||
.Nm ipcs
|
||||
.Nm
|
||||
is not guaranteed to be consistent.
|
||||
.Sh BUGS
|
||||
This manual page is woefully incomplete, because it does not
|
||||
|
@ -23,18 +23,21 @@
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ipcs.c,v 1.8 1997/02/22 19:55:18 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
#include <fcntl.h>
|
||||
#include <kvm.h>
|
||||
#include <nlist.h>
|
||||
#include <paths.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <paths.h>
|
||||
#include <nlist.h>
|
||||
#include <kvm.h>
|
||||
#include <err.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -200,7 +203,7 @@ main(argc, argv)
|
||||
case 0:
|
||||
break;
|
||||
case -1:
|
||||
errx(1, "unable to read kernel symbol table.");
|
||||
errx(1, "unable to read kernel symbol table");
|
||||
default:
|
||||
#ifdef notdef /* they'll be told more civilly later */
|
||||
warnx("nlist failed");
|
||||
@ -439,8 +442,6 @@ main(argc, argv)
|
||||
if ((xsema[i].sem_perm.mode & SEM_ALLOC) != 0) {
|
||||
char ctime_buf[100], otime_buf[100];
|
||||
struct semid_ds *semaptr = &xsema[i];
|
||||
int j, value;
|
||||
union semun junk;
|
||||
|
||||
cvt_time(semaptr->sem_otime, otime_buf);
|
||||
cvt_time(semaptr->sem_ctime, ctime_buf);
|
||||
|
Loading…
Reference in New Issue
Block a user