]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Fix termios and fd_set related functions
authorSimon Busch <morphis@gravedo.de>
Wed, 30 Nov 2011 17:06:50 +0000 (18:06 +0100)
committerJürg Billeter <j@bitron.ch>
Wed, 21 Dec 2011 15:30:44 +0000 (16:30 +0100)
vapi/posix.vapi

index 484628911771b9a40b031e96ea5897e3d44b1838..dc185126a46eec33a1009e7505a77179485b2074 100644 (file)
@@ -1997,7 +1997,7 @@ namespace Posix {
        }
 
        [CCode (cheader_filename = "termios.h")]
-       public int tcgetattr (int fd, termios termios_p);
+       public int tcgetattr (int fd, out termios termios_p);
        [CCode (cheader_filename = "termios.h")]
        public int tcsetattr (int fd, int optional_actions, termios termios_p);
        [CCode (cheader_filename = "termios.h")]
@@ -2009,17 +2009,17 @@ namespace Posix {
        [CCode (cheader_filename = "termios.h")]
        public int tcflow (int fd, int action);
        [CCode (cheader_filename = "termios.h")]
-       public void cfmakeraw (termios termios_p);
+       public void cfmakeraw (ref termios termios_p);
        [CCode (cheader_filename = "termios.h")]
        public speed_t cfgetispeed (termios termios_p);
        [CCode (cheader_filename = "termios.h")]
        public speed_t cfgetospeed (termios termios_p);
        [CCode (cheader_filename = "termios.h")]
-       public int cfsetispeed (termios termios_p, speed_t speed);
+       public int cfsetispeed (ref termios termios_p, speed_t speed);
        [CCode (cheader_filename = "termios.h")]
-       public int cfsetospeed (termios termios_p, speed_t speed);
+       public int cfsetospeed (ref termios termios_p, speed_t speed);
        [CCode (cheader_filename = "termios.h")]
-       public int cfsetspeed (termios termios, speed_t speed);
+       public int cfsetspeed (ref termios termios, speed_t speed);
 
        //c_iflag
        [CCode (cheader_filename = "termios.h")]
@@ -2258,17 +2258,17 @@ namespace Posix {
        }
 
        [CCode (cheader_filename = "sys/select.h")]
-       public int select (int nfds, fd_set? readfds, fd_set? writefds, fd_set? exceptfds, timeval timeout);
+       public int select (int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timeval timeout);
        [CCode (cheader_filename = "sys/select.h")]
-       public void FD_CLR (int fd, fd_set @set);
+       public void FD_CLR (int fd, ref fd_set @set);
        [CCode (cheader_filename = "sys/select.h")]
        public int  FD_ISSET (int fd, fd_set @set);
        [CCode (cheader_filename = "sys/select.h")]
-       public void FD_SET (int fd, fd_set @set);
+       public void FD_SET (int fd, ref fd_set @set);
        [CCode (cheader_filename = "sys/select.h")]
-       public void FD_ZERO (fd_set @set);
+       public void FD_ZERO (out fd_set @set);
        [CCode (cheader_filename = "sys/select.h")]
-       public int pselect (int nfds, fd_set? readfds, fd_set? writefds, fd_set? exceptfds, timespec timeout, sigset_t sigmask);
+       public int pselect (int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timespec timeout, sigset_t sigmask);
 
        // sys/mman.h - Posix mmap(), munmap(), mprotect()
        [CCode (cheader_filename = "sys/mman.h")]