diff --git a/man2/brk.2 b/man2/brk.2 index 00f522d5a..7ed12789a 100644 --- a/man2/brk.2 +++ b/man2/brk.2 @@ -31,16 +31,16 @@ brk, sbrk \- change data segment size .SH SYNOPSIS .B #include -.sp +.PP .BI "int brk(void *" addr ); -.sp +.PP .BI "void *sbrk(intptr_t " increment ); -.sp +.PP .in -4n Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .in -.sp +.PP .BR brk (), .BR sbrk (): .ad l @@ -83,14 +83,14 @@ uninitialized data segment). Increasing the program break has the effect of allocating memory to the process; decreasing the break deallocates memory. - +.PP .BR brk () sets the end of the data segment to the value specified by .IR addr , when that value is reasonable, the system has enough memory, and the process does not exceed its maximum data size (see .BR setrlimit (2)). - +.PP .BR sbrk () increments the program's data space by .I increment @@ -108,7 +108,7 @@ On error, \-1 is returned, and .I errno is set to .BR ENOMEM . - +.PP On success, .BR sbrk () returns the previous program break. @@ -137,7 +137,7 @@ the .BR malloc (3) memory allocation package is the portable and comfortable way of allocating memory. - +.PP Various systems use various types for the argument of .BR sbrk (). Common are \fIint\fP, \fIssize_t\fP, \fIptrdiff_t\fP, \fIintptr_t\fP. @@ -163,7 +163,7 @@ The glibc wrapper function does some work (i.e., checks whether the new break is less than .IR addr ) to provide the 0 and \-1 return values described above. - +.PP On Linux, .BR sbrk () is implemented as a library function that uses the