libc: Make gethostname as syscall instead of uname

simplify and symmetry the implementation in KERNEL/PROTECTED build

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iefdeea5f6ef6348c774b2ca9f7e45fe89c0c22dd
This commit is contained in:
Xiang Xiao
2020-07-28 17:52:17 +08:00
committed by Masayuki Ishikawa
parent 0a6c81b19c
commit 3cff139b85
4 changed files with 13 additions and 53 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ SYSCALL_LOOKUP(nxsched_get_stackinfo, 2)
SYSCALL_LOOKUP(sched_setaffinity, 3)
#endif
SYSCALL_LOOKUP(uname, 1)
SYSCALL_LOOKUP(gethostname, 2)
SYSCALL_LOOKUP(sethostname, 2)
/* User identity */