symlink
Syntax
| #include <unistd.h>
int symlink(const char *exists, const char *new);
|
Description
DOS does not support symbolic links. However, DJGPP emulates them--this
function creates a file with special size and format, so other DJGPP
library functions transparently work with file which is pointed to
by the symlink. Of course, it does not work outside DJGPP programs.
Those library functions which are simple wrappers about DOS calls do not
use symlinks neither.
Return Value
Zero in case of success, -1 in case of failure (and errno
set to
the appropriate error code).
Portability
Example
| symlink ("c:/djgpp/bin/grep", "c:/djgpp/bin/fgrep");
|