aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/bootlib/ossetfmode.c
blob: be2f7c5fb71de7d57462441d1816d3123cc204e5 (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 <sys/stat.h>
#include "bootlib.h"


/* OS_SETFMODE -- Set the file mode bits.  This is an important function on
 * any system and should be implemented.
 */
int
os_setfmode (
  char	*fname,
  int	mode
)
{
	return (chmod (vfn2osfn(fname,0), mode));
}