/* make a hard link */ #include #include extern int __mint; /* * if MiNT is not active, we try to fail gracefully */ int link(old, new) char *old, *new; { long r; if (__mint < 9) { errno = EXDEV; return -1; } r = Flink(old, new); if (r < 0) { errno = -r; return -1; } return 0; }