mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
Currently fdinfo dumps for each task, so CR_FD_FDINFO is in cr_fdset. A few tasks can share one fd table and the set of descriptors will be dumped once and a image name will contain files_id instead of pid. In this case CR_FD_FDINFO will go away from cr_fdset. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
27 lines
583 B
C
27 lines
583 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 int fdinfo);
|
|
extern int dump_verify_tty_sids(void);
|
|
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__ */
|