![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| absolute path | Kirichiko | UNIX for Dummies Questions & Answers | 2 | 10-03-2007 07:30 AM |
| $PWD shows absolute path vs path w/symbolic links | kornshellmaven | Shell Programming and Scripting | 3 | 06-13-2007 01:15 PM |
| absolute path | filedeliver | High Level Programming | 4 | 06-05-2007 06:18 PM |
| vi - replacing a relative path with absolute path in a file | Yinzer955i | UNIX for Dummies Questions & Answers | 2 | 09-07-2006 12:47 PM |
| HOW to make absolute path???? HELP | youngvet | High Level Programming | 1 | 11-01-2003 04:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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); what exactly this represents any idea. 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. |
|
||||
|
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. |
|
||||
|
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); because from the code iam fetching file descriptors only. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|