projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fmemopen: fix eof handling, hopefully right this time
[oweals/musl.git]
/
src
/
linux
/
sethostname.c
diff --git
a/src/linux/sethostname.c
b/src/linux/sethostname.c
index f61e0cb4e5d38b2a74ecc3565602c8b2b939eadb..79a87078c936e7c71707eaef23668cdf798a93d5 100644
(file)
--- a/
src/linux/sethostname.c
+++ b/
src/linux/sethostname.c
@@
-1,8
+1,7
@@
#include <unistd.h>
-#define SYSCALL_STANDALONE
#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);
}