home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / messages / src / remport.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-16  |  1.1 KB  |  61 lines

  1. /*
  2.     $Id$
  3.     $Log$
  4.     Desc:
  5.     Lang: english
  6. */
  7. #include "exec_intern.h"
  8. #include <exec/ports.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13.     #include <clib/exec_protos.h>
  14.  
  15.     __AROS_LH1(void, RemPort,
  16.  
  17. /*  SYNOPSIS */
  18.     __AROS_LA(struct MsgPort *, port, A1),
  19.  
  20. /*  LOCATION */
  21.     struct ExecBase *, SysBase, 60, Exec)
  22.  
  23. /*  FUNCTION
  24.     Remove a public port from the public port list to make it private
  25.     again. Any further attempts to find this port in the public port
  26.     list will fail.
  27.  
  28.     INPUTS
  29.     port - Pointer to messageport structure.
  30.  
  31.     RESULT
  32.  
  33.     NOTES
  34.  
  35.     EXAMPLE
  36.  
  37.     BUGS
  38.  
  39.     SEE ALSO
  40.  
  41.     INTERNALS
  42.  
  43.     HISTORY
  44.     29-10-95    digulla automatically created from
  45.                 exec_lib.fd and clib/exec_protos.h
  46.     17-12-95    digulla Incorporated code by Matthias Fleischner
  47.  
  48. *****************************************************************************/
  49. {
  50.     __AROS_FUNC_INIT
  51.     /* Arbitrate for the list of message ports.*/
  52.     Forbid();
  53.  
  54.     /* Remove the current port. */
  55.     Remove(&port->mp_Node);
  56.  
  57.     /* All done. */
  58.     Permit();
  59.     __AROS_FUNC_EXIT
  60. } /* RemPort */
  61.