line |
true |
false |
branch |
112
|
512 |
3044 |
if (flags & O_CREAT) { |
116
|
512 |
0 |
mode = (mode_t)va_arg(arg_list, int); |
132
|
0 |
0 |
assert(buffer_out && size > 0); |
|
0 |
0 |
assert(buffer_out && size > 0); |
136
|
0 |
0 |
if (cwd_buffer == NULL) |
147
|
235 |
227 |
if (!link(from, to)) { |
152
|
227 |
0 |
if (!rename(from, to)) |
164
|
0 |
3096 |
if (!git__is_ssizet(cnt)) { |
172
|
3649 |
2457 |
while (cnt) { |
179
|
0 |
3649 |
if (r < 0) { |
180
|
0 |
0 |
if (errno == EINTR || errno == EAGAIN) |
|
0 |
0 |
if (errno == EINTR || errno == EAGAIN) |
184
|
639 |
3010 |
if (!r) |
196
|
841 |
841 |
while (cnt) { |
204
|
0 |
841 |
if (r < 0) { |
205
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
209
|
0 |
841 |
if (!r) { |