Revision 24167,
1.5 KB
checked in by broder, 15 years ago
(diff) |
Import schroot upstream into subversion.
|
Rev | Line | |
---|
[24167] | 1 | /* Copyright © 2006-2007 Roger Leigh <rleigh@debian.org> |
---|
| 2 | * |
---|
| 3 | * schroot is free software: you can redistribute it and/or modify it |
---|
| 4 | * under the terms of the GNU General Public License as published by |
---|
| 5 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 6 | * (at your option) any later version. |
---|
| 7 | * |
---|
| 8 | * schroot is distributed in the hope that it will be useful, but |
---|
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 11 | * General Public License for more details. |
---|
| 12 | * |
---|
| 13 | * You should have received a copy of the GNU General Public License |
---|
| 14 | * along with this program. If not, see |
---|
| 15 | * <http://www.gnu.org/licenses/>. |
---|
| 16 | * |
---|
| 17 | *********************************************************************/ |
---|
| 18 | |
---|
| 19 | #ifndef SBUILD_CTTY_H |
---|
| 20 | #define SBUILD_CTTY_H |
---|
| 21 | |
---|
| 22 | #include <sbuild/sbuild-parse-error.h> |
---|
| 23 | |
---|
| 24 | #include <streambuf> |
---|
| 25 | #include <ostream> |
---|
| 26 | |
---|
| 27 | namespace sbuild |
---|
| 28 | { |
---|
| 29 | |
---|
| 30 | enum ctty_error_code |
---|
| 31 | { |
---|
| 32 | /// The controlling terminal close-on-execute flag could not be |
---|
| 33 | /// set. |
---|
| 34 | CTTY_CLOEXEC, |
---|
| 35 | /// The controlling terminal file descriptor could not be |
---|
| 36 | /// duplicated. |
---|
| 37 | CTTY_DUP |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | typedef parse_error<ctty_error_code> ctty_error; |
---|
| 41 | |
---|
| 42 | /** |
---|
| 43 | * CTTY fd. The fd number of the Controlling TTY, or -1 if not |
---|
| 44 | * available. |
---|
| 45 | */ |
---|
| 46 | extern const int CTTY_FILENO; |
---|
| 47 | |
---|
| 48 | /** |
---|
| 49 | * CTTY stream. A stream to the Controlling TTY, or standard input |
---|
| 50 | * if not available. |
---|
| 51 | */ |
---|
| 52 | extern std::iostream cctty; |
---|
| 53 | |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | #endif /* SBUILD_CTTY_H */ |
---|
| 57 | |
---|
| 58 | /* |
---|
| 59 | * Local Variables: |
---|
| 60 | * mode:C++ |
---|
| 61 | * End: |
---|
| 62 | */ |
---|
Note: See
TracBrowser
for help on using the repository browser.