Tue Nov 12 16:58:41 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
authorthomas <thomas>
Fri, 15 Nov 1996 19:44:42 +0000 (19:44 +0000)
committerthomas <thomas>
Fri, 15 Nov 1996 19:44:42 +0000 (19:44 +0000)
* mach/mach.h (__mach_msg_destroy, mach_msg_destroy, __mach_msg):
  Provide prototypes.

* mach/msg-destroy.c (mach_msg_destroy_port,
mach_msg_destroy_memory): Use prototype syntax.
* hurd/hurdmalloc.c (more_memory, malloc_fork_prepare,
malloc_fork_parent, malloc_fork_child): Likewise.

mach/mach.h
mach/msg-destroy.c

index ea39fb4..77b3139 100644 (file)
@@ -1,5 +1,5 @@
 /* Standard header for all Mach programs.
-Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -71,6 +71,14 @@ mach_msg_server_timeout (boolean_t (*__demux) (mach_msg_header_t *__request,
                         mach_msg_timeout_t __timeout);
 
 
+/* Deallocate all port rights and out-of-line memory in MSG. */
+extern void
+__mach_msg_destroy (mach_msg_header_t *msg),
+mach_msg_destroy (mach_msg_header_t *msg);
+
+/* XXX should be in mach/message.h. */
+extern typeof (mach_msg) __mach_msg;
+
 #define __need_FILE
 #include <stdio.h>
 
index c0841f1..585b9e2 100644 (file)
 /*
  * HISTORY
  * $Log$
+ * Revision 1.4  1996/11/15 19:44:43  thomas
+ * Tue Nov 12 16:58:41 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
+ *
+ *     * mach/mach.h (__mach_msg_destroy, mach_msg_destroy, __mach_msg):
+ *     Provide prototypes.
+ *
+ *     * mach/msg-destroy.c (mach_msg_destroy_port,
+ *     mach_msg_destroy_memory): Use prototype syntax.
+ *     * hurd/hurdmalloc.c (more_memory, malloc_fork_prepare,
+ *     malloc_fork_parent, malloc_fork_child): Likewise.
+ *
  * Revision 1.3  1995/01/23 22:16:52  roland
  * (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
  *
@@ -53,8 +64,8 @@
 #include <mach_init.h>
 #endif
 
-static void mach_msg_destroy_port();
-static void mach_msg_destroy_memory();
+static void mach_msg_destroy_port(mach_port_t, mach_msg_type_name_t);
+static void mach_msg_destroy_memory(vm_offset_t, vm_size_t);
 
 /*
  *     Routine:        mach_msg_destroy