1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef editline_unix_h
7 #define editline_unix_h
10 * Copyright 1992,1993 Simmule Turner and Rich Salz. All rights reserved.
12 * This software is not subject to any license of the American Telephone
13 * and Telegraph Company or of the Regents of the University of California.
15 * Permission is granted to anyone to use this software for any purpose on
16 * any computer system, and to alter it and redistribute it freely, subject
17 * to the following restrictions:
18 * 1. The authors are not responsible for the consequences of use of this
19 * software, no matter how awful, even if they arise from flaws in it.
20 * 2. The origin of this software must not be misrepresented, either by
21 * explicit claim or by omission. Since few users ever read sources,
22 * credits must appear in the documentation.
23 * 3. Altered versions must be plainly marked as such, and must not be
24 * misrepresented as being the original software. Since few users
25 * ever read sources, credits must appear in the documentation.
26 * 4. This notice may not be removed or altered.
31 ** Editline system header file for Unix.
35 #define FORWARD STATIC
37 #include <sys/types.h>
40 #if defined(USE_DIRENT)
42 typedef struct dirent DIRENTRY
;
45 typedef struct direct DIRENTRY
;
46 #endif /* defined(USE_DIRENT) */
49 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
50 #endif /* !defined(S_ISDIR) */
52 #endif /* editline_unix_h */