/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | utf8.h | 18 int nbytes = utf8_seqlen(codepoint); local 21 int b = nbytes; 28 switch(nbytes) { 37 return nbytes;
|
/haiku/src/add-ons/translators/shared/ |
H A D | StreamBuffer.cpp | 104 // Copies up to nbytes of data from the stream into pinto 111 // nbytes, the maximum number of bytes to copy 119 StreamBuffer::Read(void *_pinto, size_t nbytes) argument 123 if (nbytes == 0) 129 size_t totalRead = min(nbytes, fLen - fPos); 133 nbytes -= totalRead; 135 while (nbytes > 0) { 140 size_t left = min(nbytes, fLen - fPos); 144 nbytes -= left; 156 // Copies up to nbytes o 165 Write(void *pinto, size_t nbytes) argument [all...] |
/haiku/src/build/libroot/ |
H A D | fs_freebsd.h | 13 ssize_t haiku_freebsd_read(int fd, void *buf, size_t nbytes); 14 ssize_t haiku_freebsd_write(int fd, const void *buf, size_t nbytes);
|
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 :) 43 off_t nbytesDiff = (nbytes - seekDiff) % sectorSize; 47 return read(fd, buf, nbytes); 48 } else if (cur % sectorSize + nbytes <= sectorSize) { 60 memcpy((char*)buf, tmpBlock + cur % sectorSize, nbytes); 63 if (lseek(fd, -sectorSize + (cur % sectorSize) + nbytes, SEEK_CUR) 70 return nbytes; 94 if ((nbytes - seekDiff) >= sectorSize) { 95 if (read(fd, ((char*)buf) + seekDiff, nbytes 125 haiku_freebsd_write(int fd, const void *buf, size_t nbytes) argument [all...] |
/haiku/src/tests/system/network/icmp/ |
H A D | icmp_dumper.cpp | 37 ssize_t nbytes; local 39 while ((nbytes = recvfrom(sockfd, buf, MAXLEN, 0, 47 printf("Received %zd bytes of ICMP message from %s\n", nbytes, host); 51 if ((icmpLen = nbytes - ipLen) < 8) {
|
/haiku/src/kits/storage/mime/ |
H A D | TextSnifferAddon.cpp | 18 const unsigned char *buf, size_t nbytes, BMimeType* mimeType); 145 size_t nbytes, BMimeType* mimeType) 173 if ((nbuf = (unsigned char*)malloc((nbytes + 1) * sizeof(nbuf[0]))) == NULL) 175 if ((ubuf = (my_unichar*)malloc((nbytes + 1) * sizeof(ubuf[0]))) == NULL) 184 if (looks_ascii(buf, nbytes, ubuf, &ulen)) { 188 } else if (looks_utf8(buf, nbytes, ubuf, &ulen)) { 192 } else if ((i = looks_unicode(buf, nbytes, ubuf, &ulen)) != 0) { 200 } else if (looks_latin1(buf, nbytes, ubuf, &ulen)) { 204 } else if (looks_extended(buf, nbytes, ubuf, &ulen)) { 209 from_ebcdic(buf, nbytes, nbu 144 file_ascmagic(DatabaseLocation* databaseLocation, const unsigned char *buf, size_t nbytes, BMimeType* mimeType) argument 469 looks_ascii(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument 489 looks_latin1(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument 508 looks_extended(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument 528 looks_utf8(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument 590 looks_unicode(const unsigned char *buf, size_t nbytes, my_unichar *ubuf, size_t *ulen) argument 711 from_ebcdic(const unsigned char *buf, size_t nbytes, unsigned char *out) argument [all...] |
/haiku/headers/os/net/ |
H A D | net_settings.h | 39 const char* name, char* value, unsigned nbytes);
|
/haiku/headers/compatibility/bsd/ |
H A D | stdlib.h | 25 void arc4random_buf(void *buf, size_t nbytes);
|
/haiku/src/add-ons/translators/jpeg/ |
H A D | be_jdatasrc.cpp | 121 size_t nbytes; local 123 nbytes = src->infile->Read(src->buffer, INPUT_BUF_SIZE); 125 if (nbytes <= 0) { 132 nbytes = 2; 136 src->pub.bytes_in_buffer = nbytes;
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/ |
H A D | nbd-server.py | 40 def recv(self, nbytes): 42 while len(rv) < nbytes: 43 more = self.sock.recv(nbytes - len(rv)) 44 if more == '': raise Error(nbytes) 54 def recv(self, nbytes): 55 print "recv(%d) =" % nbytes, 56 rv = self.sock.recv(nbytes)
|
/haiku/src/system/libnetwork/ |
H A D | r5_compatibility.cpp | 33 char *_netconfig_find(const char *heaading, const char *name, char *value, int nbytes); 124 _netconfig_find(const char *heading, const char *name, char *value, int nbytes) argument 126 return find_net_setting(NULL, heading, name, value, nbytes);
|
/haiku/src/libs/stdc++/legacy/ |
H A D | strerror.c | 503 int nbytes; local 524 nbytes = num_error_names * sizeof (char *); 525 if ((error_names = (const char **) malloc (nbytes)) != NULL) 527 memset (error_names, 0, nbytes); 542 nbytes = num_error_names * sizeof (char *); 543 if ((sys_errlist = (const char **) malloc (nbytes)) != NULL) 545 memset (sys_errlist, 0, nbytes);
|
/haiku/src/apps/poorman/libhttpd/ |
H A D | libhttpd.h | 298 extern int httpd_read_fully( int fd, void* buf, size_t nbytes ); 301 extern int httpd_write_fully( int fd, const char* buf, size_t nbytes );
|
H A D | libhttpd.c | 4251 httpd_read_fully( int fd, void* buf, size_t nbytes ) 4256 while ( nread < nbytes ) 4260 r = read( fd, (char*) buf + nread, nbytes - nread ); 4279 httpd_write_fully( int fd, const char* buf, size_t nbytes ) 4284 while ( nwritten < nbytes ) 4288 r = write( fd, buf + nwritten, nbytes - nwritten );
|
/haiku/src/libs/mapm/ |
H A D | mapm_set.c | 104 int len, ii, nbytes; local 148 nbytes = (len + 1) >> 1; 151 for (ii=0; ii < nbytes; ii++)
|
H A D | mapmfmul.c | 307 void M_fmul_split(UCHAR *x1, UCHAR *x0, UCHAR *xin, int nbytes) argument 309 memcpy(x1, xin, nbytes); 310 memcpy(x0, (xin + nbytes), nbytes);
|
H A D | mapm_fft.c | 112 * multiply 'uu' by 'vv' with nbytes each 113 * yielding a 2*nbytes result in 'ww'. 123 void M_fast_mul_fft(UCHAR *ww, UCHAR *uu, UCHAR *vv, int nbytes) argument 148 nn = nbytes; 149 nn2 = nbytes >> 1;
|
/haiku/src/libs/uuid/ |
H A D | gen_uuid.c | 108 static void get_random_bytes(void *buf, int nbytes) argument 110 int i, n = nbytes, fd = get_random_fd(); 132 for (cp = buf, i = 0; i < nbytes; i++) 140 for (cp = buf, i = 0; i < nbytes; i++)
|
/haiku/src/system/libroot/posix/glibc/extensions/ |
H A D | obstack.c | 463 register int nbytes = 0; local 467 nbytes += lp->limit - (char *) lp; 469 return nbytes;
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | Inode.cpp | 127 uint64 nbytes = size; // allocated size local 129 nbytes = (size / volume->SectorSize() + 1) * volume->SectorSize(); 136 inode.nbytes = B_HOST_TO_LENDIAN_INT64(nbytes);
|
H A D | btrfs.h | 280 uint64 nbytes; member in struct:btrfs_inode
|
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/ |
H A D | mwlhal.c | 2539 uint32_t blocksize, nbytes, fmsize; local 2604 nbytes = ntries = 0; /* NB: silence compiler */ 2616 fp += nbytes; 2634 nbytes = blocksize; 2635 if (!mwlSendBlock2(mh, fp, nbytes)) { 2642 nbytes = ep - fp; 2643 if (nbytes > FW_DOWNLOAD_BLOCK_SIZE) 2644 nbytes = FW_DOWNLOAD_BLOCK_SIZE; 2645 if (!mwlSendBlock(mh, FW_DOWNLOAD_BLOCK_SIZE, fp, nbytes)) { 2649 fp += nbytes; [all...] |
/haiku/headers/posix/ |
H A D | unistd.h | 482 extern void swab(const void *src, void *dest, ssize_t nbytes);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | if_ath_tx.c | 5376 int nbytes = 0; local 5404 nbytes += bf->bf_state.bfs_pktlen; 5405 if (nbytes >= ATH_AGGR_MAXSIZE) 5418 return MIN(nbytes, ATH_AGGR_MAXSIZE);
|
/haiku/src/build/libgnuregex/ |
H A D | regex.c | 1833 unsigned nbytes = 10 + (upper_bound > 1) * 10; 1835 GET_BUFFER_SPACE (nbytes); 1824 unsigned nbytes = 10 + (upper_bound > 1) * 10; local
|