| /f-stack/app/redis-5.0.5/src/ |
| H A D | syncio.c | 86 ssize_t nread, totread = 0; in syncRead() local 98 nread = read(fd,ptr,size); in syncRead() 99 if (nread == 0) return -1; /* short read. */ in syncRead() 100 if (nread == -1) { in syncRead() 103 ptr += nread; in syncRead() 104 size -= nread; in syncRead() 105 totread += nread; in syncRead() 126 ssize_t nread = 0; in syncReadLine() local 136 return nread; in syncReadLine() 140 nread++; in syncReadLine() [all …]
|
| H A D | anet.c | 423 ssize_t nread, totlen = 0; in anetRead() local 425 nread = read(fd,buf,count-totlen); in anetRead() 426 if (nread == 0) return totlen; in anetRead() 427 if (nread == -1) return -1; in anetRead() 428 totlen += nread; in anetRead() 429 buf += nread; in anetRead()
|
| H A D | replication.c | 1119 ssize_t nread, readlen, nwritten; in readSyncBulkPayload() local 1194 nread = read(fd,buf,readlen); in readSyncBulkPayload() 1195 if (nread <= 0) { in readSyncBulkPayload() 1197 (nread == -1) ? strerror(errno) : "connection lost"); in readSyncBulkPayload() 1201 server.stat_net_input_bytes += nread; in readSyncBulkPayload() 1209 if (nread >= CONFIG_RUN_ID_SIZE) { in readSyncBulkPayload() 1212 int rem = CONFIG_RUN_ID_SIZE-nread; in readSyncBulkPayload() 1213 memmove(lastbytes,lastbytes+nread,rem); in readSyncBulkPayload() 1214 memcpy(lastbytes+rem,buf,nread); in readSyncBulkPayload() 1220 if ((nwritten = write(server.repl_transfer_fd,buf,nread)) != nread) { in readSyncBulkPayload() [all …]
|
| H A D | redis-cli.c | 1456 if (nread == 0) break; in readArgFromStdin() 1813 size_t nread; in evalMode() local 5934 ssize_t nread; in sendSync() local 5945 nread = read(fd,p,1); in sendSync() 5946 if (nread <= 0) { in sendSync() 5972 ssize_t nread; in slaveMode() local 5975 if (nread <= 0) { in slaveMode() 5979 payload -= nread; in slaveMode() 6020 if (nread <= 0) { in getRDB() 6030 payload -= nread; in getRDB() [all …]
|
| H A D | networking.c | 1520 int nread, readlen; in readQueryFromClient() local 1545 nread = read(fd, c->querybuf+qblen, readlen); in readQueryFromClient() 1546 if (nread == -1) { in readQueryFromClient() 1554 } else if (nread == 0) { in readQueryFromClient() 1563 c->querybuf+qblen,nread); in readQueryFromClient() 1566 sdsIncrLen(c->querybuf,nread); in readQueryFromClient() 1568 if (c->flags & CLIENT_MASTER) c->read_reploff += nread; in readQueryFromClient() 1569 server.stat_net_input_bytes += nread; in readQueryFromClient()
|
| H A D | aof.c | 1279 ssize_t nread, total = 0; in aofReadDiffFromParent() local 1281 while ((nread = in aofReadDiffFromParent() 1283 server.aof_child_diff = sdscatlen(server.aof_child_diff,buf,nread); in aofReadDiffFromParent() 1284 total += nread; in aofReadDiffFromParent()
|
| /f-stack/freebsd/kern/ |
| H A D | subr_scanf.c | 134 nread = 0; in vsscanf() 143 nread++, inr--, inp++; in vsscanf() 163 nread++; in vsscanf() 279 *va_arg(ap, int *) = nread; in vsscanf() 295 nread++; in vsscanf() 333 nread += sum; in vsscanf() 338 nread += width; in vsscanf() 382 nread += n; in vsscanf() 399 nread += n; in vsscanf() 411 nread += p - p0; in vsscanf() [all …]
|
| H A D | sys_pipe.c | 696 int nread = 0; in pipe_read() local 756 nread += size; in pipe_read() 770 nread += size; in pipe_read() 797 if (nread > 0) in pipe_read() 855 if (nread > 0 && in pipe_read() 860 if (nread > 0) in pipe_read()
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/src/ |
| H A D | pages.c | 476 ssize_t nread = malloc_read_fd(fd, &buf, sizeof(buf)); in os_overcommits_proc() local 483 if (nread < 1) { in os_overcommits_proc() 540 ssize_t nread = malloc_read_fd(fd, &buf, sizeof(buf)); in init_thp_state() local 547 if (strncmp(buf, sys_state_madvise, (size_t)nread) == 0) { in init_thp_state() 549 } else if (strncmp(buf, sys_state_always, (size_t)nread) == 0) { in init_thp_state() 551 } else if (strncmp(buf, sys_state_never, (size_t)nread) == 0) { in init_thp_state()
|
| H A D | prof.c | 1456 ssize_t nread; in prof_dump_maps() local 1463 nread = 0; in prof_dump_maps() 1465 prof_dump_buf_end += nread; in prof_dump_maps() 1474 nread = malloc_read_fd(mfd, in prof_dump_maps() 1477 } while (nread > 0); in prof_dump_maps()
|
| /f-stack/freebsd/security/mac_veriexec/ |
| H A D | veriexec_fingerprint.c | 143 size_t count, nread, resid; in evaluate_fingerprint() local 150 for (offset = 0; offset < file_size; offset += nread) { in evaluate_fingerprint() 162 nread = count - resid; in evaluate_fingerprint() 163 (ip->ops->update)(ctx, filebuf, nread); in evaluate_fingerprint()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | dataset_kstats.c | 188 int64_t nread) in dataset_kstats_update_read_kstats() argument 190 ASSERT3S(nread, >=, 0); in dataset_kstats_update_read_kstats() 196 aggsum_add(&dk->dk_aggsums.das_nread, nread); in dataset_kstats_update_read_kstats()
|
| H A D | spa_stats.c | 196 uint64_t nread; /* number of bytes read */ member 252 (u_longlong_t)sth->nread, (u_longlong_t)sth->nwritten, in spa_txg_history_show() 371 spa_txg_history_set_io(spa_t *spa, uint64_t txg, uint64_t nread, in spa_txg_history_set_io() argument 385 sth->nread = nread; in spa_txg_history_set_io()
|
| H A D | zfs_vnops.c | 285 int64_t nread = start_resid - n; in zfs_read() local 286 dataset_kstats_update_read_kstats(&zfsvfs->z_kstat, nread); in zfs_read() 287 task_io_account_read(nread); in zfs_read()
|
| H A D | vdev_raidz.c | 2422 int nread = 0; in vdev_raidz_read_all() local 2445 nread++; in vdev_raidz_read_all() 2447 return (nread); in vdev_raidz_read_all() 2528 int nread = 0; in vdev_raidz_io_done() local 2530 nread += vdev_raidz_read_all(zio, in vdev_raidz_io_done() 2533 if (nread != 0) { in vdev_raidz_io_done()
|
| /f-stack/freebsd/mips/broadcom/ |
| H A D | bcm_nvram_cfe.c | 442 size_t nread; in bhnd_nvram_iocfe_read() local 445 nread = (nbytes - remain); in bhnd_nvram_iocfe_read() 446 cfe_noff = cfe_offset + nread; in bhnd_nvram_iocfe_read() 447 p = ((uint8_t *)buffer + nread); in bhnd_nvram_iocfe_read()
|
| /f-stack/app/redis-5.0.5/deps/linenoise/ |
| H A D | linenoise.c | 352 int nread, nwritten; in completeLine() local 376 nread = read(ls->ifd,&c,1); in completeLine() 377 if (nread <= 0) { in completeLine() 797 int nread; in linenoiseEdit() local 800 nread = read(l.ifd,&c,1); in linenoiseEdit() 801 if (nread <= 0) return l.len; in linenoiseEdit() 964 int nread; in linenoisePrintKeyCodes() local 966 nread = read(STDIN_FILENO,&c,1); in linenoisePrintKeyCodes() 967 if (nread <= 0) continue; in linenoisePrintKeyCodes()
|
| /f-stack/freebsd/arm/broadcom/bcm2835/ |
| H A D | bcm2835_rng.c | 246 u_int cnt, nread, num_avail, num_words; in bcm2835_rng_harvest() local 251 nread = num_words = 0; in bcm2835_rng_harvest() 288 nread += num_words; in bcm2835_rng_harvest() 291 cnt = nread * sizeof(uint32_t); in bcm2835_rng_harvest()
|
| /f-stack/app/redis-5.0.5/deps/hiredis/ |
| H A D | hiredis.c | 796 int nread; in redisBufferRead() local 802 nread = read(c->fd,buf,sizeof(buf)); in redisBufferRead() 803 if (nread == -1) { in redisBufferRead() 810 } else if (nread == 0) { in redisBufferRead() 814 if (redisReaderFeed(c->reader,buf,nread) != REDIS_OK) { in redisBufferRead()
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | kstat.h | 165 u_longlong_t nread; /* number of bytes read */ member
|
| /f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | kstat.h | 169 u_longlong_t nread; /* number of bytes read */ member
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/ |
| H A D | kstat.h | 591 u_longlong_t nread; /* number of bytes read */ member
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zvol_os.c | 288 int64_t nread = start_resid - uio.uio_resid; in zvol_read() local 289 dataset_kstats_update_read_kstats(&zv->zv_kstat, nread); in zvol_read() 290 task_io_account_read(nread); in zvol_read()
|
| /f-stack/app/redis-5.0.5/tests/support/ |
| H A D | redis.tcl | 273 set nread [string length $data]
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_kstat.c | 155 kip->nread, kip->nwritten, in kstat_sysctl_io()
|