/haiku-fatelf/src/tests/kits/net/sock/ |
H A D | looptcp.c | 18 int maxfdp1, nread, ntowrite, stdineof, flags; local 39 if ( (nread = read(STDIN_FILENO, rbuf, readlen)) < 0) 41 else if (nread == 0) { 55 ntowrite = crlf_add(wbuf, writelen, rbuf, nread); 59 if (dowrite(sockfd, rbuf, nread) != nread) 69 if ( (nread = recv(sockfd, rbuf, readlen, flags)) < 0) 71 else if (nread == 0) { 78 ntowrite = crlf_strip(wbuf, writelen, rbuf, nread); 82 if (writen(STDOUT_FILENO, rbuf, nread) ! [all...] |
H A D | loopudp.c | 24 int maxfdp1, nread, ntowrite, stdineof, clilen, servlen, flags; local 63 if ( (nread = read(STDIN_FILENO, rbuf, readlen)) < 0) 65 else if (nread == 0) { 79 ntowrite = crlf_add(wbuf, writelen, rbuf, nread); 91 if (write(sockfd, rbuf, nread) != nread) 94 if (sendto(sockfd, rbuf, nread, 0, 96 != nread) 107 nread = recvfrom(sockfd, rbuf, readlen, 0, 132 nread [all...] |
/haiku-fatelf/src/bin/diffutils/lib/ |
H A D | cmpbuf.c | 93 ssize_t nread = read (fd, bp, bytes_to_read); local 94 if (nread <= 0) 96 if (nread == 0) 117 bp += nread;
|
/haiku-fatelf/src/tools/translation/tiffinfo/ |
H A D | tiffinfo.cpp | 320 ssize_t nread = file.ReadAt(entry.longval, ascfield, entry.count); local 321 if (nread != static_cast<ssize_t>(entry.count)) 332 ssize_t nread = file.ReadAt(entry.longval, &rational, 8); local 333 if (nread == 8 && 345 ssize_t nread = file.ReadAt(entry.longval, &srational, 8); local 346 if (nread == 8 && 462 ssize_t nread = file.Read(&entry, 12); local 463 if (nread != 12) { 503 ssize_t nread = file.Read(&entrycount, 2); local 504 if (nread ! 554 ssize_t nread = file.Read(buffer, 4); local [all...] |
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | getpass.c | 96 ssize_t nread; local 134 nread = getline (&buf, &bufsize, in); 149 if (nread < 0) 151 else if (buf[nread - 1] == '\n') 154 buf[nread - 1] = '\0';
|
/haiku-fatelf/src/bin/network/wget/lib/ |
H A D | getpass.c | 95 ssize_t nread; local 133 nread = getline (&buf, &bufsize, in); 148 if (nread < 0) 150 else if (buf[nread - 1] == '\n') 153 buf[nread - 1] = '\0';
|
/haiku-fatelf/src/add-ons/input_server/methods/canna/rk/ |
H A D | permdic.c | 50 static int readThisCache(struct DM *dm, struct ND *xdm, long pgno, unsigned long val, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf); 51 static int SearchInPage(struct DM *dm, struct ND *xdm, long pgno, unsigned char *buf, unsigned long val, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf); 52 static int SearchInDir(struct DM *dm, struct ND *xdm, unsigned char *pos, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf); 418 int readThisCache(struct DM *dm, struct ND *xdm, long pgno, unsigned long val, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf) argument 432 nread[nc].cache = _RkReadCache(dm, (long)wrec); 433 if (nread[n 450 SearchInPage(struct DM *dm, struct ND *xdm, long pgno, unsigned char *buf, unsigned long val, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf) argument 484 SearchInDir(struct DM *dm, struct ND *xdm, unsigned char *pos, WCHAR_T *key, int cur, int ylen, struct nread *nread, int mc, int nc, int *cf) argument 542 _Rkpsearch(struct RkContext *cx, struct DM *dm, WCHAR_T *key, int n, struct nread *nread, int mc, int *cf) argument 595 struct nread nread[PERM_NREADSIZE]; local 600 struct nread *nread; local [all...] |
H A D | tempdic.c | 550 struct nread *nread, 579 nread[nc].cache = _RkReadCache(dm, (long)tn->tn_word); 580 if (nread[nc].cache) { 581 nread[nc].nk = l; 582 nread[nc].csn = 0L; 583 nread[nc].offset = 0L; 607 nread[nc].cache = _RkReadCache(dm, (long)n0->tn_word); 608 if (nread[nc].cache) { 609 nread[n 545 _Rktsearch( struct RkContext *cx, struct DM *dm, WCHAR_T *key, int n, struct nread *nread, int maxcache, int *cf) argument [all...] |
/haiku-fatelf/src/bin/gdb/gdb/rdi-share/ |
H A D | serdrv.c | 300 int nread; local 310 nread = BytesInRXBufferSerial(); 312 if (nread > MAXREADSIZE - rbindex) 313 nread = MAXREADSIZE - rbindex; 315 if ((read_errno = ReadSerial(readbuf+rbindex, nread, &dummy)) == COM_READFAIL) 323 progressInfo.nRead += nread; 328 nread = Unix_ReadSerial(readbuf+rbindex, MAXREADSIZE-rbindex, block); 332 if ((nread > 0) || (rbindex > 0)) { 335 printf("[%d@%d] ", nread, rbindex); 338 if (nread> [all...] |
H A D | serpardr.c | 338 int nread; local 351 nread = BytesInRXBufferSerial(); 353 if (nread > MAXREADSIZE - rbindex) 354 nread = MAXREADSIZE - rbindex; 355 read_errno = ReadSerial(readbuf+rbindex, nread, &dummy); 358 progressInfo.nRead += nread; 363 nread = Unix_ReadSerial(readbuf+rbindex, MAXREADSIZE-rbindex, block); 367 if ((nread > 0) || (rbindex > 0)) 370 printf("[%d@%d] ", nread, rbindex); 373 if (nread > [all...] |
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | dd.c | 807 ssize_t nread; local 809 nread = read (fd, buf, size); 810 if (! (nread < 0 && errno == EINTR)) 811 return nread; 819 ssize_t nread = 0; local 828 nread += ncurr; 833 return nread; 1158 translate_buffer (char *buf, size_t nread) argument 1163 for (i = nread, cp = buf; i; i--, cp++) 1179 swab_buffer (char *buf, size_t *nread) argument 1353 ssize_t nread = iread_fnc (fdesc, buf, blocksize); local 1430 copy_simple(char const *buf, size_t nread) argument 1454 copy_with_block(char const *buf, size_t nread) argument 1486 copy_with_unblock(char const *buf, size_t nread) argument 1576 ssize_t nread; /* Bytes read in the current block. */ local [all...] |
H A D | shuf.c | 154 size_t nread; local 189 nread = fread (buf + used, sizeof (char), bytes_to_read, in); 190 used += nread; 192 while (nread == bytes_to_read);
|
/haiku-fatelf/src/system/libroot/posix/stdio/ |
H A D | vfscanf.c | 105 int nread; /* number of characters consumed from fp */ local 116 nread = 0; 126 nread++, fp->_r--, fp->_p++; 146 nread++; 256 *va_arg(ap, short *) = nread; 258 *va_arg(ap, long *) = nread; 260 *va_arg(ap, int *) = nread; 290 nread++; 331 nread += sum; 338 nread [all...] |
/haiku-fatelf/src/libs/edit/ |
H A D | read.c | 382 el_gets(EditLine *el, int *nread) argument 414 if (nread) 415 *nread = el->el_line.cursor - el->el_line.buffer; 427 if (nread) 428 *nread = 0; 468 if (nread) 469 *nread = el->el_line.cursor - el->el_line.buffer; 603 if (nread) 604 *nread = num; 606 if (nread) [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/audio/cmedia/ |
H A D | joy.c | 97 size_t * nread) 99 return (*gameport->read_hook)(cookie, pos, data, nread); 93 joy_read( void * cookie, off_t pos, void * data, size_t * nread) argument
|
H A D | midi.c | 158 size_t * nread) 160 return (*mpu401->read_hook)(cookie, pos, ptr, nread); 154 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/emuxki/ |
H A D | joy.c | 85 joy_read(void * cookie, off_t pos, void * data, size_t * nread) argument 87 return (*gameport->read_hook)(cookie, pos, data, nread);
|
H A D | midi.c | 178 size_t * nread) 180 return (*mpu401->read_hook)(cookie, pos, ptr, nread); 174 midi_read( void * cookie, off_t pos, void * ptr, size_t * nread) argument
|
/haiku-fatelf/src/bin/gdb/bfd/ |
H A D | cisco-core.c | 93 int nread; 104 nread = bfd_bread (buf, (bfd_size_type) 4, abfd); 105 if (nread != 4) 120 nread = bfd_bread (&crashinfo, (bfd_size_type) sizeof (crashinfo), abfd); 121 if (nread != sizeof (crashinfo)) 278 nread = statbuf.st_size - asect->filepos; 279 asect->size = (nread < 1024) ? nread : 1024; 91 int nread; local
|
H A D | bfdio.c | 106 size_t nread; local 129 nread = abfd->iovec->bread (abfd, ptr, size); 131 nread = 0; 132 if (nread != (size_t) -1) 133 abfd->where += nread; 135 return nread;
|
H A D | cache.c | 70 file_ptr nread; local 86 nread = read (fileno (bfd_cache_lookup (abfd)), buf, nbytes); 90 if (nread == (file_ptr)-1) 96 nread = fread (buf, 1, nbytes, bfd_cache_lookup (abfd)); 100 if (nread < nbytes && ferror (bfd_cache_lookup (abfd))) 106 return nread;
|
/haiku-fatelf/src/libs/expat/xmlwf/ |
H A D | xmlfile.c | 156 int nread; local 165 nread = read(fd, buf, READ_SIZE); 166 if (nread < 0) { 172 if (XML_ParseBuffer(parser, nread, nread == 0) == XML_STATUS_ERROR) { 178 if (nread == 0) {
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/echo/ |
H A D | midi.cpp | 109 midi_read(void* cookie, off_t pos, void* ptr, size_t* nread) argument 124 *nread = 1;
|
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ice1712/ |
H A D | midi.c | 127 ice_1712_midi_read(void * cookie, off_t pos, void * ptr, size_t * nread) argument 131 ret = (*mpu401->read_hook)(cookie, pos, ptr, nread);
|
/haiku-fatelf/src/bin/findutils/locate/ |
H A D | locate.c | 229 int needed, nread; local 231 nread = getdelim(&p, &sz, delimiter, fp); 232 if (nread >= 0) 236 needed = offs + nread + 1; 250 memcpy((*buf)+offs, p, nread); 253 return nread; 551 int nread; local 571 nread = locate_read_str (&procdata->original_filename, &procdata->pathsize, 573 if (nread < 0) 576 procdata->len = procdata->count + nread; 885 int nread; /* number of bytes read from an entry. */ local [all...] |