summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/sethostname.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-06-25 18:05:31 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-06-25 18:05:31 +0000
commitffddf61ea772beefa754a19c819564152c979579 (patch)
tree63546067988532d383c1f3dc909eb3f7a777be30 /newlib/libc/sys/linux/sethostname.c
parent6331b65843ca7cd30d47d0cc16f63f84257e2466 (diff)
downloadcygnal-ffddf61ea772beefa754a19c819564152c979579.tar.gz
cygnal-ffddf61ea772beefa754a19c819564152c979579.tar.bz2
cygnal-ffddf61ea772beefa754a19c819564152c979579.zip
2002-06-25 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/sethostname.c: New file. * libc/sys/linux/Makefile.am: Add sethostname.c support. * libc/sys/linux/Makefile.in: Regenerated.
Diffstat (limited to 'newlib/libc/sys/linux/sethostname.c')
-rw-r--r--newlib/libc/sys/linux/sethostname.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/sethostname.c b/newlib/libc/sys/linux/sethostname.c
new file mode 100644
index 000000000..669df3d74
--- /dev/null
+++ b/newlib/libc/sys/linux/sethostname.c
@@ -0,0 +1,8 @@
+/* libc/sys/linux/sethostname.c - Set host name */
+
+/* Copyright 2002, Red Hat Inc. */
+
+#include <unistd.h>
+#include <machine/syscall.h>
+
+_syscall2(int,sethostname,const char *,name,size_t,len);