diff options
author | Sergio Lopez <koro@sinrega.org> | 2005-08-10 17:33:37 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-11-24 08:17:33 +0100 |
commit | f1d119a500a9294c81330ecd52a3221578a22bc3 (patch) | |
tree | d206cd12ceea487e414a25c5c393ea0823ce7482 /libpager/stubs.c | |
parent | 05f5cc229323a61799388fbb52da84ca8cb502c9 (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/stubs.c')
-rw-r--r-- | libpager/stubs.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libpager/stubs.c b/libpager/stubs.c index b455699e..44005378 100644 --- a/libpager/stubs.c +++ b/libpager/stubs.c @@ -1,5 +1,5 @@ /* Unused memory object interface stubs - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 2011 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -29,6 +29,9 @@ _pager_seqnos_memory_object_copy (mach_port_t old, mach_port_t new) { printf ("m_o_copy called\n"); + + _pager_stubs_update_seqno (old, seq); + return EOPNOTSUPP; } @@ -41,6 +44,9 @@ _pager_seqnos_memory_object_data_write (mach_port_t old, vm_size_t data_cnt) { printf ("m_o_data_write called\n"); + + _pager_stubs_update_seqno (old, seq); + return EOPNOTSUPP; } @@ -54,6 +60,8 @@ _pager_seqnos_memory_object_supply_completed (mach_port_t obj, vm_offset_t err_off) { printf ("m_o_supply_completed called\n"); + + _pager_stubs_update_seqno (obj, seq); + return EOPNOTSUPP; } - |