hlfsd.c (119682) | hlfsd.c (131706) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1997-2003 Erez Zadok | 2 * Copyright (c) 1997-2004 Erez Zadok |
3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by 9 * Jan-Simon Pendry at Imperial College, London. 10 * --- 22 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * | 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by 9 * Jan-Simon Pendry at Imperial College, London. 10 * --- 22 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * |
41 * $Id: hlfsd.c,v 1.7.2.7 2002/12/27 22:45:08 ezk Exp $ 42 * $FreeBSD: head/contrib/amd/hlfsd/hlfsd.c 119682 2003-09-02 15:42:57Z mbr $ | 41 * $Id: hlfsd.c,v 1.7.2.9 2004/01/19 00:25:55 ezk Exp $ 42 * $FreeBSD: head/contrib/amd/hlfsd/hlfsd.c 131706 2004-07-06 13:16:49Z mbr $ |
43 * 44 * HLFSD was written at Columbia University Computer Science Department, by 45 * Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu> 46 * It is being distributed under the same terms and conditions as amd does. 47 */ 48 49#ifdef HAVE_CONFIG_H 50# include <config.h> --- 691 unchanged lines hidden (view full) --- 742# else /* not defined(DEBUG) || defined(DEBUG_PRINT) */ 743 signal(SIGUSR1, SIG_IGN); 744# endif /* not defined(DEBUG) || defined(DEBUG_PRINT) */ 745#endif /* not HAVE_SIGACTION */ 746 747 if (setitimer(ITIMER_REAL, &reloadinterval, (struct itimerval *) 0) < 0) 748 fatal("setitimer: %m"); 749 | 43 * 44 * HLFSD was written at Columbia University Computer Science Department, by 45 * Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu> 46 * It is being distributed under the same terms and conditions as amd does. 47 */ 48 49#ifdef HAVE_CONFIG_H 50# include <config.h> --- 691 unchanged lines hidden (view full) --- 742# else /* not defined(DEBUG) || defined(DEBUG_PRINT) */ 743 signal(SIGUSR1, SIG_IGN); 744# endif /* not defined(DEBUG) || defined(DEBUG_PRINT) */ 745#endif /* not HAVE_SIGACTION */ 746 747 if (setitimer(ITIMER_REAL, &reloadinterval, (struct itimerval *) 0) < 0) 748 fatal("setitimer: %m"); 749 |
750 gettimeofday((struct timeval *) &startup, (struct timezone *) 0); | 750 gettimeofday((struct timeval *) ((void *)&startup), (struct timezone *) 0); |
751 752#ifdef DEBUG 753 /* 754 * If -D daemon, then start serving here in the child, 755 * and the parent will exit. But if -D nodaemon, then 756 * skip this code and make sure svc_run is entered elsewhere. 757 */ 758 amuDebug(D_DAEMON) { --- 187 unchanged lines hidden --- | 751 752#ifdef DEBUG 753 /* 754 * If -D daemon, then start serving here in the child, 755 * and the parent will exit. But if -D nodaemon, then 756 * skip this code and make sure svc_run is entered elsewhere. 757 */ 758 amuDebug(D_DAEMON) { --- 187 unchanged lines hidden --- |