* Init. */
| 225 | * Init. |
| 226 | */ |
| 227 | void 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 |