touch depfile for symbol 'name' */
| 129 | |
| 130 | /* touch depfile for symbol 'name' */ |
| 131 | static int conf_touch_dep(const char *name) |
| 132 | { |
| 133 | int fd; |
| 134 | |
| 135 | /* check overflow: prefix + name + '\0' must fit in buffer. */ |
| 136 | if (depfile_prefix_len + strlen(name) + 1 > sizeof(depfile_path)) |
| 137 | return -1; |
| 138 | |
| 139 | strcpy(depfile_path + depfile_prefix_len, name); |
| 140 | |
| 141 | fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644); |
| 142 | if (fd == -1) |
| 143 | return -1; |
| 144 | close(fd); |
| 145 | |
| 146 | return 0; |
| 147 | } |
| 148 | |
| 149 | static void conf_warning(const char *fmt, ...) |
| 150 | __attribute__ ((format (printf, 1, 2))); |
no outgoing calls
no test coverage detected