aboutsummaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2006-03-13 20:00:44 +0000
committerDJ Delorie <dj@redhat.com>2006-03-13 20:00:44 +0000
commit9223c9457dfba4e1516b2e206446f1cea1a42a57 (patch)
tree6699799c091c94e9b08d0b476e4dbcdad5c93821 /libiberty/functions.texi
parentd329bcd1dfdb69f429ad8e5f4868ee845a4debe6 (diff)
downloadgdb-9223c9457dfba4e1516b2e206446f1cea1a42a57.zip
gdb-9223c9457dfba4e1516b2e206446f1cea1a42a57.tar.gz
gdb-9223c9457dfba4e1516b2e206446f1cea1a42a57.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi22
1 files changed, 21 insertions, 1 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index 8b4a50e..a09e207 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -214,6 +214,26 @@ symbolic name or message.
@end deftypefn
+@c argv.c:293
+@deftypefn Extension void expandargv (int *@var{argcp}, char ***@var{argvp})
+
+The @var{argcp} and @code{argvp} arguments are pointers to the usual
+@code{argc} and @code{argv} arguments to @code{main}. This function
+looks for arguments that begin with the character @samp{@@}. Any such
+arguments are interpreted as ``response files''. The contents of the
+response file are interpreted as additional command line options. In
+particular, the file is separated into whitespace-separated strings;
+each such string is taken as a command-line option. The new options
+are inserted in place of the option naming the response file, and
+@code{*argcp} and @code{*argvp} will be updated. If the value of
+@code{*argvp} is modified by this function, then the new value has
+been dynamically allocated and can be deallocated by the caller with
+@code{freeargv}. However, most callers will simply call
+@code{expandargv} near the beginning of @code{main} and allow the
+operating system to free the memory when the program exits.
+
+@end deftypefn
+
@c fdmatch.c:23
@deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2})
@@ -1194,7 +1214,7 @@ translation is found, returns 0.
@end deftypefn
-@c strverscmp.c:24
+@c strverscmp.c:25
@deftypefun int strverscmp (const char *@var{s1}, const char *@var{s2})
The @code{strverscmp} function compares the string @var{s1} against
@var{s2}, considering them as holding indices/version numbers. Return