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

Function open_wrapper

tools/mksyscall.c:535–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535static FILE *open_wrapper(void)
536{
537 char filename[MAX_PARMSIZE + 8];
538 FILE *stream;
539
540 snprintf(filename, MAX_PARMSIZE + 7, "WRAP_%s.c", g_parm[NAME_INDEX]);
541 filename[MAX_PARMSIZE + 7] = '\0';
542
543 stream = fopen(filename, "w");
544
545 if (stream == NULL)
546 {
547 fprintf(stderr, "Failed to open %s: %s\n", filename, strerror(errno));
548 exit(10);
549 }
550
551 return stream;
552}
553
554static void generate_wrapper(int nfixed, int nparms)
555{

Callers 1

generate_wrapperFunction · 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