1256381Smarkm/*-
2256381Smarkm * Copyright (c) 2013 Mark R V Murray
3256381Smarkm * All rights reserved.
4256381Smarkm *
5256381Smarkm * Redistribution and use in source and binary forms, with or without
6256381Smarkm * modification, are permitted provided that the following conditions
7256381Smarkm * are met:
8256381Smarkm * 1. Redistributions of source code must retain the above copyright
9256381Smarkm *    notice, this list of conditions and the following disclaimer
10256381Smarkm *    in this position and unchanged.
11256381Smarkm * 2. Redistributions in binary form must reproduce the above copyright
12256381Smarkm *    notice, this list of conditions and the following disclaimer in the
13256381Smarkm *    documentation and/or other materials provided with the distribution.
14256381Smarkm *
15256381Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16256381Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17256381Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18256381Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19256381Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20256381Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21256381Smarkm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22256381Smarkm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23256381Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24256381Smarkm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25256381Smarkm *
26256381Smarkm * $FreeBSD$
27256381Smarkm */
28256381Smarkm
29256381Smarkm#ifndef SYS_DEV_RANDOM_RWFILE_H_INCLUDED
30256381Smarkm#define SYS_DEV_RANDOM_RWFILE_H_INCLUDED
31256381Smarkm
32256381Smarkm#ifdef RANDOM_RWFILE
33256381Smarkm
34256381Smarkmint randomdev_read_file(const char *filename, void *buf, size_t);
35256381Smarkmint randomdev_write_file(const char *filename, void *buf, size_t);
36256381Smarkm
37256381Smarkm#endif
38256381Smarkm
39256381Smarkm#endif
40