4.104.114.84.95
Last change
on this file since d71fcab was
d71fcab,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/99 at 18:44:40
|
Added call to freenod to let each filesystem free its own internal
node used to manage file access.
|
-
Property mode set to
100644
|
File size:
938 bytes
|
Line | |
---|
1 | /* |
---|
2 | * symlink() - POSIX 1003.1b - X.X.X - XXX |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1998. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * Copyright assigned to U.S. Government, 1994. |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #include "libio_.h" |
---|
16 | |
---|
17 | int symlink( |
---|
18 | const char *actualpath, |
---|
19 | const char *sympath |
---|
20 | ) |
---|
21 | { |
---|
22 | rtems_filesystem_location_info_t loc; |
---|
23 | int i; |
---|
24 | const char *name_start; |
---|
25 | int result; |
---|
26 | |
---|
27 | rtems_filesystem_get_start_loc( sympath, &i, &loc ); |
---|
28 | result = (*loc.ops->evalformake)( &sympath[i], &loc, &name_start ); |
---|
29 | if ( result != 0 ) |
---|
30 | return -1; |
---|
31 | |
---|
32 | result = (*loc.ops->symlink)( &loc, actualpath, name_start); |
---|
33 | |
---|
34 | if ( loc.ops->freenod ) |
---|
35 | (*loc.ops->freenod)( &loc ); |
---|
36 | |
---|
37 | return result; |
---|
38 | } |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.