Date: Sun, 1 Aug 1999 21:44:48 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@FreeBSD.org, mpp@mpp.pro-ns.net Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys utimes.2 Message-ID: <199908011144.VAA29846@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> Removed POSIX.1/NetBSD markup (braces) for NAME_MAX, etc. We don't >> define this. Most FreeBSD man pages hard-code the limits; in fact, >> utimes.2 recently became the only file in libc/sys/*.2 that mentions >> NAME_MAX. There probably should be mandoc macros for this. >What kind of mdoc macros did you have in mind? .Dv is how these should >be specified with mdoc currently, but I'm open to suggestions. I'd like one which looked up XXX_MAX somewhere (probably in the macro file) and expanded to XXX_MAX, its implementation defined value, and some connecting text. Can mdoc handle this? If not, there could be more specialised macros for at least PATH_MAX and NAME_MAX. In *.2, there are 46 references to 1023 (PATH_MAX or MAXPATHLEN - 1), 6 references to 1024 (PATH_MAX) and 49 references to 255 (NAME_MAX). NAME_MAX shouldn't actually be defined, since it is fs-dependent. OTOH, POSIX.1 uses {NAME_MAX} as an abreviation for "NAME_MAX if that is defined, else the fs-dependent value given by pathconf(path, _PC_NAME_MAX) or fpathconf() where `path' is ...". The macro should handle some of this. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908011144.VAA29846>