home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / syscall / Ioc_Map.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-19  |  1.3 KB  |  55 lines

  1. /* 
  2.  * Ioc_Map.c --
  3.  *
  4.  *    Source code for the Ioc_Map library procedure.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #ifndef lint
  17. static char rcsid[] = "$Header: Ioc_Map.c,v 1.1 88/06/19 14:29:19 ouster Exp $ SPRITE (Berkeley)";
  18. #endif not lint
  19.  
  20. #include <sprite.h>
  21. #include <fs.h>
  22.  
  23.  
  24. /*
  25.  *----------------------------------------------------------------------
  26.  *
  27.  * Ioc_Map --
  28.  *    Map a device into user space.
  29.  *
  30.  * Results:
  31.  *    None.
  32.  *
  33.  * Side effects:
  34.  *    None (yet).
  35.  *
  36.  *----------------------------------------------------------------------
  37.  */
  38.  
  39. ReturnStatus
  40. Ioc_Map(streamID, numBytes, address)
  41.     int streamID;
  42.     int numBytes;
  43.     Address address;
  44. {
  45.     register ReturnStatus status;
  46.     Ioc_MapArgs map;
  47.  
  48.     map.numBytes = numBytes;
  49.     map.address = address;
  50.  
  51.     status = Fs_IOControl(streamID, IOC_MAP, sizeof(Ioc_MapArgs),
  52.             (Address)&map, 0, (Address)NULL);
  53.     return(status);
  54. }
  55.