Menu

#435 MAX_PATH missing from dongsheng daily

v1.0 (example)
closed-invalid
nobody
None
5
2015-01-05
2014-11-14
No
Thu 11/13/2014 22:04:17.47|F:\gcc-5.0-win32_5.0.0-20141029\gcc-5.0-win32\include||>grep -s MAX_PATH *

Thu 11/13/2014 22:05:02.87|F:\gcc-5.0-win32_5.0.0-20141029\gcc-5.0-win32\include||>

not sure why this is, been #define'd for years as 260.
not even sure exactly what it applies to, since NTFS's maximum fileNAME size is 255 chars. clarification would be in order for my understanding of what MAX_PATH is really for if not for the maximum path length of drive+dir+filename in Win32.

Related

Bugs: #435

Discussion

  • Dongsheng Song

    Dongsheng Song - 2014-11-14

    Please search in directory gcc-5.0-win32\i686-w64-mingw32\include\, not gcc-5.0-win32\include\:

    minwindef.h:#define MAX_PATH 260

     
  • Kai Tietz

    Kai Tietz - 2014-11-14

    MAX_PATH is a constant present for years for Win32. It has to be 260, as this is the standard maximum of API's support max-path-names.
    There seems to be Windows versions present extending this maximum, but in standard API you can't use wider strings. They simply get rejected.

    For more details please read on MSDN

     
  • Kai Tietz

    Kai Tietz - 2014-11-14
    • status: open --> closed-invalid
     
  • freddy96

    freddy96 - 2015-01-05

    I am using LongPathTool for solving this kind of errorsl

     
    • Jim Michaels

      Jim Michaels - 2015-01-17

      I just read an alternative is supposedly using UNC paths.\.\C:\.\PhysicalDrive0\ but neither of these provides the header's

      define MAX_PATH 260 -------------

      Jim Michaels
      Jmichae3@yahoo.com
      JimM@RenewalComputerServices.com
      http://RenewalComputerServices.com
      http://JesusnJim.com (computer repair info, programming)

        From: freddy96 <freddy96@users.sf.net>
      

      To: [mingw-w64:bugs] 435@bugs.mingw-w64.p.re.sf.net
      Sent: Monday, January 5, 2015 2:40 AM
      Subject: [mingw-w64:bugs] #435 MAX_PATH missing from dongsheng daily

      I am using LongPathTool for solving this kind of errorsl


      [bugs:#435] MAX_PATH missing from dongsheng daily

      Status: closed-invalid
      Group: v1.0 (example)
      Created: Fri Nov 14, 2014 06:08 AM UTC by Jim Michaels
      Last Updated: Fri Nov 14, 2014 03:25 PM UTC
      Owner: nobody

      Thu 11/13/2014 22:04:17.47|F:\gcc-5.0-win32_5.0.0-20141029\gcc-5.0-win32\include||>grep -s MAX_PATH *
      
      Thu 11/13/2014 22:05:02.87|F:\gcc-5.0-win32_5.0.0-20141029\gcc-5.0-win32\include||>
      

      not sure why this is, been #define'd for years as 260.
      not even sure exactly what it applies to, since NTFS's maximum fileNAME size is 255 chars. clarification would be in order for my understanding of what MAX_PATH is really for if not for the maximum path length of drive+dir+filename in Win32.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mingw-w64/bugs/435/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #435


Log in to post a comment.