Deleted Added
full compact
file.c (74499) file.c (99786)
1/*
2 * Copyright (c) 1995
3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). 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

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
1/*
2 * Copyright (c) 1995
3 * A.R. Gordon (andrew.gordon@net-tel.co.uk). 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

--- 15 unchanged lines hidden (view full) ---

24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * $FreeBSD: head/usr.sbin/rpc.statd/file.c 74499 2001-03-20 01:36:41Z alfred $
32 * $FreeBSD: head/usr.sbin/rpc.statd/file.c 99786 2002-07-11 17:31:15Z alfred $
33 *
34 */
35
36#include <err.h>
37#include <errno.h>
38#include <fcntl.h>
39#include <stdio.h>
40#include <string.h>
41#include <unistd.h>
42#include <sys/types.h>
43#include <sys/mman.h> /* For mmap() */
44#include <rpc/rpc.h>
45#include <syslog.h>
33 *
34 */
35
36#include <err.h>
37#include <errno.h>
38#include <fcntl.h>
39#include <stdio.h>
40#include <string.h>
41#include <unistd.h>
42#include <sys/types.h>
43#include <sys/mman.h> /* For mmap() */
44#include <rpc/rpc.h>
45#include <syslog.h>
46#include <stdlib.h>
46
47#include "statd.h"
48
49FileLayout *status_info; /* Pointer to the mmap()ed status file */
50static int status_fd; /* File descriptor for the open file */
51static off_t status_file_len; /* Current on-disc length of file */
52
53/* sync_file --------------------------------------------------------------- */

--- 276 unchanged lines hidden ---
47
48#include "statd.h"
49
50FileLayout *status_info; /* Pointer to the mmap()ed status file */
51static int status_fd; /* File descriptor for the open file */
52static off_t status_file_len; /* Current on-disc length of file */
53
54/* sync_file --------------------------------------------------------------- */

--- 276 unchanged lines hidden ---