home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
std_unix
/
v21
/
063
< prev
next >
Wrap
Internet Message Format
|
1990-12-05
|
1KB
From std-unix-request@uunet.uu.net Mon Aug 27 23:51:26 1990
Received: from cs.utexas.edu by uunet.uu.net (5.61/1.14) with SMTP
id AA02223; Mon, 27 Aug 90 23:51:26 -0400
Posted-Date: 27 Aug 90 15:11:00 GMT
Received: by cs.utexas.edu (5.64/1.74)
From: Don_Lewine@dgc.ceo.dg.com
Newsgroups: comp.std.unix
Subject: Meaning of _PC_PATH_MAX
Message-Id: <465@usenix.ORG>
Sender: std-unix@usenix.ORG
X-Submissions: std-unix@uunet.uu.net
Date: 27 Aug 90 15:11:00 GMT
Reply-To: std-unix@uunet.uu.net
To: std-unix@uunet.uu.net
From: Don_Lewine@dgc.ceo.dg.com
IEEE Std 1003.1-1988 paragraph 5.7.1.2 note 5 describes the value
returned by pathconf() when _PC_PATH_MAX is used as an argument as,
"The maximum length of a relative pathname when the specified
directory is the working directory."
I have tried this on several POSIX.1 systems. None of them seem to
enforce the maximum. In fact they all return a constant (say, 1024)
even if the path given to pathconf() is already longer than that.
Is this conforming behavior?
If it is conforming, how should a portable application determine the
longest pathname a user can specify?
What about _PC_NAME_MAX? May readdir() return a longer name than the
value returned by pathconf() for that directory?
Volume-Number: Volume 21, Number 63