🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #811

Re: FILENAME_MAX & _POSIX_PATH_MAX relationship?

#811
From: Henry Spencer
Date: Sun, 21 Apr 1991 06:08
22 lines
1720 bytes
Submitted-by: henry@zoo.toronto.edu (Henry Spencer)

In article <129469@uunet.UU.NET> lewine@dg.uucp writes:
>... Most applications do not care 
>about the longest pathname the are guaranteed to be able to create.
>They need to know the longest pathname that will be encoundered.
>In other words, how much storage should be allocated for the user's
>response to a "File: " prompt.  Or, how large should the buffer be
>for getcwd().  Or, what is the longest path a file tree walk will
>encounter.  _POSIX_PATH_MAX, PATH_MAX and pathconf() do not give
>any insight into those questions.

Maybe because there is no answer to these questions?  There is *no limit*
to these lengths in some Unix systems, notably V6 and V7 of hallowed memory.
Programmers who hope to allocate fixed-sized arrays for these purposes are
simply demonstrating their laziness and ignorance.
-- 
And the bean-counter replied,           | Henry Spencer @ U of Toronto Zoology
"beans are more important".             |  henry@zoo.toronto.edu  utzoo!henry


Volume-Number: Volume 23, Number 36
Technical Details
Message-ID: <129799@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!uunet!uunet.UU.NET!sef
References: <128112@uunet.UU.NET> <128358@uunet.UU.NET> <129356@uunet.UU.NET> <129469@uunet.UU.NET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!uunet!uunet.UU.NET!sef
From: henry@zoo.toronto.edu (Henry Spencer)
Newsgroups: comp.std.unix
Subject: Re: FILENAME_MAX & _POSIX_PATH_MAX relationship?
Message-ID: <129799@uunet.UU.NET>
Date: 21 Apr 91 06:08:44 GMT
References: <128112@uunet.UU.NET> <128358@uunet.UU.NET> <129356@uunet.UU.NET> <129469@uunet.UU.NET>
Sender: usenet@uunet.UU.NET
Organization: U of Toronto Zoology
Lines: 22
Approved: sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)
Nntp-Posting-Host: uunet.uu.net
X-Submissions: std-unix@uunet.uu.net
Originator: sef@uunet.UU.NET