[PATCH v3 1/4] man/man5/ld.so.conf.5: document include syntax
DJ Delorie <[email protected]> Fri, 31 Jul 2026 14:22:24 -0400
| Newsgroups | org.kernel.vger.linux-man |
|---|---|
| Message-ID | <ae9c2cc67047902f68f64d05ca454da0e6d008b3.1785522144.git.dj@redhat.com> |
--- man/man5/ld.so.conf.5 | 24 ++++++++++++++++++++++++ man/man8/ldconfig.8 | 2 -- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/man/man5/ld.so.conf.5 b/man/man5/ld.so.conf.5 index 481cf9152..d9fae3c1f 100644 --- a/man/man5/ld.so.conf.5 +++ b/man/man5/ld.so.conf.5 @@ -9,8 +9,32 @@ .SH DESCRIPTION This file contains a list of directories, one per line, in which to search for libraries. +.P +The file is parsed by +.BR \%ldconfig (8) +and the results stored in +.IR /etc/ld.so.cache . +.P +The syntax allows lines to start with the keyword +.B include +followed by a +.BR glob (7) +pattern. +Files matching that pattern will be processed +as if their contents were included at that point. .SH FILES .I /etc/ld.so.conf +.SH EXAMPLES +Example config file: +.P +.in +4n +.EX +/lib +/usr/lib +/usr/local/lib +include /etc/ld.so.conf.d/*.conf +.EE +.in .SH SEE ALSO .BR ld.so (8), .BR ldconfig (8) diff --git a/man/man8/ldconfig.8 b/man/man8/ldconfig.8 index 9ac146b44..cb7d62ccc 100644 --- a/man/man8/ldconfig.8 +++ b/man/man8/ldconfig.8 @@ -178,8 +178,6 @@ .SH OPTIONS is also specified, the cache is still rebuilt. .SH FILES -.\" FIXME Since glibc-2.3.4, "include" directives are supported in ld.so.conf -.\" .\" FIXME Since glibc-2.4, "hwcap" directives are supported in ld.so.conf .PD 0 .TP -- 2.47.3