copymt.c (7c478bd95313f5f23a4c958a745db2134aa03244) | copymt.c (23a1ccea6aac035f084a7a4cdc968687d1b02daf) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ |
21 22/* 23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 24 */ 25 |
|
22/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23/* All Rights Reserved */ 24 | 26/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 27/* All Rights Reserved */ 28 |
25 26#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 2.1 */ | |
27/* 28 NAME 29 copymt - copy mail (f1) to temp (f2) 30 31 SYNOPSIS 32 void copymt(FILE *f1, FILE *f2) 33 34 DESCRIPTION --- 22 unchanged lines hidden (view full) --- 57 nlet = nextadr = 0; 58 let[0].adr = 0; 59 let[0].text = TRUE; /* until proven otherwise.... */ 60 let[0].change = ' '; 61 } else { 62 nextadr = let[nlet].adr; 63 } 64 | 29/* 30 NAME 31 copymt - copy mail (f1) to temp (f2) 32 33 SYNOPSIS 34 void copymt(FILE *f1, FILE *f2) 35 36 DESCRIPTION --- 22 unchanged lines hidden (view full) --- 59 nlet = nextadr = 0; 60 let[0].adr = 0; 61 let[0].text = TRUE; /* until proven otherwise.... */ 62 let[0].change = ' '; 63 } else { 64 nextadr = let[nlet].adr; 65 } 66 |
65 while ((n = getline(line, sizeof line, f1)) > 0) { | 67 while ((n = getaline(line, sizeof line, f1)) > 0) { |
66 if (!newline) { 67 goto putout; 68 } else if ((hdr = isheader (line, &ctf)) == FALSE) { 69 ctf = FALSE; /* next line can't be cont. */ 70 } 71 if (!hdr && cflg) { /* nonheader, Content-length seen */ 72 if (clen < n) { /* read too much */ 73 /* NB: this only can happen if the content-length --- 142 unchanged lines hidden --- | 68 if (!newline) { 69 goto putout; 70 } else if ((hdr = isheader (line, &ctf)) == FALSE) { 71 ctf = FALSE; /* next line can't be cont. */ 72 } 73 if (!hdr && cflg) { /* nonheader, Content-length seen */ 74 if (clen < n) { /* read too much */ 75 /* NB: this only can happen if the content-length --- 142 unchanged lines hidden --- |