[vala] linux: add ioctl(2)



commit a6f83c515090d725d78d86998b46c9690ed238e4
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Mon May 10 08:08:12 2010 +0200

    linux: add ioctl(2)
    
    ioctl(2) is also defined in Posix.vapi, however the POSIX XSR option
    (with stropts.h) is only supported on some Linux distributions.

 vapi/linux.vapi |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 3a81bfb..6871a20 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -718,6 +718,9 @@ namespace Linux {
     [CCode (cheader_filename = "arpa/inet.h")]
     public int inet_aton (string cp, out Posix.InAddr addr);
 
+    [CCode (cheader_filename = "sys/ioctl.h", sentinel = "")]
+    public int ioctl (int fd, int request, ...);
+
     [CCode (cname = "long", cprefix = "", cheader_filename = "sys/mount.h,linux/fs.h")]
     public enum MountFlags {
         MS_BIND,



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