ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libptytty/src/ptytty_conf.h
Revision: 1.22
Committed: Sat Jun 26 14:31:15 2021 UTC (5 years, 3 months ago) by sf-exg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.21: +0 -12 lines
Log Message:
Remove PTYTTY_{WARN,FATAL} and throw on failure

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 sf-exg 1.20 * Define if you want to enable the C api.
18     */
19 sf-exg 1.21 #ifndef PTYTTY_C_API
20     # define PTYTTY_C_API 1
21     #endif
22 sf-exg 1.20
23     /*
24 root 1.1 * Define if you want to use a separate process for pty/tty handling
25     * when running setuid/setgid. You need this when making it setuid/setgid.
26     */
27 root 1.13 #ifndef PTYTTY_HELPER
28     # define PTYTTY_HELPER 1
29     #endif
30 root 1.1
31 root 1.2 /*
32 root 1.18 * Define if you want to use a single helper process from multiple
33     * threads OR forked processes. Without it, the user is responsible for
34 sf-exg 1.19 * serialising all calls to libptytty functions. Having it disabled
35 root 1.18 * avoids some syscalls and reduces codesize, but unless you are really
36     * short on cpu or memory, it's not worth disabling.
37 root 1.6 */
38 root 1.13 #ifndef PTYTTY_REENTRANT
39     # define PTYTTY_REENTRANT 1
40     #endif