]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add freopen binding, as FILE.reopen()
authorReuben Thomas <rrt@sc3d.org>
Mon, 2 Nov 2020 22:04:56 +0000 (22:04 +0000)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Nov 2020 15:41:10 +0000 (16:41 +0100)
vapi/posix.vapi

index cdf6c50c5a53cddb3258b932193680384ceb8946..a0ff2aa4a3fe72cce719abf8f5f7bc1e4e869f18 100644 (file)
@@ -3188,6 +3188,9 @@ namespace Posix {
 
                [CCode (cname = "fopen")]
                public static FILE? open (string path, string mode);
+               [CCode (cname = "freopen", instance_pos = -1)]
+               [ReturnsModifiedPointer]
+               public void reopen (string filename, string mode);
                [CCode (cname = "fdopen")]
                public static FILE? fdopen (int fildes, string mode);
                [CCode (cname = "popen")]