Import sendmail 8.13.4 into a new contrib directory as the first step
[dragonfly.git] / contrib / sendmail-8.13.4 / include / sm / path.h
blob29fc4ca4661879564520a1f5fca00e7afdc83e97
1 /*
2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
9 * $Id: path.h,v 1.6 2001/04/03 01:53:00 gshapiro Exp $
13 ** Portable names for standard filesystem paths
14 ** and macros for directories.
17 #ifndef SM_PATH_H
18 # define SM_PATH_H
20 # include <sm/gen.h>
22 # define SM_PATH_DEVNULL "/dev/null"
23 # define SM_IS_DIR_DELIM(c) ((c) == '/')
24 # define SM_FIRST_DIR_DELIM(s) strchr(s, '/')
25 # define SM_LAST_DIR_DELIM(s) strrchr(s, '/')
27 /* Warning: this must be accessible as array */
28 # define SM_IS_DIR_START(s) ((s)[0] == '/')
30 # define sm_path_isdevnull(path) (strcmp(path, "/dev/null") == 0)
32 #endif /* ! SM_PATH_H */