globals.h (1554) | globals.h (30642) |
---|---|
1/*- 2 * Copyright (c) 1985, 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 --- 20 unchanged lines hidden (view full) --- 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)globals.h 8.1 (Berkeley) 6/6/93 34 */ 35 36#ifdef sgi | 1/*- 2 * Copyright (c) 1985, 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 --- 20 unchanged lines hidden (view full) --- 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)globals.h 8.1 (Berkeley) 6/6/93 34 */ 35 36#ifdef sgi |
37#ident "$Revision: 1.15 $" | 37#ident "$Revision: 1.1.1.1 $" |
38#endif 39 40#include <sys/param.h> 41#include <sys/time.h> 42#include <sys/socket.h> 43 44#include <netinet/in.h> 45#include <arpa/inet.h> 46 | 38#endif 39 40#include <sys/param.h> 41#include <sys/time.h> 42#include <sys/socket.h> 43 44#include <netinet/in.h> 45#include <arpa/inet.h> 46 |
47#include <err.h> |
|
47#include <errno.h> 48#include <limits.h> 49#include <netdb.h> 50#include <stdio.h> 51#include <stdlib.h> 52#include <string.h> 53#include <syslog.h> 54#include <syslog.h> --- 6 unchanged lines hidden (view full) --- 61/* use the constant HZ instead of the function CLK_TCK */ 62#undef CLK_TCK 63#define CLK_TCK HZ 64#else 65#define SECHR (60*60) 66#define SECDAY (24*SECHR) 67#endif /* sgi */ 68 | 48#include <errno.h> 49#include <limits.h> 50#include <netdb.h> 51#include <stdio.h> 52#include <stdlib.h> 53#include <string.h> 54#include <syslog.h> 55#include <syslog.h> --- 6 unchanged lines hidden (view full) --- 62/* use the constant HZ instead of the function CLK_TCK */ 63#undef CLK_TCK 64#define CLK_TCK HZ 65#else 66#define SECHR (60*60) 67#define SECDAY (24*SECHR) 68#endif /* sgi */ 69 |
69extern int errno; | |
70extern int sock; 71 72/* Best expected round trip for a measurement. 73 * This is essentially the number of milliseconds per CPU tick (CLK_TCK?). 74 * All delays shorter than this are usually reported as 0. 75 */ 76#define MIN_ROUND ((1000-1)/CLK_TCK) 77 --- 109 unchanged lines hidden --- | 70extern int sock; 71 72/* Best expected round trip for a measurement. 73 * This is essentially the number of milliseconds per CPU tick (CLK_TCK?). 74 * All delays shorter than this are usually reported as 0. 75 */ 76#define MIN_ROUND ((1000-1)/CLK_TCK) 77 --- 109 unchanged lines hidden --- |