int stat( const char * path, struct stat * buf );
The stat() and stat64() functions obtain information about the file or
directory referenced in path. This information is placed in the structure
located at the address indicated by buf.
Q: field st_mode of a stat structure can be S_IFSOCK. What I need fill to
path to get this stat ?
for example I have socket in LISTEN state on port 6000
Can I stat this socket ?
Thanks Jakub Safarik