/illumos-gate/usr/src/cmd/sh/ |
H A D | setbrk.c | 44 register unsigned char *a = (unsigned char *)sbrk(incr);
|
/illumos-gate/usr/src/lib/libmtmalloc/tests/ |
H A D | wideload.c | 48 foo = (char *)sbrk(0); 51 bar = (char *)sbrk(0);
|
H A D | failwide.c | 49 foo = (char *)sbrk(0); 52 bar = (char *)sbrk(0);
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | sbrk.c | 31 * Minimal sbrk() emulation required for malloc support. 51 sbrk(int incr) function
|
H A D | Makefile.inc | 28 SRCS += $(LIBSTAND_SRC)/sbrk.c $(LIBSTAND_SRC)/twiddle.c 34 sbrk.o twiddle.o zalloc.o zalloc_malloc.o
|
H A D | zalloc_malloc.c | 34 * MALLOC.C - malloc equivalent, runs on top of zalloc and uses sbrk 68 if ((base = sbrk(incr)) == (char *)-1)
|
/illumos-gate/usr/src/lib/libbsdmalloc/common/ |
H A D | malloc.bsd43.c | 91 static long sbrk_adjust; /* in case sbrk() does alignment */ 110 op = sbrk(0); 115 if (sbrk(n) == (void *)-1) 119 * sbrk(0) + sizeof (union overhead) 121 * If the underlying sbrk() performs alignment 124 op = sbrk(0); 198 * the value required is too big for sbrk() to deal with 199 * in one go, so use sbrk() at most 2 times instead. 201 op = sbrk(0); 204 if (sbrk(delt [all...] |
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | sbrk.c | 27 #pragma weak _sbrk = sbrk 59 sbrk(intptr_t addend) function 114 * Unlike sbrk(2), _sbrk_grow_aligned takes an unsigned size, and does
|
/illumos-gate/usr/src/cmd/amt/ |
H A D | amt.c | 245 * sbrk returns prior address value; rather than calculating 246 * the sbrk result, sbrk is called twice, so address points 249 (void) sbrk(PAGESIZE); 250 address = sbrk(0); 407 hole_start = (caddr_t)sbrk(0); 426 address = sbrk(0); 438 address = sbrk(0); 466 hole_after = sbrk(0); 665 address = sbrk( [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | plock.c | 53 extern caddr_t sbrk(); /* find end of data segment */ 91 l = (u_int)(sbrk(0) - a);
|
H A D | malloc.c | 55 extern char *sbrk(); 560 * If the ptr is not from the sbrk'ed space, return. 1108 * profiling) may have invoked sbrk() before we got here. 1128 p = (Dblk) sbrk((int)nbytes); 1170 blk = (Dblk) sbrk(size); 1367 ub = (uint)sbrk(0);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/sparc/ |
H A D | sbrk.s | 27 .file "sbrk.s" 44 ENTRY(sbrk) function 71 SET_SIZE(sbrk)
|
/illumos-gate/usr/src/cmd/spell/ |
H A D | malloc.c | 78 extern char *sbrk(); 116 p = (union store *)sbrk(0); 123 q = (union store *)sbrk(temp*WORD);
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | mallint.h | 134 #define GETCORE sbrk
|
/illumos-gate/usr/src/man/man2/ |
H A D | Makefile | 234 sbrk.2 \ 280 sbrk.2 := LINKSRC = brk.2
|
/illumos-gate/usr/src/lib/libmtmalloc/common/ |
H A D | mtmalloc.c | 76 * is allocated via sbrk(). The new cache is allocated from this chunk of memory 83 * tunable, requestsize, that bumps up the sbrk allocation size and thus 820 * First, make sure sbrk is sane, and store the current brk in oldbrk. 822 oldbrk = (uintptr_t)sbrk(0); 824 abort(); /* sbrk is broken -- we're doomed. */ 834 if (newbrk != oldbrk && (uintptr_t)sbrk(newbrk - oldbrk) != oldbrk) 835 abort(); /* sbrk is broken -- we're doomed. */ 842 new_cpu_list = (percpu_t *)sbrk(cache_space_needed); 846 abort(); /* sbrk is broken -- we're doomed. */ 857 if (padding > 0 && (uintptr_t)sbrk(paddin [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mallint.h | 164 #define GETCORE sbrk
|
/illumos-gate/usr/src/tools/tokenize/ |
H A D | forth_preload.c | 163 { "sbrk", 0 }, 279 ipose(sbrk)
|
/illumos-gate/usr/src/lib/libast/common/vmalloc/ |
H A D | vmhdr.h | 51 #define sbrk ______sbrk macro 62 #undef sbrk macro 84 /* the below macros decide which combinations of sbrk() or mmap() to used */ 522 extern Void_t* sbrk _ARG_(( ssize_t )); 533 extern Void_t* sbrk _ARG_((ssize_t));
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.misc.c | 497 xalloc_bottom = sbrk(0); 523 xalloc_bottom = sbrk(0);
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 74 * aquired by the user directly through sbrk(). It 513 if ((newblk = (struct header *)sbrk(0)) != 519 " brk or sbrk?\n", 41); 540 * shared with brk or sbrk 1078 ret = sbrk(0); 1081 if (sbrk(wad) == (void *)-1) { 1082 if (ret != sbrk(0)) 1083 (void) sbrk(-LONG_MAX); 1090 ret = sbrk(bytes); 1148 * of it was fetched by a user's sbrk() [all...] |
/illumos-gate/usr/src/cmd/troff/ |
H A D | n3.c | 692 char *sbrk(); 694 if ((i = sbrk(x)) == (char *) -1) { 700 if ((k = sbrk(j)) == (char *) -1) { 704 if (k != i + x) { /*there must have been an intervening sbrk*/
|
/illumos-gate/usr/src/boot/sys/boot/uboot/common/ |
H A D | main.c | 514 printf("heap base at %p, top at %p, used %td\n", end, sbrk(0), 515 sbrk(0) - end);
|
/illumos-gate/usr/src/boot/sys/boot/userboot/libstand/ |
H A D | Makefile | 28 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 116 fendcore = (line *) sbrk(0); 200 if ((int) sbrk((int) (H.Flines * sizeof (line))) == -1)
|