[vala] linux: add sethostname(2)
- From: Michael Lauer <mlauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] linux: add sethostname(2)
- Date: Fri, 7 May 2010 09:10:56 +0000 (UTC)
commit c13a0d940099582c0a4a6b7d9d8780564321e3e1
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Fri May 7 11:10:29 2010 +0200
linux: add sethostname(2)
vapi/linux.vapi | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index bd0eb8f..3a81bfb 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -712,6 +712,9 @@ namespace Linux {
[CCode (cheader_filename = "execinfo.h")]
public void backtrace_symbols_fd (void* buffer, int size, int fd);
+ [CCode (cheader_filename = "unistd.h")]
+ public int sethostname (char[] name);
+
[CCode (cheader_filename = "arpa/inet.h")]
public int inet_aton (string cp, out Posix.InAddr addr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]