line |
true |
false |
branch |
119
|
700 |
3470 |
if (flags & O_CREAT) { |
123
|
700 |
0 |
mode = (mode_t)va_arg(arg_list, int); |
139
|
0 |
0 |
GIT_ASSERT_ARG(buffer_out); |
140
|
0 |
0 |
GIT_ASSERT_ARG(size > 0); |
144
|
0 |
0 |
if (cwd_buffer == NULL) |
155
|
236 |
227 |
if (!link(from, to)) { |
160
|
227 |
0 |
if (!rename(from, to)) |
172
|
0 |
3127 |
if (!git__is_ssizet(cnt)) { |
180
|
3659 |
2509 |
while (cnt) { |
187
|
0 |
3659 |
if (r < 0) { |
188
|
0 |
0 |
if (errno == EINTR || errno == EAGAIN) |
|
0 |
0 |
if (errno == EINTR || errno == EAGAIN) |
192
|
618 |
3041 |
if (!r) |
204
|
751 |
751 |
while (cnt) { |
212
|
0 |
751 |
if (r < 0) { |
213
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
|
0 |
0 |
if (errno == EINTR || GIT_ISBLOCKED(errno)) |
217
|
0 |
751 |
if (!r) { |