ipcs.c (189283) | ipcs.c (194910) |
---|---|
1/* 2 * Copyright (c) 1994 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1994 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/usr.bin/ipcs/ipcs.c 189283 2009-03-02 18:53:30Z kib $"); | 29__FBSDID("$FreeBSD: head/usr.bin/ipcs/ipcs.c 194910 2009-06-24 21:10:52Z jhb $"); |
30 31#include <sys/param.h> 32#include <sys/proc.h> 33#define _KERNEL 34#include <sys/sem.h> 35#include <sys/shm.h> 36#include <sys/msg.h> 37#undef _KERNEL --- 410 unchanged lines hidden (view full) --- 448 group_from_gid(kshmptr->u.shm_perm.cgid, 0)); 449 450 if (option & OUTSTANDING) 451 printf(" %12d", 452 kshmptr->u.shm_nattch); 453 454 if (option & BIGGEST) 455 printf(" %12zu", | 30 31#include <sys/param.h> 32#include <sys/proc.h> 33#define _KERNEL 34#include <sys/sem.h> 35#include <sys/shm.h> 36#include <sys/msg.h> 37#undef _KERNEL --- 410 unchanged lines hidden (view full) --- 448 group_from_gid(kshmptr->u.shm_perm.cgid, 0)); 449 450 if (option & OUTSTANDING) 451 printf(" %12d", 452 kshmptr->u.shm_nattch); 453 454 if (option & BIGGEST) 455 printf(" %12zu", |
456 kshmptr->shm_bsegsz); | 456 kshmptr->u.shm_segsz); |
457 458 if (option & PID) 459 printf(" %12d %12d", 460 kshmptr->u.shm_cpid, 461 kshmptr->u.shm_lpid); 462 463 if (option & TIME) 464 printf(" %s %s %s", --- 107 unchanged lines hidden --- | 457 458 if (option & PID) 459 printf(" %12d %12d", 460 kshmptr->u.shm_cpid, 461 kshmptr->u.shm_lpid); 462 463 if (option & TIME) 464 printf(" %s %s %s", --- 107 unchanged lines hidden --- |