Searched refs:sbrk (Results 1 - 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/cmd/sh/
H A Dsetbrk.c44 register unsigned char *a = (unsigned char *)sbrk(incr);
/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dwideload.c48 foo = (char *)sbrk(0);
51 bar = (char *)sbrk(0);
H A Dfailwide.c49 foo = (char *)sbrk(0);
52 bar = (char *)sbrk(0);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dsbrk.c31 * Minimal sbrk() emulation required for malloc support.
51 sbrk(int incr) function
H A DMakefile.inc28 SRCS += $(LIBSTAND_SRC)/sbrk.c $(LIBSTAND_SRC)/twiddle.c
34 sbrk.o twiddle.o zalloc.o zalloc_malloc.o
H A Dzalloc_malloc.c34 * 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 Dmalloc.bsd43.c91 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 Dsbrk.c27 #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 Damt.c245 * 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 Dplock.c53 extern caddr_t sbrk(); /* find end of data segment */
91 l = (u_int)(sbrk(0) - a);
H A Dmalloc.c55 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 Dsbrk.s27 .file "sbrk.s"
44 ENTRY(sbrk) function
71 SET_SIZE(sbrk)
/illumos-gate/usr/src/cmd/spell/
H A Dmalloc.c78 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 Dmallint.h134 #define GETCORE sbrk
/illumos-gate/usr/src/man/man2/
H A DMakefile234 sbrk.2 \
280 sbrk.2 := LINKSRC = brk.2
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c76 * 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 Dmallint.h164 #define GETCORE sbrk
/illumos-gate/usr/src/tools/tokenize/
H A Dforth_preload.c163 { "sbrk", 0 },
279 ipose(sbrk)
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmhdr.h51 #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 Dsh.misc.c497 xalloc_bottom = sbrk(0);
523 xalloc_bottom = sbrk(0);
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c74 * 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 Dn3.c692 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 Dmain.c514 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 DMakefile28 sbrk.c twiddle.c zalloc.c zalloc_malloc.c
/illumos-gate/usr/src/cmd/vi/port/
H A Dexrecover.c116 fendcore = (line *) sbrk(0);
200 if ((int) sbrk((int) (H.Flines * sizeof (line))) == -1)

Completed in 94 milliseconds

12