home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / dos / openfromlock.c < prev    next >
Encoding:
C/C++ Source or Header  |  1978-03-06  |  1.7 KB  |  71 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: openfromlock.c,v 1.4 1996/10/24 15:50:33 aros Exp $
  4.     $Log: openfromlock.c,v $
  5.     Revision 1.4  1996/10/24 15:50:33  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.3  1996/08/13 13:52:49  digulla
  9.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  10.     Replaced AROS_LA by AROS_LHA
  11.  
  12.     Revision 1.2  1996/08/01 17:40:55  digulla
  13.     Added standard header for all files
  14.  
  15.     Desc:
  16.     Lang: english
  17. */
  18. #include <clib/exec_protos.h>
  19. #include <dos/dosextens.h>
  20.  
  21. /*****************************************************************************
  22.  
  23.     NAME */
  24.     #include <clib/dos_protos.h>
  25.  
  26.     AROS_LH1(BPTR, OpenFromLock,
  27.  
  28. /*  SYNOPSIS */
  29.     AROS_LHA(BPTR, lock, D1),
  30.  
  31. /*  LOCATION */
  32.     struct DosLibrary *, DOSBase, 63, Dos)
  33.  
  34. /*  FUNCTION
  35.     Convert a lock into a filehandle. If all went well the filehandle
  36.     will be gone. In case of an error it must still be freed.
  37.  
  38.     INPUTS
  39.     lock - Lock to convert.
  40.  
  41.     RESULT
  42.     New filehandle or 0 in case of an error. IoErr() will give
  43.     additional information in that case.
  44.  
  45.     NOTES
  46.     Since locks and filehandles in AROS are identical this function
  47.     is just the (useless) identity operator and thus can never fail.
  48.     It's there for compatibility to Amiga OS.
  49.  
  50.     EXAMPLE
  51.  
  52.     BUGS
  53.  
  54.     SEE ALSO
  55.  
  56.     INTERNALS
  57.  
  58.     HISTORY
  59.     29-10-95    digulla automatically created from
  60.                 dos_lib.fd and clib/dos_protos.h
  61.  
  62. *****************************************************************************/
  63. {
  64.     AROS_LIBFUNC_INIT
  65.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  66.  
  67.     /* Warning: Some very tricky operation ahead ;-). */
  68.     return lock;
  69.     AROS_LIBFUNC_EXIT
  70. } /* OpenFromLock */
  71.