From: Nikolay Orlyuk Date: Sat, 23 Feb 2013 10:23:01 +0000 (+0200) Subject: posix.vapi: add missing getopt part X-Git-Tag: 0.21.1~76 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ca5c297688199c4913450eff02ecc3767a66be15;p=thirdparty%2Fvala.git posix.vapi: add missing getopt part Fixes bug 694508. --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index fba3e7c86..36a64be92 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 * Marco Trevisan (Treviño) + * Nikolay Orliuk */ [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; }