.text .globl foo; .type foo, @function; .align 4; foo: movl $2,%eax # sys_fork int $0x80 cmpl $0,%eax jne done xorl %ebx,%ebx loop: movl $6,%eax # sys_close int $0x80 addl $1,%ebx cmpl $0x400,%ebx jne loop done: int3 .globl endfoo; .type endfoo, @function; .align 4; endfoo: