Searched refs:_base (Results 1 - 25 of 53) sorted by relevance

123

/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dlocal.h64 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
71 #define HASUB(fp) ((fp)->_ub._base != NULL)
73 if ((fp)->_ub._base != (fp)->_ubuf) \
74 free((char *)(fp)->_ub._base); \
75 (fp)->_ub._base = NULL; \
81 #define HASLB(fp) ((fp)->_lb._base != NULL)
83 free((char *)(fp)->_lb._base); \
84 (fp)->_lb._base = NULL; \
H A Dsscanf.c72 f._bf._base = f._p = (unsigned char *)str;
75 f._ub._base = NULL;
76 f._lb._base = NULL;
H A Dfgetln.c65 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
67 fp->_lb._base = p;
132 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
146 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
154 fp->_lb._base[len] = 0;
156 return ((char *)fp->_lb._base);
H A Dungetc.c56 if (fp->_ub._base == fp->_ubuf) {
62 fp->_ub._base = p;
71 p = realloc(fp->_ub._base, i << 1);
77 fp->_ub._base = p;
127 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base &&
140 fp->_ub._base = fp->_ubuf;
H A Dfvwrite.c116 size_t blen = fp->_p - fp->_bf._base;
117 unsigned char *_base; local
125 _base = realloc(fp->_bf._base, _size + 1);
126 if (_base == NULL)
129 fp->_bf._base = _base;
131 fp->_p = _base + blen;
141 } else if (fp->_p > fp->_bf._base && len > w) {
183 if (fp->_p > fp->_bf._base
[all...]
H A Dwsetup.c66 fp->_p = fp->_bf._base;
74 if (fp->_bf._base == NULL)
H A Dvsnprintf.c48 file._bf._base = file._p = (unsigned char *)buffer;
H A Dvsprintf.c49 f._bf._base = f._p = (unsigned char *)str;
H A Dmakebuf.c60 fp->_bf._base = fp->_p = fp->_nbuf;
67 fp->_bf._base = fp->_p = fp->_nbuf;
73 fp->_bf._base = fp->_p = p;
H A Dfseek.c103 curoff += fp->_p - fp->_bf._base;
129 if (fp->_bf._base == NULL)
177 n = fp->_up - fp->_bf._base;
181 n = fp->_p - fp->_bf._base;
196 fp->_p = fp->_bf._base + o;
216 fp->_p = fp->_bf._base;
231 * do it. Allow the seek function to change fp->_bf._base.
241 fp->_p = fp->_bf._base;
H A Dsnprintf.c51 f._bf._base = f._p = (unsigned char *)buffer;
H A Dwbuf.c79 n = fp->_p - fp->_bf._base;
H A Drefill.c107 if (fp->_bf._base == NULL)
117 fp->_p = fp->_bf._base;
/haiku-fatelf/src/system/boot/platform/cfe/
H A Dheap.cpp24 platform_init_heap(stage2_args *args, void **_base, void **_top) argument
28 *_base = NULL;
29 status_t error = platform_allocate_region(_base, args->heap_size,
34 printf("heap base = %p\n", *_base);
35 *_top = (void *)((int8 *)*_base + args->heap_size);
/haiku-fatelf/src/system/boot/platform/openfirmware/
H A Dheap.cpp24 platform_init_heap(stage2_args *args, void **_base, void **_top) argument
28 *_base = NULL;
29 status_t error = platform_allocate_region(_base, args->heap_size,
34 printf("heap base = %p\n", *_base);
35 *_top = (void *)((int8 *)*_base + args->heap_size);
/haiku-fatelf/src/bin/coreutils/lib/
H A Dstdio-impl.h29 struct { unsigned char *_base; int _size; } _bf; \
35 struct { unsigned char *_base; int _size; } _ub; \
39 struct { unsigned char *_base; int _size; } _lb; \
61 # define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub
66 # define HASUB(fp) (fp_ub._base != NULL)
77 unsigned char *_base; \
90 # define _base __base macro
H A Dfpurge.c75 fp_->_p = fp_->_bf._base;
81 if (fp_ub._base != NULL)
83 if (fp_ub._base != fp_->_ubuf)
84 free (fp_ub._base);
85 fp_ub._base = NULL;
95 fp->_ptr = fp->_base;
/haiku-fatelf/src/bin/network/wget/lib/
H A Dstdio-impl.h29 struct { unsigned char *_base; int _size; } _bf; \
35 struct { unsigned char *_base; int _size; } _ub; \
39 struct { unsigned char *_base; int _size; } _lb; \
61 # define fp_ub ((struct __sfileext *) fp->_ext._base)->_ub
66 # define HASUB(fp) (fp_ub._base != NULL)
77 unsigned char *_base; \
90 # define _base __base macro
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dfpurge.c85 fp->_p = fp->_bf._base;
94 # define fp_ub ((struct { struct __sbuf _ub; } *) fp->_ext._base)->_ub
98 if (fp_ub._base != NULL)
100 if (fp_ub._base != fp->_ubuf)
101 free (fp_ub._base);
102 fp_ub._base = NULL;
106 fp->_ptr = fp->_base;
H A Dvprint.c54 iop->_ptr = iop->_base = localbuf;
58 iop->_base = NULL;
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dfpurge.c73 fp->_p = fp->_bf._base;
82 # define fp_ub ((struct { struct __sbuf _ub; } *) fp->_ext._base)->_ub
86 if (fp_ub._base != NULL)
88 if (fp_ub._base != fp->_ubuf)
89 free (fp_ub._base);
90 fp_ub._base = NULL;
94 fp->_ptr = fp->_base;
H A Dfseeko.c50 # define fp_ub ((struct { struct __sbuf _ub; } *) fp->_ext._base)->_ub
67 if (fp->_p == fp->_bf._base
72 && fp_ub._base == NULL)
76 unsigned char *_base; \
82 if (fp_->_ptr == fp_->_base
85 if (fp->_ptr == fp->_base
/haiku-fatelf/headers/private/app/
H A DServerMemoryAllocator.h27 uint8*& _base, size_t size,
/haiku-fatelf/src/add-ons/kernel/cpu/x86/
H A Dgeneric_x86.h26 extern status_t generic_get_mtrr(uint32 index, uint64 *_base, uint64 *_length,
/haiku-fatelf/src/kits/app/
H A DServerMemoryAllocator.cpp68 uint8*& _base, size_t size, bool readOnly)
107 _base = mapping->local_base;
132 uint8*& _base)
140 _base = mapping->local_base;
67 AddArea(area_id serverArea, area_id& _area, uint8*& _base, size_t size, bool readOnly) argument
131 AreaAndBaseFor(area_id serverArea, area_id& _area, uint8*& _base) argument

Completed in 144 milliseconds

123