]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add mkfifo(3) and unlink(2) bindings
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Wed, 1 Apr 2009 15:16:53 +0000 (17:16 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 15:59:33 +0000 (17:59 +0200)
Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index 56e3babe752697fd1371f2e076516020c9185977..72ca3bc3d668146929027488b1ce81b7bb2d0e77 100644 (file)
@@ -618,6 +618,9 @@ namespace Posix {
        [CCode (cheader_filename = "sys/socket.h")]
        public int socketpair (int domain, int type, int protocol, int[] sv);
 
+       [CCode (cheader_filename = "sys/stat.h")]
+       public int mkfifo (string filename, mode_t mode);
+
        [CCode (cheader_filename = "sys/stat.h")]
        public const mode_t S_IFMT;
        [CCode (cheader_filename = "sys/stat.h")]
@@ -808,6 +811,8 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public ssize_t read (int fd, void* buf, size_t count);
        [CCode (cheader_filename = "unistd.h")]
+       public int unlink (string filename);
+       [CCode (cheader_filename = "unistd.h")]
        public ssize_t write (int fd, void* buf, size_t count);
        [CCode (cheader_filename = "unistd.h")]
        public off_t lseek(int fildes, off_t offset, int whence);