procstat_files.c (176124) | procstat_files.c (180059) |
---|---|
1/*- 2 * Copyright (c) 2007 Robert N. M. Watson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2007 Robert N. M. Watson 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.bin/procstat/procstat_files.c 176124 2008-02-09 05:16:26Z marcus $ | 26 * $FreeBSD: head/usr.bin/procstat/procstat_files.c 180059 2008-06-27 05:39:04Z jhb $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <sys/sysctl.h> 32#include <sys/un.h> 33#include <sys/user.h> 34 --- 182 unchanged lines hidden (view full) --- 217 case KF_TYPE_MQUEUE: 218 str = "m"; 219 break; 220 221 case KF_TYPE_SHM: 222 str = "h"; 223 break; 224 | 27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <sys/sysctl.h> 32#include <sys/un.h> 33#include <sys/user.h> 34 --- 182 unchanged lines hidden (view full) --- 217 case KF_TYPE_MQUEUE: 218 str = "m"; 219 break; 220 221 case KF_TYPE_SHM: 222 str = "h"; 223 break; 224 |
225 case KF_TYPE_SEM: 226 str = "e"; 227 break; 228 |
|
225 case KF_TYPE_NONE: 226 case KF_TYPE_UNKNOWN: 227 default: 228 str = "?"; 229 break; 230 } 231 printf("%1s ", str); 232 str = "-"; --- 101 unchanged lines hidden --- | 229 case KF_TYPE_NONE: 230 case KF_TYPE_UNKNOWN: 231 default: 232 str = "?"; 233 break; 234 } 235 printf("%1s ", str); 236 str = "-"; --- 101 unchanged lines hidden --- |