[vala] posix.vapi: add missing getopt part



commit ca5c297688199c4913450eff02ecc3767a66be15
Author: Nikolay Orlyuk <virkony gmail com>
Date:   Sat Feb 23 12:23:01 2013 +0200

    posix.vapi: add missing getopt part
    
    Fixes bug 694508.

 vapi/posix.vapi | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index fba3e7c..36a64be 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2,6 +2,7 @@
  *
  * Copyright (C) 2008-2009  Jürg Billeter
  * Copyright (C) 2010 Marco Trevisan (Treviño)
+ * Copyright (C) 2013 Nikolay Orliuk
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -20,6 +21,7 @@
  * Author:
  *     Jürg Billeter <j bitron ch>
  *  Marco Trevisan (Treviño) <mail 3v1n0 net>
+ *  Nikolay Orliuk <virkony gmail com>
  */
 
 [CCode (cprefix = "", lower_case_cprefix = "")]
@@ -2567,4 +2569,15 @@ namespace Posix {
 
        [CCode (cheader_filename = "langinfo.h")]
        public unowned string nl_langinfo (NLItem item);
+
+       [CCode (cheader_filename = "unistd.h")]
+       public int getopt ([CCode (array_length_pos = 0)] string[] args, string optstring);
+       [CCode (cheader_filename = "unistd.h")]
+       public static string optarg;
+       [CCode (cheader_filename = "unistd.h")]
+       public static int optind;
+       [CCode (cheader_filename = "unistd.h")]
+       public static int opterr;
+       [CCode (cheader_filename = "unistd.h")]
+       public static int optopt;
 }


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