vala r2406 - in trunk: . vapi



Author: juergbi
Date: Tue Jan 27 21:53:56 2009
New Revision: 2406
URL: http://svn.gnome.org/viewvc/vala?rev=2406&view=rev

Log:
2009-01-27  JÃrg Billeter  <j bitron ch>

	* vapi/posix.vapi:

	Add bindings for open and associated functions and constants,
	patch by Michael Lauer


Modified:
   trunk/ChangeLog
   trunk/THANKS
   trunk/vapi/posix.vapi

Modified: trunk/THANKS
==============================================================================
--- trunk/THANKS	(original)
+++ trunk/THANKS	Tue Jan 27 21:53:56 2009
@@ -54,6 +54,7 @@
 Mart Roosmaa
 Mathias Hasselmann
 MatÃas De la Puente
+Michael Lauer
 Michael Lawrence
 Michael Terry
 Mikael Hermansson

Modified: trunk/vapi/posix.vapi
==============================================================================
--- trunk/vapi/posix.vapi	(original)
+++ trunk/vapi/posix.vapi	Tue Jan 27 21:53:56 2009
@@ -186,6 +186,33 @@
 	[CCode (cheader_filename = "errno.h")]
 	public const int EXDEV;
 
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_ACCMODE;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_RDONLY;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_WRONLY;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_RDWR;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_CREAT;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_EXCL;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_NOCTTY;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_TRUNC;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_APPEND;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_NONBLOCK;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_SYNC;
+	[CCode (cheader_filename = "fcntl.h")]
+	public const int O_ASYNC;
+	[CCode (cheader_filename = "fcntl.h")]
+	public int open (string path, int oflag);
+
 	[CCode (cheader_filename = "string.h")]
 	public int memcmp (void* s1, void* s2, size_t n);
 	[CCode (cheader_filename = "string.h")]
@@ -270,6 +297,12 @@
 	public int socket (int domain, int type, int protocol);
 
 	[CCode (cheader_filename = "unistd.h")]
+	public int close (int fd);
+	[CCode (cheader_filename = "unistd.h")]
 	public int execl (string path, params string[] arg);
+	[CCode (cheader_filename = "unistd.h")]
+	public ssize_t read (int fd, void* buf, size_t count);
+	[CCode (cheader_filename = "unistd.h")]
+	public ssize_t write (int fd, void* buf, size_t count);
 }
 



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