2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
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.
16 SM_RCSID("@(#)$Id: flags.c,v 1.20 2001/09/11 04:04:48 gshapiro Exp $")
17 #include <sys/types.h>
23 ** SM_FLAGS -- translate external (user) flags into internal flags
26 ** flags -- user select flags
29 ** Internal flag value matching user selected flags
40 case SM_IO_RDONLY: /* open for reading */
44 case SM_IO_WRONLY: /* open for writing */
48 case SM_IO_APPEND: /* open for appending */
52 case SM_IO_RDWR: /* open for read and write */