home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / dos / maxcli.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  1.5 KB  |  73 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: maxcli.c,v 1.6 1997/01/27 00:36:26 ldp Exp $
  4.     $Log: maxcli.c,v $
  5.     Revision 1.6  1997/01/27 00:36:26  ldp
  6.     Polish
  7.  
  8.     Revision 1.5  1996/12/09 13:53:34  aros
  9.     Added empty templates for all missing functions
  10.  
  11.     Moved #include's into first column
  12.  
  13.     Revision 1.4  1996/10/24 15:50:33  aros
  14.     Use the official AROS macros over the __AROS versions.
  15.  
  16.     Revision 1.3  1996/10/10 13:21:22  digulla
  17.     Returns ULONG instead of BPTR (Fleischer)
  18.  
  19.     Revision 1.2  1996/08/01 17:40:55  digulla
  20.     Added standard header for all files
  21.  
  22.     Desc:
  23.     Lang: english
  24. */
  25. #include <exec/execbase.h>
  26. #include <proto/exec.h>
  27. #include <dos/dosextens.h>
  28.  
  29. /*****************************************************************************
  30.  
  31.     NAME */
  32. #include <proto/dos.h>
  33.  
  34.     AROS_LH0(ULONG, MaxCli,
  35.  
  36. /*  SYNOPSIS */
  37.  
  38. /*  LOCATION */
  39.     struct DosLibrary *, DOSBase, 92, Dos)
  40.  
  41. /*  FUNCTION
  42.     Returns the highest Cli number currently in use. Since processes
  43.     may be added and removed at any time the returned value may already
  44.     be wrong.
  45.  
  46.     INPUTS
  47.  
  48.     RESULT
  49.     Maximum Cli number (_not_ the number of Clis).
  50.  
  51.     NOTES
  52.  
  53.     EXAMPLE
  54.  
  55.     BUGS
  56.  
  57.     SEE ALSO
  58.  
  59.     INTERNALS
  60.  
  61.     HISTORY
  62.     29-10-95    digulla automatically created from
  63.                 dos_lib.fd and clib/dos_protos.h
  64.  
  65. *****************************************************************************/
  66. {
  67.     AROS_LIBFUNC_INIT
  68.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  69.     
  70.     return DOSBase->dl_ProcCnt-1;
  71.     AROS_LIBFUNC_EXIT
  72. } /* MaxCli */
  73.