main.c (36789) | main.c (37455) |
---|---|
1/*- 2 * Copyright (c) 1980, 1992, 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 --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = | 1/*- 2 * Copyright (c) 1980, 1992, 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 --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = |
45 "$Id: main.c,v 1.7 1997/08/26 10:59:26 charnier Exp $"; | 45 "$Id: main.c,v 1.8 1998/06/09 04:17:19 imp Exp $"; |
46#endif /* not lint */ 47 48#include <sys/param.h> 49 50#include <err.h> 51#include <locale.h> 52#include <nlist.h> 53#include <signal.h> --- 83 unchanged lines hidden (view full) --- 137 } 138 if (kvm_nlist(kd, namelist)) { 139 nlisterr(namelist); 140 exit(1); 141 } 142 if (namelist[X_FIRST].n_type == 0) 143 errx(1, "couldn't read namelist"); 144 gethostname(hostname, sizeof (hostname)); | 46#endif /* not lint */ 47 48#include <sys/param.h> 49 50#include <err.h> 51#include <locale.h> 52#include <nlist.h> 53#include <signal.h> --- 83 unchanged lines hidden (view full) --- 137 } 138 if (kvm_nlist(kd, namelist)) { 139 nlisterr(namelist); 140 exit(1); 141 } 142 if (namelist[X_FIRST].n_type == 0) 143 errx(1, "couldn't read namelist"); 144 gethostname(hostname, sizeof (hostname)); |
145 NREAD(X_HZ, &hz, LONG); 146 NREAD(X_STATHZ, &stathz, LONG); | 145 NREAD(X_HZ, &hz, sizeof(hz)); 146 NREAD(X_STATHZ, &stathz, sizeof(stathz)); |
147 hertz = stathz ? stathz : hz; 148 (*curcmd->c_init)(); 149 curcmd->c_flags |= CF_INIT; 150 labels(); 151 152 dellave = 0.0; 153 154 signal(SIGALRM, display); --- 139 unchanged lines hidden --- | 147 hertz = stathz ? stathz : hz; 148 (*curcmd->c_init)(); 149 curcmd->c_flags |= CF_INIT; 150 labels(); 151 152 dellave = 0.0; 153 154 signal(SIGALRM, display); --- 139 unchanged lines hidden --- |