| | |
st_dev on stat() call
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
I'm trying to write some code that will validate if we are trying to write to nfs and if so, complain. From what I've read, the stat() call populates the st_dev with value of the file system type. On an nfs mount it tells me that it's '14'. I'd prefer not to hardcode this value and is wondering if there is an enum somewhere or other way to get the list of possible values?
Thanks.
I'm trying to write some code that will validate if we are trying to write to nfs and if so, complain. From what I've read, the stat() call populates the st_dev with value of the file system type. On an nfs mount it tells me that it's '14'. I'd prefer not to hardcode this value and is wondering if there is an enum somewhere or other way to get the list of possible values?
Thanks.
![]() |
Similar Threads
- ASM -> C function call problem, pointer issue (Assembly)
- Costa Rica’s Call Center Employment Opportunities (Web Development Job Offers)
- Coressponding Linux function/library out of Win32... (C++)
- LOL. That's what I call "forum" (Viruses, Spyware and other Nasties)
- TROJ STILEN.A, ADW RULEDOR.C, BKDR SANDBOX.S detected using Trend Micro House Call (Viruses, Spyware and other Nasties)
- Close call ... (DaniWeb Community Feedback)
Other Threads in the C++ Forum
- Previous Thread: c++ question
- Next Thread: Loading from a file to a class
Views: 206 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





