Lines Matching defs:path
1687 Py_buffer path;
1698 if (!PyArg_Parse(args, "y*", &path)) {
1702 assert(path.len >= 0);
1706 if (path.len == 0 || *(const char *)path.buf == 0) {
1710 if ((size_t)path.len > sizeof addr->sun_path) {
1712 "AF_UNIX path too long");
1716 *len_ret = path.len + offsetof(struct sockaddr_un, sun_path);
1722 if ((size_t)path.len >= sizeof addr->sun_path) {
1724 "AF_UNIX path too long");
1727 addr->sun_path[path.len] = 0;
1730 *len_ret = path.len + offsetof(struct sockaddr_un, sun_path) + 1;
1733 memcpy(addr->sun_path, path.buf, path.len);
1737 PyBuffer_Release(&path);