home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
LINK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
354b
|
29 lines
/* make a hard link */
#include <errno.h>
#include <mintbind.h>
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;
}