mbuf.c (3b0f8d2ed641ceeded11c0d3f253b0cacbf00880) | mbuf.c (b6217683dc0269a53b799399522dbdfb5a4919cc) |
---|---|
1/* 2 * PPP Memory handling module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * | 1/* 2 * PPP Memory handling module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * |
20 * $Id: mbuf.c,v 1.13.2.5 1998/02/16 00:00:42 brian Exp $ | 20 * $Id: mbuf.c,v 1.13.2.6 1998/04/03 19:21:38 brian Exp $ |
21 * 22 */ 23#include <sys/param.h> 24#include <netinet/in.h> 25 26#include <stdio.h> 27#include <stdlib.h> 28#include <string.h> --- 124 unchanged lines hidden (view full) --- 153 154int 155ShowMemMap(struct cmdargs const *arg) 156{ 157 /* Watch it - ~m calls us with arg == NULL */ 158 int i; 159 160 for (i = 0; i <= MB_MAX; i += 2) | 21 * 22 */ 23#include <sys/param.h> 24#include <netinet/in.h> 25 26#include <stdio.h> 27#include <stdlib.h> 28#include <string.h> --- 124 unchanged lines hidden (view full) --- 153 154int 155ShowMemMap(struct cmdargs const *arg) 156{ 157 /* Watch it - ~m calls us with arg == NULL */ 158 int i; 159 160 for (i = 0; i <= MB_MAX; i += 2) |
161 prompt_Printf(&prompt, "%d: %d %d: %d\n", | 161 prompt_Printf(arg->prompt, "%d: %d %d: %d\n", |
162 i, MemMap[i].count, i + 1, MemMap[i + 1].count); 163 164 return 0; 165} 166 167void 168LogMemory() 169{ --- 38 unchanged lines hidden --- | 162 i, MemMap[i].count, i + 1, MemMap[i + 1].count); 163 164 return 0; 165} 166 167void 168LogMemory() 169{ --- 38 unchanged lines hidden --- |