summaryrefslogtreecommitdiff
path: root/src/Standard/Standard_symlink.c
blob: 9d629846423b0bf920e64946c4030ec936cc2701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifdef WNT
/******************************************************************************/
/* File:      symlink.c                                                       */
/* Purpose:   Dummy routine to simulate UNIX's 'symlink'.                     */
/* Author:    PLOTNIKOV Eugeny                                                */
/*            <eugeny@vortex>                                                 */
/* Warning:   Symbolic links are not supported on Windows NT yet. So, in this */
/*            case simple copying of file is performing.                      */
/* Copyright: MATRA Datavision (C)1996                                        */
/******************************************************************************/
/***/
#define STRICT
#include <windows.h>
#include <tchar.h>

#ifdef __cplusplus
extern "C" int symlink ( const _TCHAR*, const _TCHAR* );
#endif  /* __cplusplus */
/***/
/******************************* symlink **************************************/
/***/
__declspec( dllexport ) int symlink ( const _TCHAR* name1, const _TCHAR* name2 ) {

 return CopyFile ( name1, name2, FALSE ) == TRUE ? 0 : -1;

}  /* end symlink */
/***/
/******************************************************************************/
#endif