criu/include/tty.h
Pavel Emelyanov 62cf23b93a files: Hide pslist selection logic into file desc handlers
Don't do explicit switch by file type in files.c and don't export
intimate knowledge of pty being master/slave. Use a file desc op
for that.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-09-14 21:53:51 +04:00

21 lines
442 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 void tty_setup_slavery(void);
#endif /* CR_TTY_H__ */