summaryrefslogtreecommitdiff
path: root/ltrace.conf.5
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-11-11 02:24:42 +0100
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:23 +0900
commite6c25f6799825812e2b87990333c649ba796f600 (patch)
tree8d68002e600f53c912433310ced3b13fb2883b95 /ltrace.conf.5
parentf292cf4e52c73fcc3b63ba2b032d17822f63e6e8 (diff)
downloadltrace-e6c25f6799825812e2b87990333c649ba796f600.tar.gz
ltrace-e6c25f6799825812e2b87990333c649ba796f600.tar.bz2
ltrace-e6c25f6799825812e2b87990333c649ba796f600.zip
Support wide character strings
- "string" lens and "format" pack were extended such that using an integer as underlying array type denotes a wide character string. - several prototypes from wchar.h were added to libc.so.conf. - ltrace.conf.5 was updated
Diffstat (limited to 'ltrace.conf.5')
-rw-r--r--ltrace.conf.519
1 files changed, 11 insertions, 8 deletions
diff --git a/ltrace.conf.5 b/ltrace.conf.5
index 957fe8b..bdf0ceb 100644
--- a/ltrace.conf.5
+++ b/ltrace.conf.5
@@ -1,5 +1,5 @@
.\" -*-nroff-*-
-.\" Copyright (c) 2012 Petr Machata, Red Hat Inc.
+.\" Copyright (c) 2012, 2013 Petr Machata, Red Hat Inc.
.\" Copyright (c) 1997-2005 Juan Cespedes <cespedes@debian.org>
.\"
.\" This program is free software; you can redistribute it and/or
@@ -171,13 +171,16 @@ pointer to 256-bit bit vector.
.RS
The first form of the argument is canonical, the latter two are
syntactic sugar. In the canonical form, the function argument is
-formatted as string. The \fITYPE\fR shall be either a \fBchar*\fR, or
-\fBarray(char,\fIEXPR\fB)\fR, or \fBarray(char,\fIEXPR\fB)*\fR. If an
-array is given, the length will typically be a \fBzero\fR expression
-(but doesn't have to be). Using argument that is plain array
-(i.e. not a pointer to array) makes sense e.g. in C structs, in cases
-like \fBstruct(string(array(char, \fR6\fB)))\fR, which describes the C
-type \fBstruct {char \fRs\fB[\fR6\fB];}\fR.
+formatted as string. The \fITYPE\fR can have either of the following
+forms: \fIX\fB*\fR, or \fBarray(\fIX\fB,\fIEXPR\fB)\fR, or
+\fBarray(\fIX\fB,\fIEXPR\fB)*\fR. \fIX\fR is either \fBchar\fR for
+normal strings, or an integer type for wide-character strings.
+
+If an array is given, the length will typically be a \fBzero\fR
+expression (but doesn't have to be). Using argument that is plain
+array (i.e. not a pointer to array) makes sense e.g. in C structs, in
+cases like \fBstruct(string(array(char, \fR6\fB)))\fR, which describes
+the C type \fBstruct {char \fRs\fB[\fR6\fB];}\fR.
Because simple C-like strings are pretty common, there are two
shorthand forms. The first shorthand form (with brackets) means the