Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#ifndef __dj_include_sys_vfs_h_
3
#define __dj_include_sys_vfs_h_
4
 
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
 
9
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
10
 
11
#ifndef __STRICT_ANSI__
12
 
13
#ifndef _POSIX_SOURCE
14
 
15
typedef long	fsid_t[2];
16
 
17
#define	MOUNT_UFS	0
18
#define	MOUNT_NFS	1	/* Not possible on DOS */
19
#define	MOUNT_CDFS	2	/* Not possible on DOS */
20
 
21
#define	FS_MAGIC	0x11954	/* Taken from HP-UX */
22
 
23
struct statfs
24
{
25
    long	f_type;
26
    long	f_bsize;
27
    long	f_blocks;
28
    long	f_bfree;
29
    long	f_bavail;
30
    long	f_files;
31
    long	f_ffree;
32
    fsid_t	f_fsid;
33
    long	f_magic;
34
};
35
 
36
extern int	statfs(const char *, struct statfs *);
37
extern int	fstatfs(int, struct statfs *);
38
 
39
#endif /* !_POSIX_SOURCE */
40
#endif /* !__STRICT_ANSI__ */
41
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
42
 
43
#ifndef __dj_ENFORCE_FUNCTION_CALLS
44
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
45
 
46
#ifdef __cplusplus
47
}
48
#endif
49
 
50
#endif /* !__dj_include_sys_vfs_h_ */