2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
2N/A/* All Rights Reserved */
2N/A
2N/A
2N/A/*
2N/A * Copyright (c) 1989, 1999, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A/* This is a private header file. */
2N/A
2N/A#ifndef _LIBMAIL_H
2N/A#define _LIBMAIL_H
2N/A
2N/A#include <stdio.h>
2N/A#include <maillock.h>
2N/A#include "s_string.h"
2N/A
2N/A#ifndef MFMODE
2N/A#define MFMODE 0660 /* create mode for `/var/mail' files */
2N/A#endif
2N/A#ifdef FILENAME_MAX
2N/A#define MAXFILENAME FILENAME_MAX /* max length of a filename */
2N/A#else
2N/A#define MAXFILENAME 512 /* max length of a filename */
2N/A#endif
2N/A
2N/A/* The following typedefs must be used in SVR4 */
2N/A#ifdef SVR3
2N/Atypedef int mode_t;
2N/A#else
2N/A# include <sys/types.h>
2N/A#endif
2N/A
2N/A#if defined(__STDC__) || defined(__cplusplus)
2N/Aextern string *abspath(char *path, char *dot, string *to);
2N/Aextern int casncmp(char *s1, char *s2, ssize_t n);
2N/Aextern int copystream(FILE *infp, FILE *outfp);
2N/Aextern int delempty(mode_t m, char *mailname);
2N/Aextern char *maildomain(void);
2N/Aextern void notify(char *user, char *msg, int check_mesg_y, char *etcdir);
2N/Aextern int pclosevp(FILE *fp);
2N/Aextern FILE *popenvp(char *file, char **argv, char *mode, int resetid);
2N/Aextern char **setup_exec(char *s);
2N/Aextern char *skipspace(char *p);
2N/Aextern int substr(char *string1, char *string2);
2N/Aextern void strmove(char *from, char *to);
2N/Aextern pid_t systemvp(char *file, char **argv, int resetid);
2N/Aextern void trimnl(char *s);
2N/Aextern char *Xgetenv(char *env);
2N/Aextern char *xgetenv(char *env);
2N/Aextern int xsetenv(char *file);
2N/A#else
2N/Aextern string *abspath();
2N/Aextern int casncmp();
2N/Aextern int copystream();
2N/Aextern int delempty();
2N/Aextern char *maildomain();
2N/Aextern void notify();
2N/Aextern int pclosevp();
2N/Aextern FILE *popenvp();
2N/Aextern char **setup_exec();
2N/Aextern char *skipspace();
2N/Aextern void strmove();
2N/Aextern int substr();
2N/Aextern pid_t systemvp();
2N/Aextern void trimnl();
2N/Aextern char *Xgetenv();
2N/Aextern char *xgetenv();
2N/Aextern int xsetenv();
2N/A#endif
2N/A
2N/A#endif /* _LIBMAIL_H */