Coverage Report

Created: 2017-04-15 07:07

/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
3.54k
#define MVM_STAT_EXISTS              0
7
1
#define MVM_STAT_FILESIZE            1
8
132
#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
MVMString * MVM_file_slurp(MVMThreadContext *tc, MVMString *filename, MVMString *encoding);
38
void MVM_file_spew(MVMThreadContext *tc, MVMString *output, MVMString *filename, MVMString *encoding);
39
MVMObject * MVM_file_get_stdstream(MVMThreadContext *tc, MVMuint8 type, MVMuint8 readable);
40
MVMString * MVM_file_in_libpath(MVMThreadContext *tc, MVMString *orig);
41
void MVM_file_link(MVMThreadContext *tc, MVMString *oldpath, MVMString *newpath);
42
void MVM_file_symlink(MVMThreadContext *tc, MVMString *oldpath, MVMString *newpath);
43
MVMString * MVM_file_readlink(MVMThreadContext *tc, MVMString *path);