Thread: sys/stat.h

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    178

    sys/stat.h

    My MinGW sys/stat.h is missing S_IFSOCK and S_IFLNK definitions. I have searched for an update but have not found one.

    Is there one out there with full file type support?

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    178
    Anyone ever work with file info in the form ls -lai on a UNIX system and utilize stat.h offer an opinion about why S_IFSOCK and S_IFLNK under symlynk are not defined in stat.h? Where can I obtain an updated stat.h file?

    I am using MinGW 5.1.6,

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Dunno, maybe because such concepts are broken in windows?

    Did you read their FAQ?
    Did you ask on their mailing list?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using sys/stat.h and listing directory contents in C...
    By smoothdogg00 in forum C Programming
    Replies: 2
    Last Post: 03-14-2006, 02:11 AM