diff options
author | Roland McGrath <roland@gnu.org> | 1994-04-06 00:23:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-04-06 00:23:47 +0000 |
commit | 02a5e878336a7608b89251fc749548f69a43c503 (patch) | |
tree | 2a2900af0d01f39ef592144d8326882e05e39941 | |
parent | 5e6de05e47f14a6c7e3e42c5e5a45d126a89b4a9 (diff) |
Formerly fstests.c.~20~
-rw-r--r-- | fstests/fstests.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fstests/fstests.c b/fstests/fstests.c index 09ac9ba3..cc48f3e9 100644 --- a/fstests/fstests.c +++ b/fstests/fstests.c @@ -30,6 +30,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* mach_port_t _hurd_msgport = MACH_PORT_NULL; */ +int check_refs (mach_port_t port) /* To call from gdb */ +{ + int err; + mach_port_urefs_t refs; + err = mach_port_get_refs (mach_task_self (), + port, MACH_PORT_RIGHT_SEND, &refs); + return err ? -err : refs; +} + void main () { |