Deleted Added
full compact
local.h (90792) local.h (94334)
1/*
1/*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
2 * Copyright (c) 2000-2002 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 *
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 * $Id: local.h,v 1.48 2001/05/14 20:42:29 gshapiro Exp $
14 * $Id: local.h,v 1.51 2002/02/20 02:40:24 ca Exp $
15 */
16
17/*
18** Information local to this implementation of stdio,
19** in particular, macros and private variables.
20*/
21
22#include <sys/time.h>

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

127#define HASUB(fp) ((fp)->f_ub.smb_base != NULL)
128#define FREEUB(fp) \
129{ \
130 if ((fp)->f_ub.smb_base != (fp)->f_ubuf) \
131 sm_free((char *)(fp)->f_ub.smb_base); \
132 (fp)->f_ub.smb_base = NULL; \
133}
134
15 */
16
17/*
18** Information local to this implementation of stdio,
19** in particular, macros and private variables.
20*/
21
22#include <sys/time.h>

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

127#define HASUB(fp) ((fp)->f_ub.smb_base != NULL)
128#define FREEUB(fp) \
129{ \
130 if ((fp)->f_ub.smb_base != (fp)->f_ubuf) \
131 sm_free((char *)(fp)->f_ub.smb_base); \
132 (fp)->f_ub.smb_base = NULL; \
133}
134
135/* Test for an fgetln() buffer. */
136#define HASLB(fp) ((fp)->f_lb.smb_base != NULL)
137#define FREELB(fp) \
138{ \
139 sm_free((char *)(fp)->f_lb.smb_base); \
140 (fp)->f_lb.smb_base = NULL; \
141}
142
143struct sm_io_obj
144{
145 int file;
146};
147
148extern const char SmFileMagic[];
149
135extern const char SmFileMagic[];
136
150#ifndef ALIGNBYTES
151# define ALIGNBYTES (sizeof(long) - 1)
152# define ALIGN(p) (((unsigned long)(p) + ALIGNBYTES) & ~ALIGNBYTES)
153#endif /* ALIGNBYTES */
137#define SM_ALIGN(p) (((unsigned long)(p) + SM_ALIGN_BITS) & ~SM_ALIGN_BITS)
154
155#define sm_io_flockfile(fp) ((void) 0)
156#define sm_io_funlockfile(fp) ((void) 0)
157
158#ifndef FDSET_CAST
159# define FDSET_CAST /* empty cast for fd_set arg to select */
160#endif
161

--- 179 unchanged lines hidden ---
138
139#define sm_io_flockfile(fp) ((void) 0)
140#define sm_io_funlockfile(fp) ((void) 0)
141
142#ifndef FDSET_CAST
143# define FDSET_CAST /* empty cast for fd_set arg to select */
144#endif
145

--- 179 unchanged lines hidden ---