projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent passing PT_INTERP name to dlopen from double-loading libc
[musl]
/
src
/
linux
/
sethostname.c
diff --git
a/src/linux/sethostname.c
b/src/linux/sethostname.c
index
f61e0cb
..
79a8707
100644
(file)
--- a/
src/linux/sethostname.c
+++ b/
src/linux/sethostname.c
@@
-1,8
+1,7
@@
#include <unistd.h>
#include <unistd.h>
-#define SYSCALL_STANDALONE
#include "syscall.h"
int sethostname(const char *name, size_t len)
{
#include "syscall.h"
int sethostname(const char *name, size_t len)
{
- return syscall
2(__NR_sethostname, (long)
name, len);
+ return syscall
(SYS_sethostname,
name, len);
}
}