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