Path: utzoo!attcan!uunet!van-bc!jtc From: jtc@van-bc.wimsey.bc.ca (J.T. Conklin) Newsgroups: comp.unix.questions Subject: Re: Unix file systems (UFS, SVFS, EFS....)? Message-ID: <2391@van-bc.wimsey.bc.ca> Date: 5 Oct 90 17:35:37 GMT References: <25866.27091187@kuhub.cc.ukans.edu> <4136@auspex.auspex.com> <1822@hulda.erbe.se> Organization: UniFax Communications Inc., Vancouver, B.C., Canada Lines: 24 In article <1822@hulda.erbe.se> prc@erbe.se (Robert Claeson) writes: >Is there any way that a program can check how long a file name can be >before creating it in a directory without actually trying to create a >file first? > Yes, If your system provides pathconf(): maxlen = pathconf ("/usr/spool/foo", _PC_NAME_MAX); --jtc -- J.T. Conklin UniFax Communications Inc. ...!{uunet,ubc-cs}!van-bc!jtc, jtc@wimsey.bc.ca