Deleted Added
full compact
stdio.c (141858) stdio.c (157001)
1/*
1/*
2 * Copyright (c) 2000-2004 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2005 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: stdio.c,v 1.69 2004/08/03 20:46:34 ca Exp $")
16SM_RCSID("@(#)$Id: stdio.c,v 1.71 2005/06/14 23:07:20 ca Exp $")
17#include <unistd.h>
18#include <errno.h>
19#include <fcntl.h>
20#include <string.h> /* FreeBSD: FD_ZERO needs <string.h> */
21#include <sys/stat.h>
17#include <unistd.h>
18#include <errno.h>
19#include <fcntl.h>
20#include <string.h> /* FreeBSD: FD_ZERO needs <string.h> */
21#include <sys/stat.h>
22#include <sys/time.h>
22#include <sm/time.h>
23#include <sm/heap.h>
24#include <sm/assert.h>
25#include <sm/varargs.h>
26#include <sm/io.h>
27#include <sm/setjmp.h>
28#include <sm/conf.h>
29#include <sm/fdset.h>
30#include "local.h"

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

216** fp -- file pointer
217** mode -- new mode to set the file access to
218**
219** Results:
220** Success: 0 (zero);
221** Failure: -1 and sets errno
222*/
223
23#include <sm/heap.h>
24#include <sm/assert.h>
25#include <sm/varargs.h>
26#include <sm/io.h>
27#include <sm/setjmp.h>
28#include <sm/conf.h>
29#include <sm/fdset.h>
30#include "local.h"

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

216** fp -- file pointer
217** mode -- new mode to set the file access to
218**
219** Results:
220** Success: 0 (zero);
221** Failure: -1 and sets errno
222*/
223
224int
224static int
225sm_stdsetmode(fp, mode)
226 SM_FILE_T *fp;
227 const int *mode;
228{
229 int flags = 0;
230
231 switch (SM_IO_MODE(*mode))
232 {

--- 287 unchanged lines hidden ---
225sm_stdsetmode(fp, mode)
226 SM_FILE_T *fp;
227 const int *mode;
228{
229 int flags = 0;
230
231 switch (SM_IO_MODE(*mode))
232 {

--- 287 unchanged lines hidden ---