Limitation in PathName

View: New views
6 Messages — Rating Filter:   Alert me  

Limitation in PathName

by hkb83 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Is there any limitation in cygwin regarding the pathnames in opendir/readdir functions?

Is the pathname limit = PATH_MAX being 260?

I am using Win XP SP-2.

Regards,
Harmeet

Re: Limitation in PathName

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to hkb83 on 1/30/2008 8:13 AM:
| Hi
|
| Is there any limitation in cygwin regarding the pathnames in opendir/readdir
| functions?

Only what Windows imposes.  Why do you ask?

|
| Is the pathname limit = PATH_MAX being 260?

Yes (for now, because we use ASCII functions; cygwin 1.7.0 will use NT
Unicode functions to increase the limit).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoJUs84KuGfSFAYARApxAAJ9VT6n1OkqNG93W5zaiy3hGlQvysACgiaEm
U5u2h9CCCwdNDD0CUeGI/dw=
=EHlx
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Parent Message unknown Re: Limitation in PathName

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please keep replies on the list: http://cygwin.com/acronyms/#PPIOSPE

According to harmeet.bansal@... on 1/30/2008 8:35 AM:
| Hi,
|
| Thanks for replying..
|
| Actually,I am facing an issue where I am able to create a folder of
| absolute length >250 characters in windows but

Cygwin requires that both the Windows absolute name and the POSIX pathname
be less than PATH_MAX.  If you haven't exceeded the Windows limits, it
could be that you are only exceeding the limits from the POSIX path.  In
which case you can try mounting the directory with a shorter POSIX prefix.

|
| when I am using the cygwin built exe (libarchive 2.4.12 bsdtar.exe)
| +
| It is giving the message "File Name too long" for the same path.This exe
| gives no path limit on Unix.

That's because most Unix systems don't have such pathetically small limits.

|
| I am not able to answer why this situation is being encountered. I don't
| understand the figures. +
|
| As 260 being PATH_MAX and255 being windows pathlength limit..

No, the Windows path length limit for files is 260, although I don't
remember if that includes space for a trailing NUL.  However, Windows also
enforces that directories must be shorter that this, so that you could
still create an 8.3 file name within that directory.  Overall, it is just
another annoyance thrust upon Windows users.

|
| I just hope you can help me out.
|
| Regards,
| Harmeet
|
|
| The information contained in this electronic message...

Please refrain from sending mails with these disclaimers to publicly
archived lists - they are unenforceable, and against list policy.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoKRN84KuGfSFAYARAh46AJ0YExu2y68oIi2L2Q2dzyKI/5NABwCbBR5c
4KEtbTPl4kkoYZToRkM8N7s=
=6XZK
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: Limitation in PathName

by hkb83 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


hkb83 wrote:
Hi

Is there any limitation in cygwin regarding the pathnames in opendir/readdir functions?

Is the pathname limit = PATH_MAX being 260?

I am using Win XP SP-2.

Regards,
Harmeet

Re: Limitation in PathName

by hkb83 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have found the limitation of windows as 259 filepath and 247 directory path on Win XP and Win server 2003.

I have another query , To which windows command are fchdir() calls translated to by cygwin and does cygwin support such call translations on Win XP.

Thanks in Advance,

Harmeet Kaur



hkb83 wrote:
Hi

Is there any limitation in cygwin regarding the pathnames in opendir/readdir functions?

Is the pathname limit = PATH_MAX being 260?

I am using Win XP SP-2.

Regards,
Harmeet

Re: Limitation in PathName

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to hkb83 on 1/31/2008 6:38 AM:
| Hi,
| I have found the limitation of windows as 259 filepath and 247 directory
| path on Win XP and Win server 2003.

Yes, those would be the pathetically low Windows limits when using ASCII
api's.

|
| I have another query , To which windows command are fchdir() calls
| translated to by cygwin and does cygwin support such call translations on
| Win XP.

Why don't you read the source code and find out for yourself?  Also, you
could use strace to find out.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHodZ084KuGfSFAYARAgRTAJ4khYDGRLTJ0PiHSxg5dXYVbeuiuwCdGm0J
Jx3lSDeSyXUgv3bSx3gx8Ps=
=EKa8
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/