]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add gethostname(2)
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 7 May 2010 09:08:18 +0000 (11:08 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 7 May 2010 09:08:18 +0000 (11:08 +0200)
vapi/posix.vapi

index 968bd8f781d254cc57b3d4242c8819fe98a023bf..d014c06ffb5d937ef70bfcb80289957d21299dee 100644 (file)
@@ -1628,6 +1628,8 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public int dup2 (int fd1, int fd2);
        [CCode (cheader_filename = "unistd.h")]
+       public int gethostname (char[] name);
+       [CCode (cheader_filename = "unistd.h")]
        public pid_t getpid ();
        [CCode (cheader_filename = "unistd.h")]
        public pid_t getppid ();