How to Get Hostname in Assembly - Code Snippet

How to perform 'Get Hostname' in Assembly.

example.asm
; Task: Get Hostname
; Language: Assembly

section .text
global _start
_start:
	; Implementation for Get Hostname
	; TODO: Implement core logic here
	; Step 1: Prepare data
	; Step 2: Process Get Hostname
	mov eax, 1
	int 0x80
AdSense Slot