Lines Matching defs:count
132 size_t count = mbstowcs(dest, src, n);
133 if (dest != NULL && count != DECODE_ERROR) {
134 for (size_t i=0; i < count; i++) {
141 return count;
150 size_t count = mbrtowc(pwc, str, len, pmbs);
151 if (count != 0 && count != DECODE_ERROR && count != INCOMPLETE_CHARACTER) {
156 return count;
447 size_t count;
461 * mbstowcs which does not count the characters that
477 count = _Py_mbstowcs(res, arg, argsize + 1);
478 if (count != DECODE_ERROR) {
481 *wlen = count;
1732 /* Read count bytes from fd into buf.
1734 On success, return the number of read bytes, it can be lower than count.
1746 _Py_read(int fd, void *buf, size_t count)
1759 if (count > _PY_READ_MAX) {
1760 count = _PY_READ_MAX;
1768 n = read(fd, buf, (int)count);
1770 n = read(fd, buf, count);
1797 _Py_write_impl(int fd, const void *buf, size_t count, int gil_held)
1805 if (count > 32767) {
1813 count = 32767;
1818 count = 32767;
1823 if (count > _PY_WRITE_MAX) {
1824 count = _PY_WRITE_MAX;
1832 n = write(fd, buf, (int)count);
1834 n = write(fd, buf, count);
1847 n = write(fd, buf, (int)count);
1849 n = write(fd, buf, count);
1874 /* Write count bytes of buf into fd.
1876 On success, return the number of written bytes, it can be lower than count
1885 _Py_write(int fd, const void *buf, size_t count)
1894 return _Py_write_impl(fd, buf, count, 1);
1897 /* Write count bytes of buf into fd.
1899 * On success, return the number of written bytes, it can be lower than count
1905 _Py_write_noraise(int fd, const void *buf, size_t count)
1907 return _Py_write_impl(fd, buf, count, 0);