Deleted Added
full compact
io.h (98121) io.h (120256)
1/*
1/*
2 * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2003 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1990
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 *
3 * All rights reserved.
4 * Copyright (c) 1990
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 * $Id: io.h,v 1.23 2002/02/23 19:32:17 gshapiro Exp $
14 * $Id: io.h,v 1.23.2.2 2003/09/05 20:35:28 ca Exp $
15 */
16
17/*-
18 * @(#)stdio.h 5.17 (Berkeley) 6/3/91
19 */
20
21#ifndef SM_IO_H
22#define SM_IO_H

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

28/* mode for sm io (exposed) */
29#define SM_IO_RDWR 1 /* read-write */
30#define SM_IO_RDONLY 2 /* read-only */
31#define SM_IO_WRONLY 3 /* write-only */
32#define SM_IO_APPEND 4 /* write-only from eof */
33#define SM_IO_APPENDRW 5 /* read-write from eof */
34#define SM_IO_RDWRTR 6 /* read-write with truncation indicated */
35
15 */
16
17/*-
18 * @(#)stdio.h 5.17 (Berkeley) 6/3/91
19 */
20
21#ifndef SM_IO_H
22#define SM_IO_H

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

28/* mode for sm io (exposed) */
29#define SM_IO_RDWR 1 /* read-write */
30#define SM_IO_RDONLY 2 /* read-only */
31#define SM_IO_WRONLY 3 /* write-only */
32#define SM_IO_APPEND 4 /* write-only from eof */
33#define SM_IO_APPENDRW 5 /* read-write from eof */
34#define SM_IO_RDWRTR 6 /* read-write with truncation indicated */
35
36# define SM_IO_BINARY 0x0 /* binary mode: not used in Unix */
37#define SM_IS_BINARY(mode) ((mode) & SM_IO_BINARY != 0)
38#define SM_IO_MODE(mode) ((mode) & 0x0f)
39
40#define SM_IO_RDWR_B (SM_IO_RDWR|SM_IO_BINARY)
41#define SM_IO_RDONLY_B (SM_IO_RDONLY|SM_IO_BINARY)
42#define SM_IO_WRONLY_B (SM_IO_WRONLY|SM_IO_BINARY)
43#define SM_IO_APPEND_B (SM_IO_APPEND|SM_IO_BINARY)
44#define SM_IO_APPENDRW_B (SM_IO_APPENDRW|SM_IO_BINARY)
45#define SM_IO_RDWRTR_B (SM_IO_RDWRTR|SM_IO_BINARY)
46
36/* for sm_io_fseek, et al api's (exposed) */
37#define SM_IO_SEEK_SET 0
38#define SM_IO_SEEK_CUR 1
39#define SM_IO_SEEK_END 2
40
41/* flags for info what's with different types (exposed) */
42#define SM_IO_WHAT_MODE 1
43#define SM_IO_WHAT_VECTORS 2

--- 335 unchanged lines hidden ---
47/* for sm_io_fseek, et al api's (exposed) */
48#define SM_IO_SEEK_SET 0
49#define SM_IO_SEEK_CUR 1
50#define SM_IO_SEEK_END 2
51
52/* flags for info what's with different types (exposed) */
53#define SM_IO_WHAT_MODE 1
54#define SM_IO_WHAT_VECTORS 2

--- 335 unchanged lines hidden ---