unix.c (50477) | unix.c (70524) |
---|---|
1/*- 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)unix.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = | 1/*- 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)unix.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/usr.bin/netstat/unix.c 50477 1999-08-28 01:08:13Z peter $"; | 39 "$FreeBSD: head/usr.bin/netstat/unix.c 70524 2000-12-30 21:22:54Z phk $"; |
40#endif /* not lint */ 41 42/* 43 * Display protocol blocks in the unix domain. 44 */ 45#include <sys/param.h> 46#include <sys/queue.h> 47#include <sys/protosw.h> --- 99 unchanged lines hidden (view full) --- 147 "Address", "Type", "Recv-Q", "Send-Q", 148 "Inode", "Conn", "Refs", "Nextref"); 149 first = 0; 150 } 151 printf("%8lx %-6.6s %6ld %6ld %8lx %8lx %8lx %8lx", 152 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc, 153 so->so_snd.sb_cc, 154 (long)unp->unp_vnode, (long)unp->unp_conn, | 40#endif /* not lint */ 41 42/* 43 * Display protocol blocks in the unix domain. 44 */ 45#include <sys/param.h> 46#include <sys/queue.h> 47#include <sys/protosw.h> --- 99 unchanged lines hidden (view full) --- 147 "Address", "Type", "Recv-Q", "Send-Q", 148 "Inode", "Conn", "Refs", "Nextref"); 149 first = 0; 150 } 151 printf("%8lx %-6.6s %6ld %6ld %8lx %8lx %8lx %8lx", 152 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc, 153 so->so_snd.sb_cc, 154 (long)unp->unp_vnode, (long)unp->unp_conn, |
155 (long)unp->unp_refs.lh_first, (long)unp->unp_reflink.le_next); | 155 (long)LIST_FIRST(&unp->unp_refs), (long)LIST_NEXT(unp, unp_reflink)); |
156 if (sa) 157 printf(" %.*s", 158 (int)(sa->sun_len - offsetof(struct sockaddr_un, sun_path)), 159 sa->sun_path); 160 putchar('\n'); 161} | 156 if (sa) 157 printf(" %.*s", 158 (int)(sa->sun_len - offsetof(struct sockaddr_un, sun_path)), 159 sa->sun_path); 160 putchar('\n'); 161} |