mail.local.c (111826) | mail.local.c (112813) |
---|---|
1/* 2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1990, 1993, 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * By using this file, you agree to the terms and conditions set 8 * forth in the LICENSE file which can be found at the top level of 9 * the sendmail distribution. 10 * | 1/* 2 * Copyright (c) 1998-2003 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * Copyright (c) 1990, 1993, 1994 5 * The Regents of the University of California. All rights reserved. 6 * 7 * By using this file, you agree to the terms and conditions set 8 * forth in the LICENSE file which can be found at the top level of 9 * the sendmail distribution. 10 * |
11 * $FreeBSD: head/contrib/sendmail/mail.local/mail.local.c 111826 2003-03-03 17:18:01Z gshapiro $ | 11 * $FreeBSD: head/contrib/sendmail/mail.local/mail.local.c 112813 2003-03-29 19:18:07Z gshapiro $ |
12 * 13 */ 14 15#include <sm/gen.h> 16 17SM_IDSTR(copyright, 18"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 19 All rights reserved.\n\ 20 Copyright (c) 1990, 1993, 1994\n\ 21 The Regents of the University of California. All rights reserved.\n") 22 | 12 * 13 */ 14 15#include <sm/gen.h> 16 17SM_IDSTR(copyright, 18"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 19 All rights reserved.\n\ 20 Copyright (c) 1990, 1993, 1994\n\ 21 The Regents of the University of California. All rights reserved.\n") 22 |
23SM_IDSTR(id, "@(#)$Id: mail.local.c,v 8.239.2.4 2003/01/15 19:17:15 ca Exp $") | 23SM_IDSTR(id, "@(#)$Id: mail.local.c,v 8.239.2.5 2003/03/15 23:43:20 gshapiro Exp $") |
24 25#include <stdlib.h> 26#include <sm/errstring.h> 27#include <sm/io.h> 28#include <sm/limits.h> 29# include <unistd.h> 30# ifdef EX_OK 31# undef EX_OK /* unistd.h may have another use for this */ --- 1111 unchanged lines hidden (view full) --- 1143 1144 /* Wait until we can get a lock on the file. */ 1145 if (flock(mbfd, LOCK_EX) < 0) 1146 { 1147 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno)); 1148 goto err1; 1149 } 1150 | 24 25#include <stdlib.h> 26#include <sm/errstring.h> 27#include <sm/io.h> 28#include <sm/limits.h> 29# include <unistd.h> 30# ifdef EX_OK 31# undef EX_OK /* unistd.h may have another use for this */ --- 1111 unchanged lines hidden (view full) --- 1143 1144 /* Wait until we can get a lock on the file. */ 1145 if (flock(mbfd, LOCK_EX) < 0) 1146 { 1147 mailerr("450 4.2.0", "%s: %s", path, sm_errstring(errno)); 1148 goto err1; 1149 } 1150 |
1151 /* Get the starting offset of the new message for biff. */ | 1151 /* Get the starting offset of the new message */ |
1152 curoff = lseek(mbfd, (off_t) 0, SEEK_END); 1153 1154 if (!nobiff) 1155 { 1156 (void) sm_snprintf(biffmsg, sizeof(biffmsg), "%s@%lld\n", 1157 name, (LONGLONG_T) curoff); 1158 } 1159 --- 570 unchanged lines hidden --- | 1152 curoff = lseek(mbfd, (off_t) 0, SEEK_END); 1153 1154 if (!nobiff) 1155 { 1156 (void) sm_snprintf(biffmsg, sizeof(biffmsg), "%s@%lld\n", 1157 name, (LONGLONG_T) curoff); 1158 } 1159 --- 570 unchanged lines hidden --- |