delorie.com/djgpp/doc/libc/libc_790.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX No

Example

 
symlink ("c:/djgpp/bin/grep", "c:/djgpp/bin/fgrep");


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004