/haiku-fatelf/src/libs/ncurses/ncurses/trace/ |
H A D | lib_tracebits.c | 67 lookup_bits(char *buf, const BITNAMES * table, const char *label, unsigned int val) argument 71 (void) strcat(buf, label); 72 (void) strcat(buf, ": {"); 76 (void) strcat(buf, sp->name); 77 (void) strcat(buf, ", "); 79 if (buf[strlen(buf) - 2] == ',') 80 buf[strlen(buf) - 2] = '\0'; 81 (void) strcat(buf, "} "); 88 char *buf; local [all...] |
/haiku-fatelf/src/libs/print/libgutenprint/src/escputil/ |
H A D | d4lib.h | 36 extern int writeData(int fd, unsigned char socketID, const unsigned char *buf, int len, int eoj); 37 extern int readData(int fd, unsigned char socketID, unsigned char *buf, int len); 40 unsigned char *buf, int len, int *sndSz, int *rcvSz, 41 int (*test)(const unsigned char *buf)); 42 extern int readAnswer(int fd, unsigned char *buf, int len, int allowExtra);
|
/haiku-fatelf/src/system/libroot/posix/glibc/libio/ |
H A D | iofgets.c | 32 _IO_fgets (buf, n, fp) 33 char *buf; 50 count = INTUSE(_IO_getline) (fp, buf, n - 1, '\n', 1); 58 buf[count] = '\0'; 59 result = buf;
|
H A D | iofgetws.c | 32 fgetws (buf, n, fp) 33 wchar_t *buf; 50 count = _IO_getwline (fp, buf, n - 1, L'\n', 1); 57 buf[count] = '\0'; 58 result = buf;
|
/haiku-fatelf/src/system/libroot/posix/glibc/stdio-common/ |
H A D | psignal.c | 61 char *buf; local 63 (void) __asprintf (&buf, _("%s%sUnknown signal %d\n"), s, colon, sig); 67 (void) __fwprintf (stderr, L"%s", buf); 70 (void) fputs (buf, stderr); 72 free (buf);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/ |
H A D | 28-2.c | 42 char *buf; local 56 buf = mmap(NULL, BUF_SIZE, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0); 57 if( buf == MAP_FAILED) { 63 strcpy(buf, str); 78 if(strcmp(buf, str) == 0) {
|
H A D | 1-1.c | 41 char *buf; local 55 buf = mmap(NULL, BUF_SIZE, PROT_WRITE, MAP_SHARED, fd, 0); 56 if( buf == MAP_FAILED) { 62 strcpy(buf, str); 71 buf = mmap(NULL, BUF_SIZE, PROT_READ, MAP_SHARED, fd, 0); 72 if( buf == MAP_FAILED) { 79 if(strcmp(buf, str) == 0) {
|
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | remote-m32r-sdi.c | 174 send_data (void *buf, int len) argument 181 if (serial_write (sdi_desc, buf, len) != 0) 192 recv_data (void *buf, int len) argument 207 ((unsigned char *) buf)[total++] = c; 215 store_long_parameter (void *buf, long val) argument 218 memcpy (buf, &val, 4); 224 unsigned char buf[1]; local 225 buf[0] = cmd; 226 return send_data (buf, 1); 232 unsigned char buf[ local 241 unsigned char buf[6]; local 252 unsigned char buf[13]; local 442 unsigned char buf[13]; local 690 unsigned char buf[13]; local 1040 unsigned char buf[0x2000]; local 1147 unsigned char buf[13]; local 1302 char unsigned buf[0x1000 + 9]; local 1488 unsigned char buf[4096]; local 1515 unsigned char buf[3]; local 1527 unsigned char buf[3]; local 1538 unsigned char buf[3]; local [all...] |
H A D | ocd.c | 74 char buf[100]; 127 sprintf (buf, "Unknown error code %d", error_code); 128 s = buf; 158 unsigned char buf[10], *p; 173 buf[0] = OCD_INIT; 174 buf[1] = speed >> 8; 175 buf[2] = speed & 0xff; 176 buf[3] = target_type; 177 ocd_put_packet (buf, 4); /* Init OCD params */ 178 p = ocd_get_packet (buf[ 73 char buf[100]; local 156 unsigned char buf[10], *p; local 250 unsigned char buf[10], *p; local 366 char buf[1]; local 419 char buf[1]; local 464 unsigned char buf[10]; local 519 unsigned char *buf; local 548 unsigned char buf[4]; local 573 char buf[256 + 10]; local 645 char buf[256 + 10]; local 765 ocd_put_packet(unsigned char *buf, int len) argument 946 unsigned char buf[100], *p; local [all...] |
/haiku-fatelf/src/bin/gdb/opcodes/ |
H A D | dis-buf.c | 77 char buf[30]; local 79 sprintf_vma (buf, addr); 80 (*info->fprintf_func) (info->stream, "0x%s", buf); 91 generic_strcat_address (addr, buf, len) 93 char *buf; 96 if (buf != (char *)NULL && len > 0) 101 if ((strlen (buf) + strlen (tmpBuf)) <= (unsigned int) len) 102 strcat (buf, tmpBuf); 104 strncat (buf, tmpBuf, (len - strlen(buf))); [all...] |
H A D | avr-dis.c | 49 avr_operand (insn, insn2, pc, constraint, buf, comment, regs) 54 char *buf; 69 sprintf (buf, "r%d", insn); 74 sprintf (buf, "r%d", 16 + (insn & 0xf)); 76 sprintf (buf, "r%d", 16 + ((insn & 0xf0) >> 4)); 80 sprintf (buf, "r%d", 24 + ((insn & 0x30) >> 3)); 85 sprintf (buf, "r%d", 16 + (insn & 7)); 87 sprintf (buf, "r%d", 16 + ((insn >> 4) & 7)); 92 sprintf (buf, "r%d", (insn & 0xf) * 2); 94 sprintf (buf, " [all...] |
/haiku-fatelf/src/kits/network/libbind/isc/ |
H A D | hex.c | 28 isc_gethexstring(unsigned char *buf, size_t len, int count, FILE *fp, argument 68 *buf++ = x; 85 isc_puthexstring(FILE *fp, const unsigned char *buf, size_t buflen, argument 95 fputc(hex[(buf[0]>>4)&0xf], fp); 96 fputc(hex[buf[0]&0xf], fp); 99 buf++; 109 isc_tohex(const unsigned char *buf, size_t buflen, char *t) { argument 111 *t++ = hex[(buf[0]>>4)&0xf]; 112 *t++ = hex[buf[0]&0xf]; 113 buf [all...] |
H A D | ctl_p.c | 78 ctl_bufget(struct ctl_buf *buf, ctl_logfunc logger) { argument 81 REQUIRE(!allocated_p(*buf) && buf->used == 0U); 82 buf->text = memget(MAX_LINELEN); 83 if (!allocated_p(*buf)) { 87 buf->used = 0; 92 ctl_bufput(struct ctl_buf *buf) { argument 94 REQUIRE(allocated_p(*buf)); 95 memput(buf->text, MAX_LINELEN); 96 buf 101 ctl_sa_ntop(const struct sockaddr *sa, char *buf, size_t size, ctl_logfunc logger) argument [all...] |
/haiku-fatelf/src/libs/pdflib/bind/pdflib/cpp/ |
H A D | chartab.cpp | 26 char buf[256]; local 68 sprintf(buf, "%s (%s) %sembedded", 71 p.show_xy(buf, LEFT - XINCR, TOP + 3 * YINCR); 72 p.add_bookmark(buf, 0, 0); 79 sprintf(buf, "x%X", row); 80 p.show_xy(buf, LEFT + row*XINCR, TOP + YINCR); 82 sprintf(buf, "%Xx", row); 83 p.show_xy(buf, LEFT - XINCR, TOP - row * YINCR); 97 sprintf(buf, "%c", 16*row + col); 98 p.show_xy(buf, [all...] |
/haiku-fatelf/src/system/libroot/posix/malloc/ |
H A D | superblock.cpp | 92 char *buf; local 104 buf = (char *)pHeap->getSuperblockBuffer(); 114 buf = (char *)hoardSbrk(moreMemory); 118 if (buf == NULL) 121 buf = (char *)hoardHeap::align((unsigned long)buf); 124 assert(buf == (char *)hoardHeap::align((unsigned long)buf)); 125 assert((((unsigned long)buf) & hoardHeap::ALIGNMENT_MASK) == 0); 128 return new(buf) superbloc [all...] |
/haiku-fatelf/src/tests/kits/game/chart/ |
H A D | ChartRender.cpp | 101 bool CheckClipping(star *s, buffer *buf, bool reset_clipping); 102 void DrawStar(star *s, buffer *buf); 103 void EraseStar(star *s, buffer *buf); 264 for the star (s), in the buffer (buf). It will return false if the star 269 bool CheckClipping(star *s, buffer *buf, bool reset_clipping) argument 280 if ((s->h < buf->clip_bounds.left) || 281 (s->h > buf->clip_bounds.right) || 282 (s->v < buf->clip_bounds.top) || 283 (s->v > buf->clip_bounds.bottom)) 287 if (buf 398 DrawStar(star *s, buffer *buf) argument 472 EraseStar(star *s, buffer *buf) argument 541 RefreshStarPacket(buffer *buf, star_packet *sp, geometry *geo) argument 600 RefreshClipping(buffer *buf, star_packet *sp) argument [all...] |
/haiku-fatelf/src/add-ons/translators/icns/openjpeg/ |
H A D | bio.c | 76 bio->buf = (bio->buf << 8) & 0xffff; 77 bio->ct = bio->buf == 0xff00 ? 7 : 8; 81 *bio->bp++ = bio->buf >> 8; 86 bio->buf = (bio->buf << 8) & 0xffff; 87 bio->ct = bio->buf == 0xff00 ? 7 : 8; 91 bio->buf |= *bio->bp++; 100 bio->buf |= b << bio->ct; 108 return (bio->buf >> bi [all...] |
/haiku-fatelf/src/tools/docbook/libxml2/ |
H A D | HTMLtree.c | 375 htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, 380 * @buf: the HTML buffer output 390 htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, argument 399 if (buf == NULL) { 408 outbuf->buffer = buf; 415 use = buf->use; 418 ret = buf->use - use; 424 * @buf: the HTML buffer output 434 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { argument 437 return(htmlNodeDumpFormat(buf, do 457 xmlOutputBufferPtr buf; local 520 xmlOutputBufferPtr buf; local 623 htmlDtdDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, const char *encoding ATTRIBUTE_UNUSED) argument 657 htmlAttrDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, const char *encoding ATTRIBUTE_UNUSED) argument 719 htmlAttrListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur, const char *encoding) argument 742 htmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding, int format) argument 764 htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding, int format) argument 949 htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, const char *encoding) argument 964 htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding, int format) argument 997 htmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *encoding) argument 1019 xmlOutputBufferPtr buf; local 1079 xmlOutputBufferPtr buf; local 1143 xmlOutputBufferPtr buf; local [all...] |
/haiku-fatelf/src/libs/iconv/ |
H A D | iso2022_cnext.h | 299 unsigned char buf[3]; local 306 ret = ascii_wctomb(conv,buf,wc,1); 309 if (buf[0] < 0x80) { 318 r[0] = buf[0]; 329 ret = gb2312_wctomb(conv,buf,wc,2); 332 if (buf[0] < 0x80 && buf[1] < 0x80) { 349 r[0] = buf[0]; 350 r[1] = buf[1]; 357 ret = cns11643_wctomb(conv,buf,w [all...] |
H A D | euc_jp.h | 39 unsigned char buf[2]; local 40 buf[0] = c-0x80; buf[1] = c2-0x80; 41 return jisx0208_mbtowc(conv,pwc,buf,2); 83 unsigned char buf[2]; local 85 buf[0] = c2-0x80; buf[1] = c3-0x80; 86 ret = jisx0212_mbtowc(conv,pwc,buf,2); 113 unsigned char buf[2]; local 122 ret = jisx0208_wctomb(conv,buf,w [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamStreamingDeframer.cpp | 41 const uint8 *buf = (const uint8 *)buffer; local 63 // and use it as input buf 64 buf = (uint8 *)fInputBuff.Buffer(); 71 fCurrentFrame->Write(buf, bufsize); 80 while ((j = FindSOF(buf+i, bufsize-i, &which)) > -1) { 82 if (fDevice->ValidateStartOfFrameTag(buf+i, fSkipSOFTags)) 89 //PRINT((CH ": SOF: ... %02x %02x %02x %02x %02x %02x" CT, buf[i+6], buf[i+7], buf[i+8], buf[ [all...] |
/haiku-fatelf/src/libs/pdflib/bind/pdflib/perl/ |
H A D | chartab.pl | 56 $buf = sprintf("%s (%s) %sembedded", 59 PDF_show_xy($p, $buf, LEFT - XINCR, TOP + 3 * YINCR); 60 PDF_add_bookmark($p, $buf, 0, 0); 67 $buf = sprintf("x%X", $row); 68 PDF_show_xy($p, $buf, LEFT + $row*XINCR, TOP + YINCR); 70 $buf = sprintf("%Xx", $row); 71 PDF_show_xy($p, $buf, LEFT - XINCR, TOP - $row * YINCR); 85 $buf = sprintf("%c", 16*$row + $col); 86 PDF_show_xy($p, $buf, $x, $y);
|
/haiku-fatelf/src/add-ons/input_server/methods/canna/lib/ |
H A D | parse.c | 75 static int DISPLAY_to_hostname(char *name, char *buf, int bufsize); 136 char buf[256]; local 137 sprintf(buf, "Can't open customize file : %s", CANNA_rcfilename); 138 addWarningMesg(buf); 149 DISPLAY_to_hostname(char *name, char *buf, int bufsize) 152 // gethostname(buf, bufsize); 160 buf[i] = name[i]; 164 buf[i] = '\0';
|
/haiku-fatelf/src/bin/gdb/bfd/ |
H A D | elf-eh-frame.c | 33 char *buf, 46 byte = bfd_get_8 (abfd, (bfd_byte *) buf); 47 buf++; 61 char *buf, 74 byte = bfd_get_8 (abfd, (bfd_byte *) buf); 75 buf ++; 90 (VAR) = read_unsigned_leb128 (abfd, buf, &leb128_tmp); \ 98 (VAR) = read_signed_leb128 (abfd, buf, &leb128_tmp); \ 131 read_value (bfd *abfd, bfd_byte *buf, int width, int is_signed) argument 139 value = bfd_get_signed_16 (abfd, buf); 32 read_unsigned_leb128(bfd *abfd ATTRIBUTE_UNUSED, char *buf, unsigned int *bytes_read_ptr) argument 60 read_signed_leb128(bfd *abfd ATTRIBUTE_UNUSED, char *buf, unsigned int * bytes_read_ptr) argument 166 write_value(bfd *abfd, bfd_byte *buf, bfd_vma value, int width) argument 214 bfd_byte *ehbuf = NULL, *buf; local 801 bfd_byte *p, *buf; local [all...] |
/haiku-fatelf/src/add-ons/media/plugins/asf_reader/libasf/ |
H A D | utf.h | 35 asf_utf8_from_utf16le(uint8_t *buf, uint16_t buflen) argument 45 wchar1 = buf[i*2] | (buf[i*2+1] << 8); 53 wchar2 = buf[i*2] | (buf[i*2+1] << 8); 78 wchar1 = buf[i*2] | (buf[i*2+1] << 8); 81 wchar2 = buf[i*2] | (buf[i*2+1] << 8);
|