diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-15 09:55:59 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-15 09:55:59 +0000 |
commit | 783e86e99e0924be333e11330c40137ea8c44822 (patch) | |
tree | 29dd8879e849b7d48c62aa01d238cef50c502279 /usr.bin/ipcs | |
parent | 59438faa4f3256f5f366795ac7977f9113626afc (diff) | |
download | FreeBSD-src-783e86e99e0924be333e11330c40137ea8c44822.zip FreeBSD-src-783e86e99e0924be333e11330c40137ea8c44822.tar.gz |
Add rcsid, Remove unused vars.
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.1 | 10 | ||||
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 21 |
2 files changed, 16 insertions, 15 deletions
diff --git a/usr.bin/ipcs/ipcs.1 b/usr.bin/ipcs/ipcs.1 index c0e53cb..ae173a2 100644 --- a/usr.bin/ipcs/ipcs.1 +++ b/usr.bin/ipcs/ipcs.1 @@ -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 diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 28db9b0..5eee8b1 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -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); |