reptyr  0.8.0
About: reptyr is a utility for taking an existing running program and attaching it to a new terminal.
  Fossies Dox: reptyr-reptyr-0.8.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

reptyr.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define REPTYR_VERSION   "0.8.0"
#define assert_nonzero(expr)
#define __printf   __attribute__((format(printf, 1, 2)))


int attach_child (pid_t pid, const char *pty, int force_stdio)
int steal_pty (pid_t pid, int *pty)
void die (const char *msg,...)
void debug (const char *msg,...)
void error (const char *msg,...)

Macro Definition Documentation

◆ __printf

#define __printf   __attribute__((format(printf, 1, 2)))

Definition at line 34 of file reptyr.h.

◆ assert_nonzero

#define assert_nonzero (   expr)
({ \
typeof(expr) __val = expr; \
if (__val == 0) \
die("Unexpected: %s == 0!\n", #expr); \
__val; \

Definition at line 25 of file reptyr.h.


#define REPTYR_VERSION   "0.8.0"

Definition at line 23 of file reptyr.h.

Function Documentation

◆ attach_child()

◆ debug()

void debug ( const char *  msg,

◆ die()

void die ( const char *  msg,

Definition at line 49 of file reptyr.c.

References _debug().

Referenced by main(), and setup_raw().

◆ error()

void error ( const char *  msg,

Definition at line 70 of file reptyr.c.

References _debug().

Referenced by attach_child(), do_setsid(), setup_steal_socket(), steal_child_pty(), steal_pty(), and wait_for_stop().

◆ steal_pty()