]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/malloc_info.3
Removed trailing white space at end of lines
[thirdparty/man-pages.git] / man3 / malloc_info.3
index a8b7375605ea57afcf31fffc6293ae07570877ed..7953abd5fba49638af473aa2e6e8820361965b62 100644 (file)
@@ -22,7 +22,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH MALLOC_INFO 3  2015-07-23 "GNU" "Linux Programmer's Manual"
+.TH MALLOC_INFO 3  2019-03-06 "GNU" "Linux Programmer's Manual"
 .SH NAME
 malloc_info \- export malloc state to a stream
 .SH SYNOPSIS
@@ -120,9 +120,9 @@ allocate 10000 blocks of memory.
 After the blocks of memory have been allocated,
 .BR malloc_info ()
 shows the state of two allocation arenas.
+.PP
 .in +4
-.nf
-
+.EX
 .RB "$ " "getconf GNU_LIBC_VERSION"
 glibc 2.13
 .RB "$ " "./a.out 1 10000 100"
@@ -175,11 +175,10 @@ glibc 2.13
 <aspace type="total" size="2113536"/>
 <aspace type="mprotect" size="2113536"/>
 </malloc>
-.fi
+.EE
 .in
 .SS Program source
-.nf
-
+.EX
 #include <unistd.h>
 #include <stdlib.h>
 #include <pthread.h>
@@ -189,7 +188,7 @@ glibc 2.13
 static size_t blockSize;
 static int numThreads, numBlocks;
 
-#define errExit(msg)    do { perror(msg); exit(EXIT_FAILURE); \\
+#define errExit(msg)    do { perror(msg); exit(EXIT_FAILURE); \e
                         } while (0)
 
 static void *
@@ -217,7 +216,7 @@ main(int argc, char *argv[])
 
     if (argc < 4) {
         fprintf(stderr,
-                "%s num\-threads num\-blocks block\-size [sleep\-time]\\n",
+                "%s num\-threads num\-blocks block\-size [sleep\-time]\en",
                 argv[0]);
         exit(EXIT_FAILURE);
     }
@@ -231,7 +230,7 @@ main(int argc, char *argv[])
     if (thr == NULL)
         errExit("calloc");
 
-    printf("============ Before allocating blocks ============\\n");
+    printf("============ Before allocating blocks ============\en");
     malloc_info(0, stdout);
 
     /* Create threads that allocate different amounts of memory */
@@ -260,12 +259,12 @@ main(int argc, char *argv[])
     sleep(2);           /* Give all threads a chance to
                            complete allocations */
 
-    printf("\\n============ After allocating blocks ============\\n");
+    printf("\en============ After allocating blocks ============\en");
     malloc_info(0, stdout);
 
     exit(EXIT_SUCCESS);
 }
-.fi
+.EE
 .SH SEE ALSO
 .BR mallinfo (3),
 .BR malloc (3),