I'm not sure the answer to this question has come up, and I don't have time to locate the original article. The question was, is there some way to determine what the maximum number of characters in a file name is, in a particular file system? According to the POSIX.1 standard, you would use: #include <unistd.h> long pathconf(const char *path, int name); long fpathconf(int fildes, int name); These two functions return values for path-dependent configuration variables, at run-time. "fpathconf" is for opened files. For "name", substitute _PC_NAME_MAX. The value returned for a path which leads to a Minix file system should be 14, etc. I'm not sure whether these functions are implemented in Linux, but they would seem to be highly desirable in a POSIX implementation. There are lots of other neat "name" values for various path-dependent configuration values.... Rob L. * Origin: Via the Annex in Victoria, TX (1:3802/217)
| Anders | PROBLEM: high load average when idle |
| Rafael J. Wysocki | [Bug #11264] Invalid op opcode in kernel/workqueue |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Andrew Morton | Re: [PATCH 2/2][MTD] Add support for > 2GiB MTD devices |
git: | |
| Pietro Mascagni | GIT vs Other: Need argument |
| koreth | [PATCH] Change to the repository's root directory if needed. |
| Andreas Hildebrandt | CVS-$Id:$ replacement in git? |
| Mike Gant | git clone operation |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Karsten McMinn | Re: Packets Per Second Limit? |
| Douglas Muir | Re: Linux on Macintrashes? (Was: Re: Linux on |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Mathew B Beall | Installation |
| Stephen Tweedie | Re: No utmp entry. You must exec "login" from lowest level "sh" |
