1 /* This is bytecode inserted on the stack of the attached application. */
2 /* When you modify it, check that the length is dword-aligned. */
6 * Thrice he cried. Thrice the great ram boomed. And suddenly upon the last
7 * stroke the Gate of Gondor broke. As if stricken by some blasting spell it
8 * burst asunder: there was a flash of searing lightning, and the doors
9 * tumbled in riven fragments to the ground.
27 .equ sizeof_termios, 60
52 sub $sizeof_termios, %esp
58 push %eax /* fd of the terminal */
64 push %eax /* old stdin */
70 push %eax /* old stdout */
76 push %eax /* old stderr */
94 mov 0xc(%esp), %ebx /* pts fd */
112 /* From now on, NO %esp MANIPULATION PERMITTED!
113 We will look back at the stack from the retty process. ;-) */
119 lea -sizeof_termios(%ebp), %edx
126 lea -sizeof_termios(%ebp), %edx
133 lea -sizeof_termios(%ebp), %edx
140 lea -sizeof_termios(%ebp), %edx
147 lea -sizeof_termios(%ebp), %edx
154 lea -sizeof_termios(%ebp), %edx
163 mov $SYS_getpid, %eax
176 /* The value will be rewritten */
177 add $0x12000000, %esp