]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add bindings for open and associated functions and constants, patch by
authorJürg Billeter <j@bitron.ch>
Tue, 27 Jan 2009 21:53:56 +0000 (21:53 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 27 Jan 2009 21:53:56 +0000 (21:53 +0000)
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

ChangeLog
THANKS
vapi/posix.vapi

index 9ff0dd1826ad11b84f16edfd8b486a3b778267bd..0233b485fa500e50db6b4150085e15c296f27008 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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:
diff --git a/THANKS b/THANKS
index 10da1711c374011d124d7c0279040f3cd5e2dde3..09b52dec8058192cd051b528435c7a4502a32103 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -54,6 +54,7 @@ Mark Lee
 Mart Roosmaa
 Mathias Hasselmann
 Matías De la Puente
+Michael Lauer
 Michael Lawrence
 Michael Terry
 Mikael Hermansson
index 900b679f06636436736f98acc4ec51283b6a9747..2e4abf6bf88200fd6a51a4c42b50b37628b21427 100644 (file)
@@ -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);
 }