Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ipcs Update for changes to SVID IPC data structures.



details:   https://anonhg.NetBSD.org/src/rev/4ea0154d194e
branches:  trunk
changeset: 475771:4ea0154d194e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 25 05:11:51 1999 +0000

description:
Update for changes to SVID IPC data structures.

diffstat:

 usr.bin/ipcs/ipcs.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 3469a2e3d7aa -r 4ea0154d194e usr.bin/ipcs/ipcs.c
--- a/usr.bin/ipcs/ipcs.c       Wed Aug 25 05:09:27 1999 +0000
+++ b/usr.bin/ipcs/ipcs.c       Wed Aug 25 05:11:51 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipcs.c,v 1.17 1998/07/06 10:16:40 mrg Exp $    */
+/*     $NetBSD: ipcs.c,v 1.18 1999/08/25 05:11:51 thorpej Exp $        */
 
 /*
  * Copyright (c) 1994 SigmaSoft, Th. Lockert <tholo%sigmasoft.com@localhost>
@@ -298,7 +298,7 @@
 
                                        printf("q %6d %10ld %s %8s %8s",
                                            IXSEQ_TO_IPCID(i, msqptr->msg_perm),
-                                           (long)msqptr->msg_perm.key,
+                                           (long)msqptr->msg_perm._key,
                                            fmt_perm(msqptr->msg_perm.mode),
                                            user_from_uid(msqptr->msg_perm.uid, 0),
                                            group_from_gid(msqptr->msg_perm.gid, 0));
@@ -310,7 +310,7 @@
 
                                        if (option & OUTSTANDING)
                                                printf(" %6ld %6ld",
-                                                   (long)msqptr->msg_cbytes,
+                                                   (long)msqptr->_msg_cbytes,
                                                    (long)msqptr->msg_qnum);
 
                                        if (option & BIGGEST)
@@ -400,7 +400,7 @@
 
                                        printf("m %6d %10ld %s %8s %8s",
                                            IXSEQ_TO_IPCID(i, shmptr->shm_perm),
-                                           (long)shmptr->shm_perm.key,
+                                           (long)shmptr->shm_perm._key,
                                            fmt_perm(shmptr->shm_perm.mode),
                                            user_from_uid(shmptr->shm_perm.uid, 0),
                                            group_from_gid(shmptr->shm_perm.gid, 0));
@@ -415,8 +415,8 @@
                                                    shmptr->shm_nattch);
 
                                        if (option & BIGGEST)
-                                               printf(" %6d",
-                                                   shmptr->shm_segsz);
+                                               printf(" %6lu",
+                                                   (u_long)shmptr->shm_segsz);
 
                                        if (option & PID)
                                                printf(" %6d %6d",
@@ -508,7 +508,7 @@
 
                                        printf("s %6d %10ld %s %8s %8s",
                                            IXSEQ_TO_IPCID(i, semaptr->sem_perm),
-                                           (long)semaptr->sem_perm.key,
+                                           (long)semaptr->sem_perm._key,
                                            fmt_perm(semaptr->sem_perm.mode),
                                            user_from_uid(semaptr->sem_perm.uid, 0),
                                            group_from_gid(semaptr->sem_perm.gid, 0));



Home | Main Index | Thread Index | Old Index