aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/bootlib/osread.c
blob: b7d731d2610ce0c18beea5bb05341b9341614de7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
 */

#include <unistd.h>


/* OS_READ -- Read from a disk file.  We can use the UNIX procedures for
 * reading both binary and text files.
 */
int
os_read (
  int	fd,			/* input file		*/
  char	*buf,			/* output buffer	*/
  int	nbytes 			/* max bytes to read	*/
)
{
	return (read (fd, buf, nbytes));
}