1 /* This is bytecode inserted on the stack of the attached application. */
2 /* When you modify it, check that the length is dword-aligned. */
20 .equ sizeof_termios, 60
45 sub $sizeof_termios, %esp
51 push %eax /* fd of the terminal */
56 push %eax /* old stdin */
61 push %eax /* old stdout */
66 push %eax /* old stderr */
81 mov 0xc(%esp), %ebx /* pts fd */
96 /* From now on, NO %esp MANIPULATION PERMITTED!
97 We will look back at the stack from the retty process. ;-) */
103 lea -sizeof_termios(%ebp), %edx
109 lea -sizeof_termios(%ebp), %edx
116 lea -sizeof_termios(%ebp), %edx
122 lea -sizeof_termios(%ebp), %edx
129 lea -sizeof_termios(%ebp), %edx
135 lea -sizeof_termios(%ebp), %edx
144 mov $SYS_getpid, %eax
157 /* The value will be rewritten */
158 add $0x12000000, %esp