Deleted Added
full compact
subr_msgbuf.c (116660) subr_msgbuf.c (119765)
1/*
2 * Copyright (c) 2003 Ian Dowse. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*
2 * Copyright (c) 2003 Ian Dowse. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/kern/subr_msgbuf.c 116660 2003-06-22 02:18:31Z iedowse $
25 * $FreeBSD: head/sys/kern/subr_msgbuf.c 119765 2003-09-05 11:12:00Z phk $
26 */
27
28/*
29 * Generic message buffer support routines.
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>

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

68 return;
69 }
70 mbp->msg_seqmod = SEQMOD(size);
71 mbp->msg_wseq = MSGBUF_SEQNORM(mbp, mbp->msg_wseq);
72 mbp->msg_rseq = MSGBUF_SEQNORM(mbp, mbp->msg_rseq);
73 mbp->msg_ptr = ptr;
74 cksum = msgbuf_cksum(mbp);
75 if (cksum != mbp->msg_cksum) {
26 */
27
28/*
29 * Generic message buffer support routines.
30 */
31
32#include <sys/param.h>
33#include <sys/systm.h>

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

68 return;
69 }
70 mbp->msg_seqmod = SEQMOD(size);
71 mbp->msg_wseq = MSGBUF_SEQNORM(mbp, mbp->msg_wseq);
72 mbp->msg_rseq = MSGBUF_SEQNORM(mbp, mbp->msg_rseq);
73 mbp->msg_ptr = ptr;
74 cksum = msgbuf_cksum(mbp);
75 if (cksum != mbp->msg_cksum) {
76 printf("msgbuf cksum mismatch (read %x, calc %x)\n",
77 mbp->msg_cksum, cksum);
76 if (bootverbose) {
77 printf("msgbuf cksum mismatch (read %x, calc %x)\n",
78 mbp->msg_cksum, cksum);
79 printf("Old msgbuf not recovered\n");
80 }
78 msgbuf_clear(mbp);
79 }
80}
81
82/*
83 * Clear the message buffer.
84 */
85void

--- 154 unchanged lines hidden ---
81 msgbuf_clear(mbp);
82 }
83}
84
85/*
86 * Clear the message buffer.
87 */
88void

--- 154 unchanged lines hidden ---