MCPcopy Create free account
hub / github.com/GJDuck/e9patch / init

Function init

examples/bounds.c:227–240  ·  view source on GitHub ↗

* Init. */

Source from the content-addressed store, hash-verified

225 * Init.
226 */
227void init(int argc, char **argv)
228{
229 option_tty = isatty(STDERR_FILENO);
230
231 if (msync((void *)_REDFAT_MAGICS, PAGE_SIZE, MS_ASYNC) == 0)
232 return; // RedFat library has been LD_PRELOAD'ed
233
234 fprintf(stderr, "%serror%s: the libredfat.so library must be preloaded, "
235 "e.g.:\n"
236 " %sLD_PRELOAD=/usr/share/redfat/libredfat.so %s "
237 "...%s\n",
238 RED, OFF, YELLOW, argv[0], OFF);
239 abort();
240}
241

Callers

nothing calls this directly

Calls 4

isattyFunction · 0.85
msyncFunction · 0.85
abortFunction · 0.85
fprintfFunction · 0.70

Tested by

no test coverage detected