diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:14 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-05-03 00:48:22 +0200 |
commit | fe5dba139dc089eae4061fdc17f087e71f48b198 (patch) | |
tree | 54af56b1b0138bde9a21e99372ab68ce4d64564a /man1 | |
parent | 5a0d9ed151e6449d978fabdd654cacc17b20a235 (diff) |
man*/, man.ignore.grep: srcfix; warn about blank lines
- Use the dummy character to avoid warnings in examples.
- Re-enable the warning.
Suggested-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man1')
-rw-r--r-- | man1/intro.1 | 2 | ||||
-rw-r--r-- | man1/locale.1 | 10 | ||||
-rw-r--r-- | man1/memusage.1 | 14 | ||||
-rw-r--r-- | man1/sprof.1 | 18 |
4 files changed, 22 insertions, 22 deletions
diff --git a/man1/intro.1 b/man1/intro.1 index 5c60aa520..78cd46610 100644 --- a/man1/intro.1 +++ b/man1/intro.1 @@ -69,7 +69,7 @@ Su Mo Tu We Th Fr Sa 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 - +\& .RB "$ " ls bin tel .RB "$ " "ls \-l" diff --git a/man1/locale.1 b/man1/locale.1 index 4e257eb7b..6754aa1f0 100644 --- a/man1/locale.1 +++ b/man1/locale.1 @@ -139,24 +139,24 @@ LC_TELEPHONE="en_US.UTF\-8" LC_MEASUREMENT="en_US.UTF\-8" LC_IDENTIFICATION="en_US.UTF\-8" LC_ALL= - +.PP $ \fBlocale date_fmt\fP %a %b %e %H:%M:%S %Z %Y - +.PP $ \fBlocale \-k date_fmt\fP date_fmt="%a %b %e %H:%M:%S %Z %Y" - +.PP $ \fBlocale \-ck date_fmt\fP LC_TIME date_fmt="%a %b %e %H:%M:%S %Z %Y" - +.PP $ \fBlocale LC_TELEPHONE\fP +%c (%a) %l (%a) %l 11 1 UTF\-8 - +.PP $ \fBlocale \-k LC_TELEPHONE\fP tel_int_fmt="+%c (%a) %l" tel_dom_fmt="(%a) %l" diff --git a/man1/memusage.1 b/man1/memusage.1 index e9c656825..aeca54bb0 100644 --- a/man1/memusage.1 +++ b/man1/memusage.1 @@ -223,35 +223,35 @@ $ \fBmemusagestat memusage.dat memusage.png\fP .EX #include <stdio.h> #include <stdlib.h> - +\& #define CYCLES 20 - +\& int main(int argc, char *argv[]) { int i, j; size_t size; int *p; - +\& size = sizeof(*p) * 100; printf("malloc: %zu\en", size); p = malloc(size); - +\& for (i = 0; i < CYCLES; i++) { if (i < CYCLES / 2) j = i; else j\-\-; - +\& size = sizeof(*p) * (j * 50 + 110); printf("realloc: %zu\en", size); p = realloc(p, size); - +\& size = sizeof(*p) * ((j + 1) * 150 + 110); printf("realloc: %zu\en", size); p = realloc(p, size); } - +\& free(p); exit(EXIT_SUCCESS); } diff --git a/man1/sprof.1 b/man1/sprof.1 index 04903d6e9..0807ee5bd 100644 --- a/man1/sprof.1 +++ b/man1/sprof.1 @@ -65,10 +65,10 @@ First, the code of the main program: .EX $ \fBcat prog.c\fP #include <stdlib.h> - +\& void x1(void); void x2(void); - +\& int main(int argc, char *argv[]) { @@ -90,27 +90,27 @@ construct the shared object: .EX $ \fBcat libdemo.c\fP #include <unistd.h> - +\& void consumeCpu1(int lim) { for (unsigned int j = 0; j < lim; j++) getppid(); } - +\& void x1(void) { for (unsigned int j = 0; j < 100; j++) consumeCpu1(200000); } - +\& void consumeCpu2(int lim) { for (unsigned int j = 0; j < lim; j++) getppid(); } - +\& void x2(void) { @@ -211,7 +211,7 @@ option to generate a flat profile with counts and ticks: .EX $ \fBsprof \-p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile\fP Flat profile: - +\& Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls us/call us/call name @@ -229,9 +229,9 @@ option generates a call graph: .in +4n .EX $ \fBsprof \-q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile\fP - +\& index % time self children called name - +\& 0.00 0.00 100/100 x1 [1] [0] 100.0 0.00 0.00 100 consumeCpu1 [0] \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- |