]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: add ioctl(2)
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 10 May 2010 06:08:12 +0000 (08:08 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 10 May 2010 06:08:12 +0000 (08:08 +0200)
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

index 3a81bfb96edf2f11addc5e88a6247a66f44af192..6871a20701c19ea22ab14c70b67b0eec8e0b8b9b 100644 (file)
@@ -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,