diff options
Diffstat (limited to 'man3/wordexp.3')
-rw-r--r-- | man3/wordexp.3 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/man3/wordexp.3 b/man3/wordexp.3 index b89963d8d..554c26604 100644 --- a/man3/wordexp.3 +++ b/man3/wordexp.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH wordexp 3 2023-02-05 "Linux man-pages 6.03" +.TH wordexp 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME wordexp, wordfree \- perform word expansion like a posix-shell .SH LIBRARY @@ -171,33 +171,30 @@ Out of memory. .B WRDE_SYNTAX Shell syntax error, such as unbalanced parentheses or unmatched quotes. -.SH VERSIONS -.BR wordexp () -and -.BR wordfree () -are provided since glibc 2.1. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lb lb lbx l l l. Interface Attribute Value T{ +.na +.nh .BR wordexp () T} Thread safety T{ +.na +.nh MT-Unsafe race:utent const:env env sig:ALRM timer locale T} T{ +.na +.nh .BR wordfree () T} Thread safety MT-Safe .TE -.hy -.ad .sp 1 In the above table, .I utent @@ -214,7 +211,10 @@ then data races could occur. calls those functions, so we use race:utent to remind users. .SH STANDARDS -POSIX.1-2001, POSIX.1-2008. +POSIX.1-2008. +.SH HISTORY +POSIX.1-2001. +glibc 2.1. .SH EXAMPLES The output of the following example program is approximately that of "ls [a-c]*.c". @@ -224,13 +224,13 @@ is approximately that of "ls [a-c]*.c". #include <stdio.h> #include <stdlib.h> #include <wordexp.h> - +\& int main(void) { wordexp_t p; char **w; - +\& wordexp("[a\-c]*.c", &p, 0); w = p.we_wordv; for (size_t i = 0; i < p.we_wordc; i++) |