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.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/c_bsdsetsid.S b/src/c_bsdsetsid.S
new file mode 100644
index 0000000..abf5afb
--- /dev/null
+++ b/src/c_bsdsetsid.S
@@ -0,0 +1,16 @@
+.data
+str:
+ .asciz "a string\n"
+
+.text
+.extern u_write
+.globl _start
+
+_start:
+ movq $0x1, %rdi
+ leaq str, %rsi
+ movq $0x9, %rdx
+ callq u_write
+ movq $0x1, %rax
+ xorq %rdi, %rdi
+ syscall