aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/caccess.c
blob: 13b6f52e1f9b107923dc6df4674fd97c27b39e02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

#define import_spp
#define	import_libc
#define	import_xnames
#include <iraf.h>


/* C_ACCESS -- FIO file access.
*/
int 
c_access (
  char	*fname,			/* name of file to be accessed	*/
  int	mode,			/* access mode			*/
  int	type			/* file type			*/
)
{
	XINT x_mode = mode, x_type = type;

	return (ACCESS (c_sppstr(fname), &x_mode, &x_type));
}