/[gxemul]/trunk/src/devices/dev_random.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_random.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_random.c,v 1.5 2006/02/09 20:02:59 debug Exp $   *  $Id: dev_random.c,v 1.6 2006/02/25 12:55:20 debug Exp $
29   *     *  
30   *  A simple device which returns random data for all reads, and discards all   *  A simple device which returns random data for all reads, and discards all
31   *  writes.   *  writes.
# Line 41  Line 41 
41  #include "misc.h"  #include "misc.h"
42    
43    
 /*  
  *  dev_random_access():  
  *  
  *  Returns 1 if ok, 0 on error.  
  */  
44  DEVICE_ACCESS(random)  DEVICE_ACCESS(random)
45  {  {
46          if (writeflag == MEM_READ) {          if (writeflag == MEM_READ) {

Legend:
Removed from v.22  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26