/netbsd-current/external/lgpl3/gmp/dist/mpq/ |
H A D | inp_str.c | 39 size_t nread; local 48 nread = mpz_inp_str (mpq_numref(q), fp, base); 49 if (nread == 0) 53 nread++; 58 nread++; 60 nread = mpz_inp_str_nowhite (mpq_denref(q), fp, base, c, nread); 61 if (nread == 0) 71 nread--; 74 return nread; [all...] |
/netbsd-current/external/lgpl3/mpc/dist/src/ |
H A D | inp_str.c | 47 size_t nread = 0; local 53 str [nread] = (char) c; 54 nread++; 55 if (nread == strsize) { 62 str = mpc_realloc_str (str, strsize, nread + 1); 63 strsize = nread + 1; 64 str [nread] = '\0'; 80 size_t nread = 0; local 89 str [nread] = (char) c; 90 nread 164 size_t white, nread = 0; local [all...] |
/netbsd-current/external/lgpl3/gmp/dist/mpz/ |
H A D | inp_str.c | 48 size_t nread; local 53 nread = 0; 59 nread++; 63 return mpz_inp_str_nowhite (x, stream, base, c, nread); 68 mpz_inp_str_nowhite (mpz_ptr x, FILE *stream, int base, int c, size_t nread) argument 95 nread++; 110 nread++; 115 nread++; 121 nread++; 130 nread [all...] |
/netbsd-current/tests/compat/linux/ |
H A D | h_inotify_watch_change.c | 45 ssize_t nread; local 58 RS(nread = read(fd, events, sizeof(events))); 59 REQUIRE(nread == sizeof(events[0])); 70 RS(nread = read(fd, events, sizeof(events))); 71 REQUIRE(nread == sizeof(events[0])); 82 RS(nread = read(fd, events, sizeof(events))); 83 REQUIRE(nread == 2 * sizeof(events[0]));
|
/netbsd-current/external/lgpl3/mpfr/dist/src/ |
H A D | inp_str.c | 38 size_t nread; local 43 nread = 0; 49 nread++; 53 /* number of characters read is nread */ 90 /* number of characters read is nread + str_size - 1 */ 107 MPFR_ASSERTD (nread >= 1); 108 str_size += nread - 1; 109 if (MPFR_UNLIKELY (str_size < nread - 1)) /* size_t overflow */
|
/netbsd-current/external/mit/libuv/dist/docs/code/multi-echo-server/ |
H A D | worker.c | 34 void echo_read(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) { argument 35 if (nread > 0) { 37 req->buf = uv_buf_init(buf->base, nread); 42 if (nread < 0) { 43 if (nread != UV_EOF) 44 fprintf(stderr, "Read error %s\n", uv_err_name(nread)); 51 void on_new_connection(uv_stream_t *q, ssize_t nread, const uv_buf_t *buf) { argument 52 if (nread < 0) { 53 if (nread != UV_EOF) 54 fprintf(stderr, "Read error %s\n", uv_err_name(nread)); [all...] |
/netbsd-current/external/mit/libuv/dist/docs/code/dns/ |
H A D | main.c | 13 void on_read(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) { argument 14 if (nread < 0) { 15 if (nread != UV_EOF) 16 fprintf(stderr, "Read error %s\n", uv_err_name(nread)); 23 char *data = (char*) malloc(sizeof(char) * (nread+1)); 24 data[nread] = '\0'; 25 strncpy(data, buf->base, nread);
|
/netbsd-current/usr.bin/vndcompress/ |
H A D | utils.c | 67 ssize_t nread = 0; local 69 while (0 < n && (nread = read(fd, p, n)) != 0) { 70 if (nread == -1) 72 p += MIN(n, (size_t)nread); 73 n -= MIN(n, (size_t)nread); 77 assert(n == 0 || nread == 0); /* complete read or EOF */ 91 ssize_t nread = 0; local 97 while (0 < n && (nread = pread(fd, p, n, fdpos)) != 0) { 98 if (nread == -1) 100 fdpos += MIN(n, (size_t)nread); [all...] |
/netbsd-current/tests/lib/libcurses/slave/ |
H A D | slave.c | 57 ssize_t nread = read(from_director, data, n); local 58 if (nread < 0) 60 if (nread == 0) 62 if ((size_t)nread != n) 64 n, (size_t)nread); 71 ssize_t nread = read(from_director, data, n); local 72 if (nread < 0) 74 if ((size_t)nread != n) 76 n, (size_t)nread);
|
/netbsd-current/external/lgpl3/gmp/dist/mpf/ |
H A D | inp_str.c | 43 size_t nread; local 51 nread = 0; 57 nread++; 75 nread--; 91 return str_size + nread;
|
/netbsd-current/sys/rump/librump/rumpkern/ |
H A D | hyperentropy.c | 45 size_t n, nread; local 51 RUMPUSER_RANDOM_HARD|RUMPUSER_RANDOM_NOWAIT, &nread) 54 n += MIN(nread, bytes - n);
|
/netbsd-current/external/mit/libuv/dist/docs/code/pipe-echo-server/ |
H A D | main.c | 37 void echo_read(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) { argument 38 if (nread > 0) { 40 req->buf = uv_buf_init(buf->base, nread); 45 if (nread < 0) { 46 if (nread != UV_EOF) 47 fprintf(stderr, "Read error %s\n", uv_err_name(nread));
|
/netbsd-current/external/mit/libuv/dist/docs/code/tcp-echo-server/ |
H A D | main.c | 39 void echo_read(uv_stream_t *client, ssize_t nread, const uv_buf_t *buf) { argument 40 if (nread > 0) { 42 req->buf = uv_buf_init(buf->base, nread); 46 if (nread < 0) { 47 if (nread != UV_EOF) 48 fprintf(stderr, "Read error %s\n", uv_err_name(nread));
|
/netbsd-current/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | passfile.c | 43 size_t nread, nleft, nr; local 77 nread = 0; 96 nr = fread( &passwd->bv_val[nread], 1, nleft, f ); 106 nread += nr; 110 passwd->bv_len = nread; 111 passwd->bv_val[nread] = '\0';
|
/netbsd-current/usr.bin/sdiff/ |
H A D | edit.c | 73 size_t nread, nwritten; local 155 for (nread = sizeof(buf); nread == sizeof(buf);) { 156 nread = fread(buf, sizeof(*buf), sizeof(buf), file); 158 if (nread != sizeof(buf) && 168 if (!nread) 172 nwritten = fwrite(buf, sizeof(*buf), nread, outfile); 173 if (nwritten != nread) {
|
/netbsd-current/games/caesar/ |
H A D | caesar.c | 146 size_t i, nread; local 158 for (nread = 0; nread < sizeof(inbuf); nread++) { 161 inbuf[nread] = (unsigned char) ch; 164 for (i = 0; i < nread; i++) 187 print_array(inbuf, nread);
|
/netbsd-current/external/mit/libuv/dist/test/ |
H A D | test-udp-send-and-recv.c | 63 ssize_t nread, 70 if (nread < 0) { 74 if (nread == 0) { 81 ASSERT(nread == 4); 82 ASSERT(!memcmp("PONG", buf->base, nread)); 117 ssize_t nread, 125 if (nread < 0) { 129 if (nread == 0) { 139 ASSERT(nread == 4); 140 ASSERT(!memcmp("PING", rcvbuf->base, nread)); 62 cl_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf, const struct sockaddr* addr, unsigned flags) argument 116 sv_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* rcvbuf, const struct sockaddr* addr, unsigned flags) argument [all...] |
H A D | test-udp-try-send.c | 59 ssize_t nread, 63 ASSERT(nread > 0); 65 if (nread == 0) { 70 ASSERT(nread == 4); 73 ASSERT(memcmp("EXIT", rcvbuf->base, nread) == 0); 58 sv_recv_cb(uv_udp_t* handle, ssize_t nread, const uv_buf_t* rcvbuf, const struct sockaddr* addr, unsigned flags) argument
|
H A D | test-callback-stack.c | 70 static void read_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) { argument 73 printf("Read. nread == %d\n", (int)nread); 76 if (nread == 0) { 79 } else if (nread < 0) { 80 ASSERT(nread == UV_EOF); 89 bytes_received += nread;
|
/netbsd-current/external/lgpl3/gmp/dist/tests/mpq/ |
H A D | io.c | 51 size_t nread; local 98 nread = mpq_inp_str (op2, fp, base); 99 if (nread == 0) 108 if (nread != ftell(fp)) 110 printf ("mpq_inp_str nread doesn't match ftell\n"); 111 printf (" nread %lu\n", (unsigned long) nread);
|
/netbsd-current/sys/lib/libsa/ |
H A D | cd9660.c | 141 size_t buf_size, nread, psize, dsize; local 157 ISO_DEFAULT_BLOCK_SIZE, buf, &nread); 160 if (nread != ISO_DEFAULT_BLOCK_SIZE) { 188 buf_size, buf, &nread); 191 if (nread != buf_size) { 245 buf, &nread); 248 if (nread != ISO_DEFAULT_BLOCK_SIZE) { 317 size_t nread, off; local 333 ISO_DEFAULT_BLOCK_SIZE, dp, &nread); 336 if (nread ! [all...] |
/netbsd-current/external/bsd/less/dist/lesstest/ |
H A D | parse.c | 60 int nread = 0; local 61 while (nread < fsize) { 63 int chunk = fsize - nread; 67 nread += len; 97 int nread = 0; local 98 while (nread < line_len-1) { 102 line[nread++] = (char) ch; 104 line[nread] = '\0'; 105 return nread;
|
/netbsd-current/usr.bin/tcopy/ |
H A D | tcopy.c | 79 ssize_t lastnread, nread; local 153 if ((nread = read(inp, buff, maxblk)) == -1) { 155 nread = read(inp, buff, maxblk); 156 if (nread >= 0) 161 } else if (nread != lastnread) { 163 if (lastrec == 0 && nread == 0) 171 if (nread != 0) 173 filen, (long)nread); 178 if (nread > 0) { 184 nw = write(outp, buff, nread); [all...] |
/netbsd-current/external/gpl2/gmake/dist/ |
H A D | arscan.c | 324 register int nread = read (desc, buf, SARMAG); 325 if (nread != SARMAG || bcmp (buf, ARMAG, SARMAG)) 334 register int nread = read (desc, (char *) &fl_header, FL_HSZ); 336 if (nread != FL_HSZ) 356 nread = read (desc, (char *) &fl_header_big, FL_HSZ_BIG); 357 if (nread != FL_HSZ_BIG) 379 register int nread = read(desc, &buf, sizeof (buf)); 380 if (nread != sizeof (buf) || buf != ARMAG) 428 register int nread; 460 nread 322 register int nread = read (desc, buf, SARMAG); local 426 register int nread; local [all...] |
/netbsd-current/external/mit/libuv/dist/docs/code/uvtee/ |
H A D | main.c | 43 void read_stdin(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf) { argument 44 if (nread < 0){ 45 if (nread == UV_EOF){ 51 } else if (nread > 0) { 52 write_data((uv_stream_t *)&stdout_pipe, nread, *buf, on_stdout_write); 53 write_data((uv_stream_t *)&file_pipe, nread, *buf, on_file_write);
|