MCPcopy Create free account
hub / github.com/apache/nuttx / open_proxy

Function open_proxy

tools/mksyscall.c:170–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static FILE *open_proxy(void)
171{
172 char filename[MAX_PARMSIZE + 10];
173 FILE *stream;
174
175 snprintf(filename, MAX_PARMSIZE + 9, "PROXY_%s.c", g_parm[NAME_INDEX]);
176 filename[MAX_PARMSIZE + 9] = '\0';
177
178 stream = fopen(filename, "w");
179 if (stream == NULL)
180 {
181 fprintf(stderr, "Failed to open %s: %s\n", filename, strerror(errno));
182 exit(10);
183 }
184
185 return stream;
186}
187
188static void generate_proxy(int nfixed, int nparms)
189{

Callers 1

generate_proxyFunction · 0.85

Calls 5

fopenFunction · 0.85
fprintfFunction · 0.85
strerrorFunction · 0.85
exitFunction · 0.85
snprintfFunction · 0.50

Tested by

no test coverage detected