timed.c (30872) | timed.c (37268) |
---|---|
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 --- 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[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = | 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 --- 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[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93"; 43#endif 44static const char rcsid[] = |
45 "$Id: timed.c,v 1.6 1997/10/29 07:32:30 charnier Exp $"; | 45 "$Id: timed.c,v 1.7 1997/10/31 12:33:06 charnier Exp $"; |
46#endif /* not lint */ 47 48#define TSPTYPES 49#include "globals.h" 50#include <net/if.h> 51#include <sys/file.h> 52#include <sys/ioctl.h> 53#include <setjmp.h> --- 677 unchanged lines hidden (view full) --- 731 } 732 } 733 nnets++; 734 status |= ntp->status; 735 } 736 status &= ~IGNORE; 737 if (trace) 738 fprintf(fd, | 46#endif /* not lint */ 47 48#define TSPTYPES 49#include "globals.h" 50#include <net/if.h> 51#include <sys/file.h> 52#include <sys/ioctl.h> 53#include <setjmp.h> --- 677 unchanged lines hidden (view full) --- 731 } 732 } 733 nnets++; 734 status |= ntp->status; 735 } 736 status &= ~IGNORE; 737 if (trace) 738 fprintf(fd, |
739 "\tnets=%d masters=%d slaves=%d ignored=%d delay2=%d\n", 740 nnets, nmasternets, nslavenets, nignorednets, delay2); | 739 "\tnets=%d masters=%d slaves=%d ignored=%d delay2=%ld\n", 740 nnets, nmasternets, nslavenets, nignorednets, delay2); |
741} 742 743void 744makeslave(net) 745 struct netinfo *net; 746{ 747 register struct netinfo *ntp; 748 --- 67 unchanged lines hidden (view full) --- 816 struct timeval tv; 817 static char tm[32]; 818 819 (void)gettimeofday(&tv, (struct timezone *)0); 820 (void)cftime(tm, "%D %T", &tv.tv_sec); 821 return (tm); 822#else 823 struct timeval tv; | 741} 742 743void 744makeslave(net) 745 struct netinfo *net; 746{ 747 register struct netinfo *ntp; 748 --- 67 unchanged lines hidden (view full) --- 816 struct timeval tv; 817 static char tm[32]; 818 819 (void)gettimeofday(&tv, (struct timezone *)0); 820 (void)cftime(tm, "%D %T", &tv.tv_sec); 821 return (tm); 822#else 823 struct timeval tv; |
824 time_t tv_sec; |
|
824 825 (void)gettimeofday(&tv, (struct timezone *)0); | 825 826 (void)gettimeofday(&tv, (struct timezone *)0); |
826 return (ctime(&tv.tv_sec)); | 827 tv_sec = tv.tv_sec; 828 return (ctime(&tv_sec)); |
827#endif /* sgi */ 828} 829 830void 831addnetname(name) 832 char *name; 833{ 834 register struct nets **netlist = &nets; --- 130 unchanged lines hidden --- | 829#endif /* sgi */ 830} 831 832void 833addnetname(name) 834 char *name; 835{ 836 register struct nets **netlist = &nets; --- 130 unchanged lines hidden --- |