[vala] posix: Add mkfifo(3) and unlink(2) bindings



commit 6e3f23d644ff5ea84a395971a26223df0d42118a
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Wed Apr 1 17:16:53 2009 +0200

    posix: Add mkfifo(3) and unlink(2) bindings
    
    Signed-off-by: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
 vapi/posix.vapi |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 56e3bab..72ca3bc 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -619,6 +619,9 @@ namespace Posix {
 	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")]
 	public const mode_t S_IFBLK;
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]