[vala] linux: add makedev(3), major(3), and minor(3)



commit 61982663cb7f8243532a0acf851fa2db04b3734f
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Sat Mar 26 13:27:16 2011 +0100

    linux: add makedev(3), major(3), and minor(3)

 vapi/linux.vapi |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 2611011..9f6bfb1 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -975,6 +975,13 @@ namespace Linux {
     [CCode (cheader_filename = "sys/ioctl.h", sentinel = "")]
     public int ioctl (int fd, int request, ...);
 
+    [CCode (cname = "makedev", cheader_filename = "sys/types.h")]
+    public Posix.dev_t makedev (int maj, int min);
+    [CCode (cname = "major", cheader_filename = "sys/types.h")]
+    public int major (Posix.dev_t dev);
+    [CCode (cname = "minor", cheader_filename = "sys/types.h")]
+    public int minor (Posix.dev_t dev);
+
     [CCode (cname = "unsigned long int", cprefix = "MS_", cheader_filename = "sys/mount.h,linux/fs.h")]
     public enum MountFlags {
         RDONLY,



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