Deleted Added
full compact
map.c (77349) map.c (80785)
1/*
2 * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1992, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#ifndef lint
1/*
2 * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
4 * Copyright (c) 1992, 1995-1997 Eric P. Allman. All rights reserved.
5 * Copyright (c) 1992, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * By using this file, you agree to the terms and conditions set
9 * forth in the LICENSE file which can be found at the top level of
10 * the sendmail distribution.
11 *
12 */
13
14#ifndef lint
15static char id[] = "@(#)$Id: map.c,v 8.414.4.53 2001/05/04 01:29:00 gshapiro Exp $";
15static char id[] = "@(#)$Id: map.c,v 8.414.4.54 2001/06/01 08:23:24 gshapiro Exp $";
16#endif /* ! lint */
17
18#include <sendmail.h>
19
20
21#ifdef NDBM
22# include <ndbm.h>
23# ifdef R_FIRST

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

121#endif /* ! EX_NOTFOUND */
122
123#if O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL
124# define LOCK_ON_OPEN 1 /* we can open/create a locked file */
125#else /* O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL */
126# define LOCK_ON_OPEN 0 /* no such luck -- bend over backwards */
127#endif /* O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL */
128
16#endif /* ! lint */
17
18#include <sendmail.h>
19
20
21#ifdef NDBM
22# include <ndbm.h>
23# ifdef R_FIRST

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

121#endif /* ! EX_NOTFOUND */
122
123#if O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL
124# define LOCK_ON_OPEN 1 /* we can open/create a locked file */
125#else /* O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL */
126# define LOCK_ON_OPEN 0 /* no such luck -- bend over backwards */
127#endif /* O_EXLOCK && HASFLOCK && !BOGUS_O_EXCL */
128
129#ifndef O_ACCMODE
130# define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
131#endif /* ! O_ACCMODE */
132 /*
133** MAP_PARSEARGS -- parse config line arguments for database lookup
134**
135** This is a generic version of the map_parse method.
136**
137** Parameters:
138** map -- the map being initialized.
139** ap -- a pointer to the args on the config line.

--- 7230 unchanged lines hidden ---
129 /*
130** MAP_PARSEARGS -- parse config line arguments for database lookup
131**
132** This is a generic version of the map_parse method.
133**
134** Parameters:
135** map -- the map being initialized.
136** ap -- a pointer to the args on the config line.

--- 7230 unchanged lines hidden ---