[Vala] [RESEND] [PATCH] Fix Posix.getpgid() binding




It's been a while since I sent this, and looking at the archives, I somehow must have mangled the email. Here it is again. This fixes the binding for getpgid() to take a single parameter, a pid_t, which complies both with POSIX and Linux, specifically:

From 81a7e1cbbfc6f5f5ba765b7338578c54a8979053 Mon Sep 17 00:00:00 2001
From: Michael B. Trausch <mike trausch us>
Date: Thu, 11 Jun 2009 23:20:12 -0400
Subject: [PATCH] Fix Posix.getpgid() binding

The getpgid function call takes a single parameter, the PID of the
process the user is interested in getting the PGID for, per POSIX and
Linux man pages.

Signed-off-by: Michael B. Trausch <mike trausch us>
---
 vapi/posix.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index deccb51..fc8738c 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1225,7 +1225,7 @@ namespace Posix {
        [CCode (cheader_filename = "unistd.h")]
        public pid_t getpgrp ();
        [CCode (cheader_filename = "unistd.h")]
-       public pid_t getpgid ();
+       public pid_t getpgid (pid_t pid);
        [CCode (cheader_filename = "unistd.h")]
        public int setpgid (pid_t pid, pid_t pgid);
        [CCode (cheader_filename = "unistd.h")]
--
1.6.0.4




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