ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/ptytty_conf.h
Revision: 1.9
Committed: Wed Jan 25 11:14:26 2006 UTC (20 years, 7 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-0_1, rel-0_2, rel-1_0, rel-1_1, rel-1_3, rel-1_2
Changes since 1.8: +2 -2 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * This file contains a few tunables for libptytty. Normally there should
3 * be little reason to change this file. It is provided to suit rare or
4 * special cases only.
5 */
6
7 /*
8 * Default mode to restore when releasing the PTS device. It is relaxed to be
9 * compatible with most systems, change it to a more secure value if your
10 * system supports it (0640 for example).
11 */
12 #define RESTORE_TTY_MODE 0666
13
14 /*
15 * Define if you want to use a separate process for pty/tty handling
16 * when running setuid/setgid. You need this when making it setuid/setgid.
17 */
18 #define PTYTTY_HELPER 1
19
20 /*
21 * Define if you want to use a single helper process form multiple threads
22 * OR forked processes. Without it, the helper will only work from the
23 * process having started it, and it might not be possible to start another
24 * helper.
25 */
26 #define PTYTTY_REENTRANT 1
27
28 /*
29 * Provide a STL-like vector class and find algorithm.
30 * The default below fine for normal C++ environments.
31 */
32 #include <vector>
33 #include <algorithm>
34 using namespace std;
35
36 /*
37 * printf-like functions to be called on fatal conditions
38 * (must exit), or warning conditions (only print message)
39 * TODO move elsewhere, e.g. util.C
40 */
41 #define ptytty_fatal(msg) do { ptytty_warn ("%s", msg); _exit (1); } while (0)
42 #define ptytty_warn(msg,arg) fprintf (stderr, msg, arg) // TODO
43