Coverage Report

Created: 2018-06-21 18:56

/home/travis/build/MoarVM/MoarVM/src/io/fileops.h
Line
Count
Source (jump to first uncovered line)
1
0
#define MVM_FILE_FLOCK_SHARED        1       /* Shared lock. Read lock */
2
#define MVM_FILE_FLOCK_EXCLUSIVE     2       /* Exclusive lock. Write lock. */
3
0
#define MVM_FILE_FLOCK_TYPEMASK      0x000F  /* a mask of lock type */
4
0
#define MVM_FILE_FLOCK_NONBLOCK      0x0010  /* asynchronous block during
5
                                              * locking the file */
6
15
#define MVM_STAT_EXISTS              0
7
1
#define MVM_STAT_FILESIZE            1
8
146
#define MVM_STAT_ISDIR               2
9
2
#define MVM_STAT_ISREG               3
10
0
#define MVM_STAT_ISDEV               4
11
0
#define MVM_STAT_CREATETIME          5
12
8
#define MVM_STAT_ACCESSTIME          6
13
8
#define MVM_STAT_MODIFYTIME          7
14
8
#define MVM_STAT_CHANGETIME          8
15
#define MVM_STAT_BACKUPTIME          9
16
0
#define MVM_STAT_UID                10
17
0
#define MVM_STAT_GID                11
18
4
#define MVM_STAT_ISLNK              12
19
2
#define MVM_STAT_PLATFORM_DEV       -1
20
2
#define MVM_STAT_PLATFORM_INODE     -2
21
0
#define MVM_STAT_PLATFORM_MODE      -3
22
0
#define MVM_STAT_PLATFORM_NLINKS    -4
23
0
#define MVM_STAT_PLATFORM_DEVTYPE   -5
24
0
#define MVM_STAT_PLATFORM_BLOCKSIZE -6
25
0
#define MVM_STAT_PLATFORM_BLOCKS    -7
26
27
MVMint64 MVM_file_stat(MVMThreadContext *tc, MVMString *filename, MVMint64 status, MVMint32 use_lstat);
28
MVMnum64 MVM_file_time(MVMThreadContext *tc, MVMString *filename, MVMint64 status, MVMint32 use_lstat);
29
void MVM_file_copy(MVMThreadContext *tc, MVMString *src, MVMString *dest);
30
void MVM_file_rename(MVMThreadContext *tc, MVMString *src, MVMString *dest);
31
void MVM_file_delete(MVMThreadContext *tc, MVMString *f);
32
void MVM_file_chmod(MVMThreadContext *tc, MVMString *f, MVMint64 flag);
33
MVMint64 MVM_file_exists(MVMThreadContext *tc, MVMString *f, MVMint32 use_lstat);
34
MVMint64 MVM_file_isreadable(MVMThreadContext *tc, MVMString *filename, MVMint32 use_lstat);
35
MVMint64 MVM_file_iswritable(MVMThreadContext *tc, MVMString *filename, MVMint32 use_lstat);
36
MVMint64 MVM_file_isexecutable(MVMThreadContext *tc, MVMString *filename, MVMint32 use_lstat);
37
MVMObject * MVM_file_get_stdstream(MVMThreadContext *tc, MVMint32 type);
38
MVMString * MVM_file_in_libpath(MVMThreadContext *tc, MVMString *orig);
39
void MVM_file_link(MVMThreadContext *tc, MVMString *oldpath, MVMString *newpath);
40
void MVM_file_symlink(MVMThreadContext *tc, MVMString *oldpath, MVMString *newpath);
41
MVMString * MVM_file_readlink(MVMThreadContext *tc, MVMString *path);