home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp / src / l / inet-handler / util.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-05  |  702 b   |  36 lines

  1. /*
  2.  * util.c
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  * Copyright (c) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  7.  *              All rights reserved
  8.  *
  9.  * Created: Fri Oct 15 17:52:22 1993 too
  10.  * Last modified: Sat Oct 16 16:59:40 1993 too
  11.  *
  12.  * HISTORY
  13.  * $Log: util.c,v $
  14.  * Revision 1.1  1993/10/24  13:01:32  too
  15.  * Initial revision
  16.  *
  17.  */
  18.  
  19. #include <exec/types.h>
  20. #include <exec/ports.h>
  21.  
  22. #include "util.h"
  23.  
  24. void initMsgPort(struct MsgPort * port, UBYTE sig, struct Task * task)
  25. {
  26.   port->mp_Node.ln_Name = NULL;
  27.   port->mp_Node.ln_Pri = 0;
  28.   port->mp_Node.ln_Type = NT_MSGPORT;
  29.  
  30.   port->mp_Flags = PA_SIGNAL;
  31.   port->mp_SigBit = sig;
  32.   port->mp_SigTask = task;
  33.  
  34.   NewList(&(port->mp_MsgList));
  35. }
  36.