Deleted Added
full compact
fopen.c (98121) fopen.c (141858)
1/*
1/*
2 * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2002, 2004 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
9 *
10 * By using this file, you agree to the terms and conditions set
11 * forth in the LICENSE file which can be found at the top level of
12 * the sendmail distribution.
13 */
14
15#include <sm/gen.h>
3 * All rights reserved.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek.
9 *
10 * By using this file, you agree to the terms and conditions set
11 * forth in the LICENSE file which can be found at the top level of
12 * the sendmail distribution.
13 */
14
15#include <sm/gen.h>
16SM_RCSID("@(#)$Id: fopen.c,v 1.60 2002/01/07 21:41:35 ca Exp $")
16SM_RCSID("@(#)$Id: fopen.c,v 1.61 2004/08/03 20:17:38 ca Exp $")
17#include <errno.h>
18#include <setjmp.h>
19#include <sys/time.h>
20#include <sm/heap.h>
21#include <sm/signal.h>
22#include <sm/assert.h>
23#include <sm/io.h>
24#include <sm/clock.h>
25#include "local.h"
26
17#include <errno.h>
18#include <setjmp.h>
19#include <sys/time.h>
20#include <sm/heap.h>
21#include <sm/signal.h>
22#include <sm/assert.h>
23#include <sm/io.h>
24#include <sm/clock.h>
25#include "local.h"
26
27static void openalrm __P((int));
28static void reopenalrm __P((int));
27extern int sm_io_fclose __P((SM_FILE_T *));
28
29static jmp_buf OpenTimeOut, ReopenTimeOut;
30
31/*
32** OPENALRM -- handler when timeout activated for sm_io_open()
33**
34** Returns flow of control to where setjmp(OpenTimeOut) was set.

--- 338 unchanged lines hidden ---
29extern int sm_io_fclose __P((SM_FILE_T *));
30
31static jmp_buf OpenTimeOut, ReopenTimeOut;
32
33/*
34** OPENALRM -- handler when timeout activated for sm_io_open()
35**
36** Returns flow of control to where setjmp(OpenTimeOut) was set.

--- 338 unchanged lines hidden ---