[vala] posix: Add readlink(2) and ttyname_r(3)



commit 1cfff10c8ac48c73c2796c9c9376ad77fa1b9423
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Fri May 15 15:06:24 2009 +0200

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

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 98edfef..35b2bf8 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1100,6 +1100,8 @@ namespace Posix {
 	public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
 	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t read (int fd, void* buf, size_t count);
+	[CCode (cheader_filename = "unistd.h")]
+	public ssize_t readlink (string path, char[] buf);
 	[CCode (cheader_filename = "unistd.h,sys/types.h")]
 	public int setgid (gid_t gid);
 	[CCode (cheader_filename = "unistd.h,sys/types.h")]
@@ -1125,6 +1127,8 @@ namespace Posix {
 	[CCode (cheader_filename = "unistd.h")]
 	public unowned string ttyname (int fd);
 	[CCode (cheader_filename = "unistd.h")]
+	public int ttyname_r (int fd, char[] buf);
+	[CCode (cheader_filename = "unistd.h")]
 	public bool isatty (int fd);
 	[CCode (cheader_filename = "unistd.h")]
 	public int link (string from, string to);



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