Lines Matching defs:buf
676 wchar_t c, buf[2];
687 buf[1] = 0;
706 buf[0] = c;
708 converted = wcstombs(bytes, buf, size);
711 converted = wcstombs(NULL, buf, 0);
1212 _Py_wstat(const wchar_t* path, struct stat *buf)
1219 buf->st_mode = wstatbuf.st_mode;
1228 err = stat(fname, buf);
1732 /* Read count bytes from fd into buf.
1746 _Py_read(int fd, void *buf, size_t count)
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)
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.
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.
1905 _Py_write_noraise(int fd, const void *buf, size_t count)
1907 return _Py_write_impl(fd, buf, count, 0);
1916 too short, on decoding error, or if 'buf' is too short. */
1918 _Py_wreadlink(const wchar_t *path, wchar_t *buf, size_t buflen)
1941 cbuf[res] = '\0'; /* buf will be null terminated */
1953 wcsncpy(buf, wbuf, buflen);
2324 Return NULL on getcwd() error, on decoding error, or if 'buf' is
2327 _Py_wgetcwd(wchar_t *buf, size_t buflen)
2331 return _wgetcwd(buf, ibuflen);
2347 wcsncpy(buf, wname, buflen);
2349 return buf;