aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_bsdsetsid.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_bsdsetsid.S')
-rw-r--r--src/c_bsdsetsid.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S
index abf5afb..d9b1067 100644
--- a/src/c_bsdsetsid.S
+++ b/src/c_bsdsetsid.S
@@ -3,14 +3,17 @@ str:
.asciz "a string\n"
.text
-.extern u_write
.globl _start
_start:
+ jmp c_main
+
+c_main:
movq $0x1, %rdi
leaq str, %rsi
movq $0x9, %rdx
- callq u_write
- movq $0x1, %rax
+ movq $0x4, %rax
+ syscall
xorq %rdi, %rdi
+ movq $0x1, %rax
syscall