sys/stat.h

This is a discussion on sys/stat.h within the C Programming forums, part of the General Programming Boards category; My MinGW sys/stat.h is missing S_IFSOCK and S_IFLNK definitions. I have searched for an update but have not found one. ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,422
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 01:11 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21