[vala/0.50] posix: Add freopen binding, as FILE.reopen()



commit e7103f7cf01bf6fe1d922c9e4f9a86666d9d547a
Author: Reuben Thomas <rrt sc3d org>
Date:   Mon Nov 2 22:04:56 2020 +0000

    posix: Add freopen binding, as FILE.reopen()

 vapi/posix.vapi | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index cdf6c50c5..a0ff2aa4a 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -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")]


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