summaryrefslogtreecommitdiff
path: root/libpager/notify-stubs.c
diff options
context:
space:
mode:
authorSergio Lopez <koro@sinrega.org>2005-08-10 17:33:37 +0200
committerThomas Schwinge <thomas@schwinge.name>2011-11-24 08:17:33 +0100
commitf1d119a500a9294c81330ecd52a3221578a22bc3 (patch)
treed206cd12ceea487e414a25c5c393ea0823ce7482 /libpager/notify-stubs.c
parent05f5cc229323a61799388fbb52da84ca8cb502c9 (diff)
Don't forget to update port sequence numbers in stub functions.
* seqnos.c (_pager_stubs_update_seqno): New function. * priv.h (_pager_stubs_update_seqno): New function. * notify-stubs.c (_pager_do_seqnos_mach_notify_port_deleted): Call _pager_stubs_update_seqno to properly update seqno. (_pager_do_seqnos_mach_notify_msg_accepted): Likewise. (_pager_do_seqnos_mach_notify_port_destroyed): Likewise. (_pager_do_seqnos_mach_notify_send_once): Likewise. (_pager_do_seqnos_mach_notify_dead_name): Likewise. * stubs.c (_pager_seqnos_memory_object_copy): Likewise. (_pager_seqnos_memory_object_data_write): Likewise. (_pager_seqnos_memory_object_supply_completed): Likewise.
Diffstat (limited to 'libpager/notify-stubs.c')
-rw-r--r--libpager/notify-stubs.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libpager/notify-stubs.c b/libpager/notify-stubs.c
index 728163e4..aec56e35 100644
--- a/libpager/notify-stubs.c
+++ b/libpager/notify-stubs.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 2011 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -18,6 +18,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+#include "priv.h"
#include "notify_S.h"
#include <errno.h>
@@ -29,6 +30,8 @@ _pager_do_seqnos_mach_notify_port_deleted (mach_port_t notify
mach_port_t name
__attribute__ ((unused)))
{
+ _pager_stubs_update_seqno (notify, seqno);
+
return 0;
}
@@ -40,6 +43,8 @@ _pager_do_seqnos_mach_notify_msg_accepted (mach_port_t notify
mach_port_t name
__attribute__ ((unused)))
{
+ _pager_stubs_update_seqno (notify, seqno);
+
return 0;
}
@@ -51,6 +56,8 @@ _pager_do_seqnos_mach_notify_port_destroyed (mach_port_t notify
mach_port_t name
__attribute__ ((unused)))
{
+ _pager_stubs_update_seqno (notify, seqno);
+
return 0;
}
@@ -60,6 +67,8 @@ _pager_do_seqnos_mach_notify_send_once (mach_port_t notify
mach_port_seqno_t seqno
__attribute__ ((unused)))
{
+ _pager_stubs_update_seqno (notify, seqno);
+
return 0;
}
@@ -71,5 +80,7 @@ _pager_do_seqnos_mach_notify_dead_name (mach_port_t notify
mach_port_t name
__attribute__ ((unused)))
{
+ _pager_stubs_update_seqno (notify, seqno);
+
return 0;
}