| | |
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: 204 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





