home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / callout < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.2 KB  |  50 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/callout.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/callout.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    callout.h,v $
  8.  * Revision 1.1  95/01/11  10:18:58  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:18:23  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)callout.h    1.2 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)callout.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * The callout structure is for
  26.  * a routine arranging
  27.  * to be called by the clock interrupt
  28.  * (clock.c) with a specified argument,
  29.  * in a specified amount of time.
  30.  * Used, for example, to time tab
  31.  * delays on typewriters.
  32.  */
  33.  
  34. struct    callout {
  35.     int    c_time;        /* incremental time */
  36.     caddr_t    c_arg;        /* argument to routine */
  37.     int    (*c_func)();    /* routine */
  38.     struct    callout *c_next;
  39. };
  40. #ifdef    KERNEL
  41. #ifdef    DYNALLOC
  42. struct    callout *callfree, *callout, calltodo;
  43. #else    DYNALLOC
  44. struct    callout *callfree, stat_callout[NCALLOUT], *callout, calltodo;
  45. #endif    DYNALLOC
  46. int    ncallout;
  47. #endif
  48.  
  49. /* EOF callout.h */
  50.