[vala/0.40] posix: Add freopen binding, as FILE.reopen()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] posix: Add freopen binding, as FILE.reopen()
- Date: Sun, 3 Jan 2021 12:46:52 +0000 (UTC)
commit ebb06996c223a4aedcac313eb67f4822662a9633
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 4845328d6..07bc8f996 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -2850,6 +2850,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]