![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| absolute path | Kirichiko | UNIX for Dummies Questions & Answers | 2 | 10-03-2007 03:30 AM |
| $PWD shows absolute path vs path w/symbolic links | kornshellmaven | Shell Programming and Scripting | 3 | 06-13-2007 09:15 AM |
| absolute path | filedeliver | High Level Programming | 4 | 06-05-2007 02:18 PM |
| vi - replacing a relative path with absolute path in a file | Yinzer955i | UNIX for Dummies Questions & Answers | 2 | 09-07-2006 08:47 AM |
| HOW to make absolute path???? HELP | youngvet | High Level Programming | 1 | 11-01-2003 01:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to get Absolute path from file descriptors
Hello all,
my question is whether it possible to get the complete path of a file from the file descriptor iam going through some code for which i dont understood this statement Code:
ifstream s((const byte*)fd); which is not properly working is there any way that i can know to get its path to know whethrer that file is opened for writing. please help me. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
And you can get multiple matches for the same inode as a single file can have multiple names. Also, a file does not *have* to have a name, for instance if you create a file then unlink it before you close it you have a valid file descriptor but no name in the file system. So a single file can have zero or many names. |
|
#3
|
|||
|
|||
|
thanks u porter,
for quick reply ya tried with the stat and fstat for which iam getting inode as 0, so how to proceed and also is there any alternate for this line. please tell me Code:
ifstream s((const byte*)fd); |
|||
| Google The UNIX and Linux Forums |