mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
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:
committed by
Masayuki Ishikawa
parent
0a6c81b19c
commit
3cff139b85
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user