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 #ifndef RESTORE_TTY_MODE
13 # define RESTORE_TTY_MODE 0666
14 #endif
15 
16 /*
17  * Define if you want to enable the C api.
18  */
19 #ifndef PTYTTY_C_API
20 # define PTYTTY_C_API 1
21 #endif
22 
23 /*
24  * 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 #ifndef PTYTTY_HELPER
28 # define PTYTTY_HELPER 1
29 #endif
30 
31 /*
32  * 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  * serialising all calls to libptytty functions. Having it disabled
35  * avoids some syscalls and reduces codesize, but unless you are really
36  * short on cpu or memory, it's not worth disabling.
37  */
38 #ifndef PTYTTY_REENTRANT
39 # define PTYTTY_REENTRANT 1
40 #endif
41