Lines Matching refs:np
31 char *np; in main() local
35 np = mremap(p, 1024*1024, 256*1024, 0); /* shrink, fixed */ in main()
36 if (np == (char *)-1) in main()
38 if (np != p) in main()
40 p, np); in main()
41 if (np != (char *)-1) in main()
42 munmap(np, 256*1024); in main()
45 np = mremap(p, 1024*1024, 256*1024, MREMAP_MAYMOVE); /* shrink, maymove */ in main()
46 if (np == (char *)-1) in main()
48 if (np != p) in main()
50 p, np); in main()
51 if (np != (char *)-1) in main()
52 munmap(np, 256*1024); in main()
55 np = mremap(p, 1024*1024, 2048*1024, 0); /* grow, fixed */ in main()
56 if (np == (char *)-1) in main()
58 if (np != p) in main()
60 p, np); in main()
61 if (np != (char *)-1) in main()
62 munmap(np, 2048*1024); in main()
65 np = mremap(p, 1024*1024, 2048*1024, MREMAP_MAYMOVE); /* grow, maymove */ in main()
66 if (np == (char *)-1) in main()
68 if (np != p) in main()
70 p, np); in main()
71 if (np != (char *)-1) in main()
72 munmap(np, 2048*1024); in main()
76 np = mremap(p, 512*1024, 1024*1024, 0); /* grow, nomove, constrained */ in main()
77 if (np == (char *)-1) in main()
79 else if (np == p) in main()
81 p, np); in main()
82 if (np != (char *)-1) in main()
83 munmap(np, 1024*1024); in main()
88 np = mremap(p, 512*1024, 1024*1024, MREMAP_MAYMOVE); /* grow, maymove, constrained */ in main()
89 if (np == (char *)-1) in main()
91 if (np == p) in main()
93 p, np); in main()
94 if (np != (char *)-1) in main()
95 munmap(np, 1024*1024); in main()