/haiku-fatelf/src/libs/pdflib/libs/pdcore/ |
H A D | pc_sbuf.c | 33 pdc_sbuf *sb = (pdc_sbuf *)pdc_malloc(pdc, sizeof (pdc_sbuf), fn); local 35 sb->pdc = pdc; 36 sb->buf = (char *)pdc_malloc(pdc, INIT_SIZE, fn); /* TODO: potential leak */ 37 sb->scan = sb->buf; 38 sb->limit = sb->buf + INIT_SIZE; 40 return sb; 45 pdc_sb_delete(pdc_sbuf *sb) argument 47 pdc_free(sb 78 pdc_sb_put_c(pdc_sbuf *sb, int ch) argument [all...] |
H A D | pc_sbuf.h | 28 void pdc_sb_delete(pdc_sbuf *sb); 62 void pdc_sb_put_c(pdc_sbuf *sb, int ch);
|
/haiku-fatelf/src/system/libroot/posix/malloc/ |
H A D | threadheap.cpp | 63 superblock *sb = findAvailableSuperblock(sizeclass, b, _pHeap); local 64 if (sb == NULL) { 69 sb = _pHeap->acquire((int)sizeclass, this); 73 if (sb == NULL) { 74 sb = superblock::makeSuperblock(sizeclass, _pHeap); 75 if (sb == NULL) { 83 m.allocate((int)sb->getNumBlocks() * 84 (int)sizeFromClass(sb->getBlockSizeClass())); 89 sb->getNumBlocks() * sizeFromClass(sb [all...] |
H A D | heap.cpp | 152 superblock *sb, processHeap *pHeap) 154 assert(sb->isValid()); 155 assert(sb->getBlockSizeClass() == sizeclass); 156 assert(sb->getPrev() == NULL); 157 assert(sb->getNext() == NULL); 161 sb->setOwner(this); 165 sb->computeFullness(); 166 int fullness = sb->getFullness(); 169 incStats(sizeclass, sb->getNumBlocks() - sb 151 insertSuperblock(int sizeclass, superblock *sb, processHeap *pHeap) argument 269 removeSuperblock(superblock *sb, int sizeclass) argument 294 moveSuperblock(superblock *sb, int sizeclass, int fromBin, int toBin) argument 330 freeBlock(block * &b, superblock * &sb, int sizeclass, processHeap *pHeap) argument [all...] |
H A D | heap.h | 108 void insertSuperblock(int sizeclass, superblock *sb, processHeap *pHeap); 132 int freeBlock(block * &b, superblock * &sb, int sizeclass, 305 superblock *sb = NULL; 315 sb = _superblocks[i][sizeclass]; 316 if (sb == NULL) { 322 } else if (sb->getNumAvailable() > 0) { 323 assert(sb->getOwner() == this); 326 sb = NULL; 330 if (sb == NULL) { 332 sb 471 recycle(superblock *sb) argument 499 superblock *sb = _reusableSuperblocks; local [all...] |
H A D | processheap.cpp | 165 superblock *sb = b->getSuperblock(); local 166 assert(sb); 167 assert(sb->isValid()); 169 const int sizeclass = sb->getBlockSizeClass(); 184 sb->upLock(); 186 owner = sb->getOwner(); 188 if (owner == sb->getOwner()) { 206 int sbUnmapped = owner->freeBlock(b, sb, sizeclass, this); 210 sb->upUnlock();
|
H A D | processheap.h | 80 inline void release(superblock * sb); 239 processHeap::release(superblock *sb) 241 assert(EMPTY_FRACTION * sb->getNumAvailable() > sb->getNumBlocks()); 246 insertSuperblock(sb->getBlockSizeClass(), sb, this);
|
H A D | threadheap.h | 148 superblock *sb = b->getSuperblock(); local 149 assert(sb); 152 return sizeFromClass(sb->getBlockSizeClass());
|
/haiku-fatelf/src/libs/util/ |
H A D | _secure_path.c | 49 struct stat sb; local 52 if (lstat(path, &sb) < 0) { 58 else if (!S_ISREG(sb.st_mode)) 60 else if (sb.st_mode & S_IWOTH) 62 else if ((int)uid != -1 && sb.st_uid != uid && sb.st_uid != 0) { 67 } else if ((int)gid != -1 && sb.st_gid != gid && (sb.st_mode & S_IWGRP))
|
H A D | pidfile.c | 48 struct stat sb; local 55 if (fstat(pfh->pf_fd, &sb) == -1) 57 if (sb.st_dev != pfh->pf_dev || sb.st_ino != pfh->pf_ino) 90 struct stat sb; local 145 if (fstat(fd, &sb) == -1) { 155 pfh->pf_dev = sb.st_dev; 156 pfh->pf_ino = sb.st_ino;
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | netconn.c | 59 struct stat sb; 63 if (fstat (fd, &sb) < 0) 66 if (S_ISFIFO (sb.st_mode)) 69 return (S_ISCHR (sb.st_mode)); 72 struct stat sb; 74 if (fstat (fd, &sb) < 0) 76 return (S_ISSOCK (sb.st_mode));
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | cycle-check.c | 58 cycle_check (struct cycle_check_state *state, struct stat const *sb) argument 65 if (state->chdir_counter && SAME_INODE (*sb, state->dev_ino)) 80 state->dev_ino.st_dev = sb->st_dev; 81 state->dev_ino.st_ino = sb->st_ino;
|
H A D | cycle-check.h | 36 bool cycle_check (struct cycle_check_state *state, struct stat const *sb);
|
/haiku-fatelf/src/libs/stdc++/legacy/ |
H A D | isgetline.cc | 42 streambuf *sb = rdbuf(); local 43 _gcount = _IO_getline_info(sb, buf, len - 1, delim, -1, &ch); 45 ch = sb->sbumpc(); 51 sb->sungetc(); // Leave delimiter unread. 97 char *_sb_readline (streambuf *sb, long& total, char terminator) argument 103 _IO_size_t count = _IO_getline_info(sb, buf, CHUNK_SIZE, terminator, 106 ch = sb->sbumpc(); 111 ptr = _sb_readline(sb, total, terminator); 137 streambuf *sb = rdbuf(); local 138 *s = _sb_readline (sb, siz [all...] |
H A D | isgetsb.cc | 29 istream& istream::get(streambuf& sb, char delim /* = '\n' */) argument 48 int written = sb.sputn(isb->_IO_read_ptr, len);
|
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | truncate.c | 145 struct stat sb; local 148 if ((block_mode || rel_mode) && fstat (fd, &sb) != 0) 155 off_t const blksize = ST_BLKSIZE (sb); 169 uintmax_t const fsize = sb.st_size; 171 if (sb.st_size < 0) 176 if (S_ISREG (sb.st_mode) || S_ISDIR (sb.st_mode) 177 || S_TYPEISSHM (&sb)) 232 if (fstat (fd, &sb) != 0) 237 else if (S_ISREG (sb 365 struct stat sb; local 385 struct stat sb; local [all...] |
/haiku-fatelf/src/libs/expat/xmlwf/ |
H A D | readfilemap.c | 43 struct stat sb; local 51 if (fstat(fd, &sb) < 0) { 55 if (!S_ISREG(sb.st_mode)) { 59 nbytes = sb.st_size;
|
H A D | unixfilemap.c | 27 struct stat sb; local 35 if (fstat(fd, &sb) < 0) { 40 if (!S_ISREG(sb.st_mode)) { 46 nbytes = sb.st_size;
|
/haiku-fatelf/headers/cpp/ |
H A D | sstream | 239 : istream(&sb), sb(which | ios::in) 244 : istream(&sb), sb(str, which | ios::in) 250 return const_cast<stringbuf*>(&sb); 264 stringbuf sb; 276 : ostream(&sb), sb(which | ios::out) 281 : ostream(&sb), sb(st [all...] |
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | chown.c | 84 struct stat sb; local 87 && fstat (fd, &sb) == 0 && S_ISFIFO (sb.st_mode));
|
/haiku-fatelf/src/system/libroot/posix/glibc/arch/generic/ |
H A D | s_erfl.c | 211 /* erfc(1/x) = x exp (-1/x^2 - 0.5625 + rb(x^2)/sb(x^2)) 225 sb[] = { variable 327 S = sb[0] + s * (sb[1] + s * (sb[2] + s * (sb[3] + s * (sb[4] + 328 s * (sb[5] + s * (sb[6] + s)))))); 420 S = sb[ [all...] |
/haiku-fatelf/src/libs/ncurses/test/ |
H A D | ditto.c | 67 struct stat sb; local 69 if (stat(path, &sb) < 0) 71 if ((sb.st_mode & S_IFMT) != S_IFCHR) {
|
/haiku-fatelf/src/bin/bash/lib/readline/examples/ |
H A D | rl.c | 85 struct stat sb; local 134 if (fstat (fd, &sb) < 0)
|
/haiku-fatelf/src/bin/gdb/readline/examples/ |
H A D | rl.c | 79 struct stat sb; local 128 if (fstat (fd, &sb) < 0)
|
/haiku-fatelf/src/bin/network/ftp/ |
H A D | main.c | 803 char *sb = stringbase; local 807 if (*sb == '!' || *sb == '$') { /* recognize ! as a token for shell */ 812 return ((*sb == '!') ? "!" : "$"); 824 switch (*sb) { 831 INC_CHKCURSOR(sb); 841 altarg = sb; 850 switch (*sb) { 858 INC_CHKCURSOR(sb); 862 INC_CHKCURSOR(sb); [all...] |