MCPcopy Create free account
hub / github.com/Entware/Entware / conf_touch_dep

Function conf_touch_dep

scripts/config/confdata.c:131–147  ·  view source on GitHub ↗

touch depfile for symbol 'name' */

Source from the content-addressed store, hash-verified

129
130/* touch depfile for symbol 'name' */
131static 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
149static void conf_warning(const char *fmt, ...)
150 __attribute__ ((format (printf, 1, 2)));

Callers 2

conf_read_simpleFunction · 0.85
conf_touch_depsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected