diff options
author | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2009-04-01 17:16:53 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-04-12 17:59:33 +0200 |
commit | 1c5b40d61feac7fb17c87dad57255a535630fed1 (patch) | |
tree | b40a594663230058c76d6a880b35a0fa00a0deee | |
parent | 40621dc1c54e5037e2df01a2553d856f8fa5c8eb (diff) | |
download | vala-1c5b40d61feac7fb17c87dad57255a535630fed1.tar.gz |
posix: Add mkfifo(3) and unlink(2) bindings
Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
-rw-r--r-- | vapi/posix.vapi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 56e3babe7..72ca3bc3d 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); |