Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.sysv386 Subject: Re: 14 character file names Message-ID: <1991Feb07.082054.7059@kithrup.COM> Date: 7 Feb 91 08:20:54 GMT References: <1991Feb2.190351.7560@cbnewsh.att.com> <14934@uudell.dell.com> Distribution: usa Organization: Kithrup Enterprises, Ltd. Lines: 22 In article , andyc@bucky.intel.com (Andy Crump) writes: >These >utilities, IMHO, should check the filesystem type before making these >decisions. More to the point, they should all use pathconf and/or fpathconf to find out how large filenames may be. This way, the same program will work on all filesystems that support the pathconf call (which should actually be all of them). Note, unfortunately, that there are problems with this. If a system call returns ENAMETOOLONG, and PATH_MAX is undefined, it is non-trivial to find out whether the problem was due to the pathname being too long, or if a certain portion of the pathname contained an entry whose name was too long. But it's "portable"! 8-) -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.