Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add come comment

  • Loading branch information...
commit c0b08e0f8877b584dbe1c1638ca86d4075562409 1 parent aee54de
ngn999 authored

Showing 1 changed file with 12 additions and 5 deletions. Show diff stats Hide diff stats

  1. +12 5 memalloc/free_and_sbrk.c
17 memalloc/free_and_sbrk.c
@@ -9,21 +9,28 @@
9 9 \**********************************************************************/
10 10
11 11 /* free_and_sbrk.c
12   -
  12 +
13 13 Test if free(3) actually lowers the program break.
14   -
  14 +
15 15 Usage: free_and_sbrk num-allocs block-size [step [min [max]]]
16   -
  16 +
17 17 Try: free_and_sbrk 1000 10240 2 1 1000
18 18 free_and_sbrk 1000 10240 1 1 999
19 19 free_and_sbrk 1000 10240 1 1 500
20   -
  20 +
21 21 (Only the last of these should see the program break lowered.)
22 22 */
23 23 #include "tlpi_hdr.h"
24 24
25 25 #define MAX_ALLOCS 1000000
26   -
  26 +/**
  27 + *
  28 + *
  29 + * @param argc arg number
  30 + * @param argv arg
  31 + *
  32 + * @return 0, success, other failture
  33 + */
27 34 int
28 35 main(int argc, char *argv[])
29 36 {

0 comments on commit c0b08e0

Please sign in to comment.
Something went wrong with that request. Please try again.