Commit Graph

11 Commits

Author SHA1 Message Date
kleink
9f18c21c61 Add Xref to dirname(1). 2003-09-06 20:58:39 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
26f2e93a91 Use .Dq and .Sq. 2002-10-17 08:41:38 +00:00
thorpej
c10a556f9b Change basename(3) and dirname(3) to return a pointer to static
storage, rather than modifying their input arguments.  While not
reentrant, this is explcitly allowed by IEEE Std 1003.1-2001 (which
allows either behavior, stating that it is implementation-dependent).

The new semantics are considered less hostile/more useful by most programs
which use basename(3) and/or dirname(3) (several programs in the NetBSD
tree reimplement basename()/dirname() themselves to avoid modification
of the input argument).

This new implementation truncates results to PATH_MAX.  The Std does
not address this in the static storage case.  However since PATH_MAX
is the maximum pathname length in the Std, this should not be a problem
in practice.  Nontheless, it is noted in the BUGS section.

See the basename(3)/dirname(3) regression tests in src/regress/lib/libc.

Inspired by discussion with Niels Provos, related to PR 18647.
2002-10-17 02:06:04 +00:00
ross
814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
wiz
09a03cd887 Standardize section headers, sort sections, sort SEE ALSO, punctuation
and misc. fixes.
2001-09-16 02:57:03 +00:00
wiz
a0dbe70b74 Boring whitespace fixes. 2001-09-16 02:30:23 +00:00
kleink
03126e1c99 Use full month names with .Dd, as per mdoc.samples(7). 1999-09-12 18:47:10 +00:00
garbled
38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
perry
312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
kleink
8bfc0cef1e Add basename() and dirname(), from XPG4.2. 1997-11-02 16:48:25 +00:00