Commit 9e4327e9 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

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

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

svn path=/trunk/; revision=2406
parent 365e49a6
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
2009-01-27 Jürg Billeter <j@bitron.ch>
* vala/valacodewriter.vala:
......
......@@ -54,6 +54,7 @@ Mark Lee
Mart Roosmaa
Mathias Hasselmann
Matías De la Puente
Michael Lauer
Michael Lawrence
Michael Terry
Mikael Hermansson
......
......@@ -186,6 +186,33 @@ namespace Posix {
[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")]
......@@ -269,7 +296,13 @@ namespace Posix {
[CCode (cheader_filename = "sys/socket.h")]
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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment