Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 2 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef editline_unix_h |
michael@0 | 7 | #define editline_unix_h |
michael@0 | 8 | |
michael@0 | 9 | /* |
michael@0 | 10 | * Copyright 1992,1993 Simmule Turner and Rich Salz. All rights reserved. |
michael@0 | 11 | * |
michael@0 | 12 | * This software is not subject to any license of the American Telephone |
michael@0 | 13 | * and Telegraph Company or of the Regents of the University of California. |
michael@0 | 14 | * |
michael@0 | 15 | * Permission is granted to anyone to use this software for any purpose on |
michael@0 | 16 | * any computer system, and to alter it and redistribute it freely, subject |
michael@0 | 17 | * to the following restrictions: |
michael@0 | 18 | * 1. The authors are not responsible for the consequences of use of this |
michael@0 | 19 | * software, no matter how awful, even if they arise from flaws in it. |
michael@0 | 20 | * 2. The origin of this software must not be misrepresented, either by |
michael@0 | 21 | * explicit claim or by omission. Since few users ever read sources, |
michael@0 | 22 | * credits must appear in the documentation. |
michael@0 | 23 | * 3. Altered versions must be plainly marked as such, and must not be |
michael@0 | 24 | * misrepresented as being the original software. Since few users |
michael@0 | 25 | * ever read sources, credits must appear in the documentation. |
michael@0 | 26 | * 4. This notice may not be removed or altered. |
michael@0 | 27 | */ |
michael@0 | 28 | |
michael@0 | 29 | |
michael@0 | 30 | /* |
michael@0 | 31 | ** Editline system header file for Unix. |
michael@0 | 32 | */ |
michael@0 | 33 | |
michael@0 | 34 | #define CRLF "\r\n" |
michael@0 | 35 | #define FORWARD STATIC |
michael@0 | 36 | |
michael@0 | 37 | #include <sys/types.h> |
michael@0 | 38 | #include <sys/stat.h> |
michael@0 | 39 | |
michael@0 | 40 | #if defined(USE_DIRENT) |
michael@0 | 41 | #include <dirent.h> |
michael@0 | 42 | typedef struct dirent DIRENTRY; |
michael@0 | 43 | #else |
michael@0 | 44 | #include <sys/dir.h> |
michael@0 | 45 | typedef struct direct DIRENTRY; |
michael@0 | 46 | #endif /* defined(USE_DIRENT) */ |
michael@0 | 47 | |
michael@0 | 48 | #if !defined(S_ISDIR) |
michael@0 | 49 | #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
michael@0 | 50 | #endif /* !defined(S_ISDIR) */ |
michael@0 | 51 | |
michael@0 | 52 | #endif /* editline_unix_h */ |