mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
We will need it for slave ttys migration. They serve for one purpose -- to clone self stdio descriptor and use it with tty layer, which will be addressed in further patches. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
26 lines
548 B
C
26 lines
548 B
C
#ifndef CR_TTY_H__
|
|
#define CR_TTY_H__
|
|
|
|
#include "files.h"
|
|
#include "crtools.h"
|
|
|
|
/* Kernel's limit */
|
|
#define TERMIOS_NCC 19
|
|
|
|
#define PTMX_PATH "/dev/ptmx"
|
|
#ifndef PTMX_MINOR
|
|
# define PTMX_MINOR 2
|
|
#endif
|
|
#define PTS_FMT "/dev/pts/%d"
|
|
|
|
extern int dump_tty(struct fd_parms *p, int lfd, const struct cr_fdset *set);
|
|
extern int collect_tty(void);
|
|
extern int prepare_shared_tty(void);
|
|
extern int tty_setup_slavery(void);
|
|
|
|
extern int tty_verify_active_pairs(void);
|
|
|
|
extern int tty_prep_fds(void);
|
|
extern void tty_fini_fds(void);
|
|
|
|
#endif /* CR_TTY_H__ */
|