Does anyone know how to get the actual referenced filename from a
symbolic link from a c program. What would be the system call? There
must be one, because "ls -l" will give you the link and then the
reference. Can someone help please.
|
|
0
|
|
|
|
Reply
|
Tiger
|
6/25/2003 7:15:03 PM |
|
Tiger dudes <God@bless.com> wrote:
> Does anyone know how to get the actual referenced filename from a
> symbolic link from a c program. What would be the system call? There
> must be one, because "ls -l" will give you the link and then the
> reference. Can someone help please.
The bottom of the symlink(2) man page mentions these functions..
SEE ALSO
cp(1), link(2), open(2), readlink(2), stat(2), unlink(2)
I'll bet at least one of them is what you want. :-)
--
Darren Dunham ddunham@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
0
|
|
|
|
Reply
|
Darren
|
6/25/2003 9:21:15 PM
|
|