ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/ptytty_conf.h
Revision: 1.18
Committed: Mon Dec 30 21:44:52 2013 UTC (12 years, 9 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.17: +5 -5 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 /*
2 root 1.3 * 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 root 1.2 * Default mode to restore when releasing the PTS device. It is relaxed to be
9 root 1.1 * compatible with most systems, change it to a more secure value if your
10     * system supports it (0640 for example).
11     */
12 root 1.13 #ifndef RESTORE_TTY_MODE
13     # define RESTORE_TTY_MODE 0666
14     #endif
15 root 1.1
16     /*
17     * Define if you want to use a separate process for pty/tty handling
18     * when running setuid/setgid. You need this when making it setuid/setgid.
19     */
20 root 1.13 #ifndef PTYTTY_HELPER
21     # define PTYTTY_HELPER 1
22     #endif
23 root 1.1
24 root 1.2 /*
25 root 1.18 * Define if you want to use a single helper process from multiple
26     * threads OR forked processes. Without it, the user is responsible for
27     * serialiasing all calls to libptytty functions. Having it disabled
28     * avoids some syscalls and reduces codesize, but unless you are really
29     * short on cpu or memory, it's not worth disabling.
30 root 1.6 */
31 root 1.13 #ifndef PTYTTY_REENTRANT
32     # define PTYTTY_REENTRANT 1
33     #endif
34 root 1.6
35     /*
36 root 1.5 * printf-like functions to be called on fatal conditions
37     * (must exit), or warning conditions (only print message)
38     */
39 sf-exg 1.12 #ifndef PTYTTY_FATAL
40 sf-exg 1.17 #define PTYTTY_FATAL(msg) do { PTYTTY_WARN (msg); _exit (1); } while (0)
41 sf-exg 1.12 #endif
42     #ifndef PTYTTY_WARN
43 sf-exg 1.17 #define PTYTTY_WARN(msg) fputs (msg, stderr)
44 sf-exg 1.12 #endif
45 root 1.8