Unix file systems (UFS, SVFS, EFS....)?

J.T. Conklin jtc at van-bc.wimsey.bc.ca
Sat Oct 6 03:35:37 AEST 1990


In article <1822 at hulda.erbe.se> prc at 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 at wimsey.bc.ca



More information about the Comp.unix.questions mailing list