/haiku/src/libs/stdc++/legacy/ |
H A D | stdiostream.cc | 69 streamsize stdiobuf::sys_read(char* buf, streamsize size) argument 80 *buf = (char)ch; 84 return fread(buf, 1, size, _file); 87 streamsize stdiobuf::sys_write(const char *buf, streamsize n) argument 89 _IO_ssize_t count = fwrite(buf, 1, n, _file);
|
/haiku/src/libs/uuid/ |
H A D | uuid_time.c | 112 uuid_t buf; local 121 if (uuid_parse(argv[1], buf)) { 125 variant = uuid_variant(buf); 126 type = uuid_type(buf); 127 time_reg = uuid_time(buf, &tv);
|
/haiku/src/bin/fwcontrol/ |
H A D | fwcrom.c | 205 crom_parse_text(struct crom_context *cc, char *buf, int len) argument 219 strncpy(buf, nullstr, len); 225 strncpy(buf, nullstr, len); 231 bp = (uint32_t *)&buf[0]; 239 buf[len - 1] = 0; 241 buf[qlen * 4] = 0; 263 crom_desc_specver(uint32_t spec, uint32_t ver, char *buf, int len) argument 312 snprintf(buf, len, "%s", s); 316 crom_desc(struct crom_context *cc, char *buf, int len) argument 327 len -= snprintf(buf, le 463 crom_add_simple_text(struct crom_src *src, struct crom_chunk *parent, struct crom_chunk *chunk, const char *buf) argument 507 crom_load(struct crom_src *src, uint32_t *buf, int maxlen) argument 571 uint32_t buf[256], *p; local [all...] |
H A D | eui64.c | 232 char buf[BUFSIZ + 2]; local 244 while (fgets(buf,BUFSIZ,fp)) { 245 if (buf[0] == '#') 248 if (buf[0] == '+') { 256 strncpy(buf, result, resultlen); 257 buf[resultlen] = '\0'; 261 if (eui64_line(buf, &local_eui64, local_host, 283 char buf[BUFSIZ + 2]; local 294 while (fgets(buf,BUFSIZ,fp)) { 295 if (buf[ [all...] |
/haiku/src/libs/iconv/ |
H A D | iso2022_kr.h | 139 unsigned char buf[2]; local 143 ret = ascii_wctomb(conv,buf,wc,1); 146 if (buf[0] < 0x80) { 155 r[0] = buf[0]; 165 ret = ksc5601_wctomb(conv,buf,wc,2); 168 if (buf[0] < 0x80 && buf[1] < 0x80) { 185 r[0] = buf[0]; 186 r[1] = buf[1];
|
H A D | loop_wchar.h | 72 static void wc_to_mb_write_replacement (const char *buf, size_t buflen, 81 const char* bufptr = buf; 88 /* Invalid buf contents. */ 112 static void wc_to_mb_write_replacement (const char *buf, size_t buflen, argument 123 memcpy(plocals->l_outbuf, buf, buflen); 143 char buf[BUF_SIZE]; local 148 size_t count = wcrtomb(buf+bufcount,*inptr,&state); 156 /* Drop the contents of buf[] accumulated so far, and instead 199 const char* bufptr = buf; 246 char buf[BUF_SIZ local 296 mb_to_wc_write_replacement(const wchar_t *buf, size_t buflen, void* callback_arg) argument 327 char buf[BUF_SIZE]; local [all...] |
/haiku/src/add-ons/kernel/drivers/graphics/radeon/ |
H A D | driver.c | 28 static status_t read_hook(void *dev, off_t pos, void *buf, size_t *len); 29 static status_t write_hook(void *dev, off_t pos, const void *buf, size_t *len); 30 static status_t control_hook(void *dev, uint32 msg, void *buf, size_t len); 249 read_hook(void *dev, off_t pos, void *buf, size_t *len) argument 258 write_hook(void *dev, off_t pos, const void *buf, size_t *len) argument 300 control_hook(void *dev, uint32 msg, void *buf, size_t len) argument 308 char *sig = (char *)buf; 315 radeon_get_private_data *gpd = (radeon_get_private_data *)buf; 326 radeon_device_name *dn = (radeon_device_name *)buf; 336 radeon_alloc_mem *am = (radeon_alloc_mem *)buf; [all...] |
/haiku/src/build/libroot/ |
H A D | fs_freebsd.cpp | 25 haiku_freebsd_read(int fd, void *buf, size_t nbytes) argument 32 return read(fd, buf, nbytes); // Is a file! Good :) 47 return read(fd, buf, nbytes); 60 memcpy((char*)buf, tmpBlock + cur % sectorSize, nbytes); 90 memcpy(buf, tmpBlock + (sectorSize - seekDiff), seekDiff); 95 if (read(fd, ((char*)buf) + seekDiff, nbytes - seekDiff 110 memcpy(((char*)buf) + nbytes - nbytesDiff, tmpBlock, nbytesDiff); 125 haiku_freebsd_write(int fd, const void *buf, size_t nbytes) argument 132 return write(fd, buf, nbytes); // Is a file! Good :) 147 return write(fd, buf, nbyte [all...] |
/haiku/headers/libs/agg/ |
H A D | agg_rendering_buffer.h | 53 row_ptr_cache(T* buf, unsigned width, unsigned height, int stride) : argument 60 attach(buf, width, height, stride); 64 void attach(T* buf, unsigned width, unsigned height, int stride) argument 66 m_buf = buf; 92 T* buf() { return m_buf; } function in class:agg::row_ptr_cache 93 const T* buf() const { return m_buf; } function in class:agg::row_ptr_cache
|
/haiku/src/tests/system/libroot/posix/ |
H A D | fseek_test.cpp | 39 char buf[200]; local 111 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) { 114 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { 129 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) { 132 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { 147 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) { 150 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { 165 } else if (fread(buf, sizeof(outstr) - 1, 1, fp) != 1) { 168 } else if (memcmp(buf, outstr, sizeof(outstr) - 1) != 0) { 183 } else if (fread(buf, sizeo [all...] |
/haiku/src/libs/compat/freebsd_network/ |
H A D | fbsd_ether.c | 47 ether_crc32_le(const uint8_t *buf, size_t len) 57 for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1) 68 ether_crc32_le(const uint8_t *buf, size_t len) argument 82 crc ^= buf[i]; 92 ether_crc32_be(const uint8_t *buf, size_t len) argument 102 for (data = *buf++, bit = 0; bit < 8; bit++, data >>= 1) {
|
/haiku/src/bin/ |
H A D | hd.c | 152 static char buf[64]; local 153 char *p = buf; 174 return buf; 181 static char buf[16]; local 182 char *p = buf; 192 return buf;
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | string_utils.c | 123 char buf[20]; local 124 strncpy(buf, p+1, 20); 125 buf[19] = '\0'; 126 if (!strchr(buf, ';')) { 130 *(strchr(buf, ';')) = '\0'; 132 if (!strcmp(buf, entities_tab[i][0])) {
|
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getservbyname_r.c | 62 uint8_t buf[255 * 2 + 2]; 80 buf[0] = (uint8_t)namelen; 81 buf[1] = (uint8_t)protolen; 82 memcpy(buf + 2, name, namelen); 83 memcpy(buf + 2 + namelen, proto, protolen); 85 if (cdbr_find(sd->cdb, buf, 2 + namelen + protolen,
|
H A D | gethnamaddr.c | 144 u_char buf[MAXPACKET]; member in union:__anon31 216 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) 239 eom = answer->buf + anslen; 260 bp = buf; 261 ep = buf + buflen; 262 cp = answer->buf; 267 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 292 n = dn_expand(answer->buf, eom, cp, bp, (int)(ep - bp)); 313 n = dn_expand(answer->buf, eom, cp, tbuf, 342 n = dn_expand(answer->buf, eo 215 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) argument 524 gethostbyname_r(const char *name, struct hostent *hp, char *buf, int buflen, int *he) argument 550 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, int *he) argument 565 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument 682 gethostbyaddr_r(const void *addr, int len, int af, struct hostent *hp, char *buf, int buflen, int *he) argument 742 gethostent_r(FILE *hf, struct hostent *hent, char *buf, size_t buflen, int *he) argument 942 querybuf *buf; local 1007 querybuf *buf; local [all...] |
/haiku/src/tests/kits/support/bmemoryio/ |
H A D | ConstTest.cpp | 22 const char buf[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; local 23 BMemoryIO mem(buf, 10);
|
H A D | SeekTest.cpp | 21 char buf[10]; local 22 BMemoryIO mem(buf, 10);
|
/haiku/src/add-ons/kernel/bus_managers/isa/ |
H A D | isa_arch.h | 28 extern status_t arch_start_isa_dma(long channel, void *buf,
|
/haiku/src/add-ons/kernel/drivers/network/ether/virtio/ |
H A D | virtio_net.cpp | 181 BufInfo* buf = NULL; local 182 while (info->virtio->queue_dequeue(info->txQueues[0], (void**)&buf, NULL)) 183 info->txFreeList.Add(buf); 196 virtio_net_rx_enqueue_buf(virtio_net_driver_info* info, BufInfo* buf) argument 200 entries[0] = buf->hdrEntry; 201 entries[1] = buf->entry; 203 memset(buf->hdr, 0, sizeof(struct virtio_net_hdr)); 207 entries, 0, 2, buf); 365 BufInfo* buf = new(std::nothrow) BufInfo; local 366 if (buf 399 BufInfo* buf = new(std::nothrow) BufInfo; local 493 BufInfo* buf = info->txFreeList.RemoveHead(); local 637 BufInfo* buf = NULL; local 649 BufInfo* buf = info->rxFullList.RemoveHead(); local 695 BufInfo* buf = NULL; local 704 BufInfo* buf = info->txFreeList.RemoveHead(); local [all...] |
/haiku/src/libs/libtelnet/ |
H A D | sra.c | 354 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);} 355 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);} 358 sra_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument 363 buf[buflen-1] = '\0'; /* make sure its NULL terminated */ 369 strncpy((char *)buf, " CONTINUE ", buflen); 373 strncpy((char *)buf, " REJECT ", buflen); 377 strncpy((char *)buf, " ACCEP [all...] |
/haiku/headers/libs/iconv/ |
H A D | iconv.h | 101 void (*write_replacement) (const unsigned int *buf, size_t buflen, 111 void (*write_replacement) (const char *buf, size_t buflen, 122 void (*write_replacement) (const wchar_t *buf, size_t buflen, 132 void (*write_replacement) (const char *buf, size_t buflen,
|
/haiku/headers/os/device/ |
H A D | A2D.h | 22 ssize_t Read(ushort* buf);
|
H A D | D2A.h | 22 ssize_t Read(uint8* buf);
|
/haiku/src/bin/network/mount_nfs/ |
H A D | mount_nfs.cpp | 42 char buf[BUFSZ]; local 101 sprintf(buf, "nfs:%s:%s,uid=%u,gid=%u,hostname=%s", 108 int result=mount ("nfs",argv[2],NULL,0,buf,strlen(buf));
|
/haiku/src/system/libroot/posix/glibc/misc/ |
H A D | efgcvt.c | 97 APPEND (FUNC_PREFIX, gcvt) (value, ndigit, buf) 100 char *buf; variable 102 sprintf (buf, "%.*" FLOAT_FMT_FLAG "g", MIN (ndigit, NDIGIT_MAX), value); 103 return buf;
|