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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: cli.c,v 1.6 1997/01/27 00:36:15 ldp Exp $
  4.     $Log: cli.c,v $
  5.     Revision 1.6  1997/01/27 00:36:15  ldp
  6.     Polish
  7.  
  8.     Revision 1.5  1996/12/09 13:53:22  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:24  aros
  14.     Use the official AROS macros over the __AROS versions.
  15.  
  16.     Revision 1.3  1996/08/13 13:52:45  digulla
  17.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  18.     Replaced AROS_LA by AROS_LHA
  19.  
  20.     Revision 1.2  1996/08/01 17:40:48  digulla
  21.     Added standard header for all files
  22.  
  23.     Desc:
  24.     Lang: english
  25. */
  26. #include <proto/exec.h>
  27. #include "dos_intern.h"
  28.  
  29. /*****************************************************************************
  30.  
  31.     NAME */
  32. #include <proto/dos.h>
  33.  
  34.     AROS_LH0(struct CommandLineInterface *, Cli,
  35.  
  36. /*  SYNOPSIS */
  37.  
  38. /*  LOCATION */
  39.     struct DosLibrary *, DOSBase, 82, Dos)
  40.  
  41. /*  FUNCTION
  42.     Returns a pointer to the CLI structure of the current process.
  43.  
  44.     INPUTS
  45.  
  46.     RESULT
  47.     Pointer to CLI structure.
  48.  
  49.     NOTES
  50.     Do not use this function to test if the process was started from
  51.     the shell. Check pr_CLI instead.
  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.     /* Get pointer to process structure */
  71.     struct Process *me=(struct Process *)FindTask(NULL);
  72.  
  73.     /* Nothing spectacular */
  74.     return (struct CommandLineInterface *)BADDR(me->pr_CLI);
  75.     AROS_LIBFUNC_EXIT
  76. } /* Cli */
  77.